aboutsummaryrefslogtreecommitdiff
path: root/lib/packets.h
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-03-23 12:59:40 -0700
committerEthan Jackson <ethan@nicira.com>2011-03-23 13:16:38 -0700
commit40f78b38e745019e08b3cfe06ddf205f0cc4b970 (patch)
tree896946ba72966d9eaed199718a841c3ead8f5640 /lib/packets.h
parent15df7ea8d9a338113fc0bd8d2a0a841ec7ce4b6c (diff)
packets: Create new compose_packet() function.
This commit generalizes compose_lacp_packet() into new compose_packet() function. This new function will be used to send CCM messages in future patches.
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 c858fc09..bf071e8e 100644
--- a/lib/packets.h
+++ b/lib/packets.h
@@ -412,6 +412,11 @@ struct in6_addr ipv6_create_mask(int mask);
int ipv6_count_cidr_bits(const struct in6_addr *netmask);
bool ipv6_is_cidr(const struct in6_addr *netmask);
+void *
+compose_packet(struct ofpbuf *, const uint8_t eth_dst[ETH_ADDR_LEN],
+ const uint8_t eth_src[ETH_ADDR_LEN], uint16_t eth_type,
+ size_t size);
+
/* Masks for lacp_info state member. */
#define LACP_STATE_ACT 0x01 /* Activity. Active or passive? */
#define LACP_STATE_TIME 0x02 /* Timeout. Short or long timeout? */
@@ -460,9 +465,6 @@ struct lacp_pdu {
} __attribute__((packed));
BUILD_ASSERT_DECL(LACP_PDU_LEN == sizeof(struct lacp_pdu));
-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 *);