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
ofpbuf: Abstract 'l2' pointer and document usage conventions.
[sliver-openvswitch.git]
/
lib
/
ofp-parse.c
diff --git
a/lib/ofp-parse.c
b/lib/ofp-parse.c
index
e100974
..
92fb40f
100644
(file)
--- a/
lib/ofp-parse.c
+++ b/
lib/ofp-parse.c
@@
-291,7
+291,6
@@
parse_note(const char *arg, struct ofpbuf *ofpacts)
}
ofpbuf_put(ofpacts, &byte, 1);
}
ofpbuf_put(ofpacts, &byte, 1);
- note = ofpacts->l2;
note->length++;
arg += 2;
note->length++;
arg += 2;
@@
-400,7
+399,6
@@
parse_noargs_dec_ttl(struct ofpbuf *b)
ids = ofpact_put_DEC_TTL(b);
ofpbuf_put(b, &id, sizeof id);
ids = ofpact_put_DEC_TTL(b);
ofpbuf_put(b, &id, sizeof id);
- ids = b->l2;
ids->n_controllers++;
ofpact_update_len(b, &ids->ofpact);
}
ids->n_controllers++;
ofpact_update_len(b, &ids->ofpact);
}
@@
-426,7
+424,6
@@
parse_dec_ttl(struct ofpbuf *b, char *arg)
uint16_t id = atoi(cntr);
ofpbuf_put(b, &id, sizeof id);
uint16_t id = atoi(cntr);
ofpbuf_put(b, &id, sizeof id);
- ids = b->l2;
ids->n_controllers++;
}
if (!ids->n_controllers) {
ids->n_controllers++;
}
if (!ids->n_controllers) {