git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vswitchd: Make the MAC entry aging time configurable.
[sliver-openvswitch.git]
/
lib
/
cfm.c
diff --git
a/lib/cfm.c
b/lib/cfm.c
index
428b1a7
..
567dc57
100644
(file)
--- a/
lib/cfm.c
+++ b/
lib/cfm.c
@@
-118,9
+118,7
@@
compose_ccm(struct cfm_internal *cfmi)
struct ofpbuf *packet;
struct eth_header *eth;
- packet = xzalloc(sizeof *packet);
-
- ofpbuf_init(packet, ETH_HEADER_LEN + CCM_LEN + 2);
+ packet = ofpbuf_new(ETH_HEADER_LEN + CCM_LEN + 2);
ofpbuf_reserve(packet, 2);