aboutsummaryrefslogtreecommitdiff
path: root/lib/packets.h
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-03-01 13:27:23 -0800
committerEthan Jackson <ethan@nicira.com>2011-03-17 12:49:34 -0700
commit07a6cf771dc049600033453d700ea93b9449bd33 (patch)
tree43f17cc3e773532e2fedd341b3694c84425c54dd /lib/packets.h
parente5ed989d03ae908434d6cd6e0feab000e81e8e72 (diff)
packets: create new compose_lacp_pdu() function.
Creates new compose_lacp_pdu() from the old compose_lacp_packet() function. This will allow a LACP PDU to be created without necessarily knowing the Ethernet Source Address required for generating the packet. Future patches rely on this functionality.
Diffstat (limited to 'lib/packets.h')
-rw-r--r--lib/packets.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/packets.h b/lib/packets.h
index 0bc368b9..dcb5b9fe 100644
--- a/lib/packets.h
+++ b/lib/packets.h
@@ -460,9 +460,11 @@ struct lacp_pdu {
} __attribute__((packed));
BUILD_ASSERT_DECL(LACP_PDU_LEN == sizeof(struct lacp_pdu));
-void compose_lacp_packet(struct ofpbuf *, struct lacp_info *actor,
- struct lacp_info *partner,
- const uint8_t eth_src[ETH_ADDR_LEN]);
+void compose_lacp_packet(struct ofpbuf *, const uint8_t eth_src[ETH_ADDR_LEN],
+ const struct lacp_pdu *);
+
+void compose_lacp_pdu(const struct lacp_info *actor,
+ const struct lacp_info *partner, struct lacp_pdu *);
const struct lacp_pdu *parse_lacp_packet(const struct ofpbuf *);