[ovs-dev] [PATCH] lib: packets: export compose_ipv6 routine to OVN

Lorenzo Bianconi lorenzo.bianconi at redhat.com
Fri Oct 11 10:23:12 UTC 2019


Remove static qualifier from compose_ipv6 definition and export it to
OVN. compose_ipv6 will be used in order to add IPv6 prefix delegation
support to OVN

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
---
 lib/packets.c | 2 +-
 lib/packets.h | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/packets.c b/lib/packets.c
index 3c8a50d9f..9d7cc5024 100644
--- a/lib/packets.c
+++ b/lib/packets.c
@@ -1557,7 +1557,7 @@ compose_arp__(struct dp_packet *b)
 
 /* This function expects packet with ethernet header with correct
  * l3 pointer set. */
-static void *
+void *
 compose_ipv6(struct dp_packet *packet, uint8_t proto,
              const struct in6_addr *src, const struct in6_addr *dst,
              uint8_t key_tc, ovs_be32 key_fl, uint8_t key_hl, int size)
diff --git a/lib/packets.h b/lib/packets.h
index d19f6e3ca..5d7f82c45 100644
--- a/lib/packets.h
+++ b/lib/packets.h
@@ -1605,6 +1605,9 @@ void packet_set_igmp3_query(struct dp_packet *, uint8_t max_resp,
                             uint8_t qqic);
 void packet_format_tcp_flags(struct ds *, uint16_t);
 const char *packet_tcp_flag_to_string(uint32_t flag);
+void *compose_ipv6(struct dp_packet *packet, uint8_t proto,
+                   const struct in6_addr *src, const struct in6_addr *dst,
+                   uint8_t key_tc, ovs_be32 key_fl, uint8_t key_hl, int size);
 void compose_arp__(struct dp_packet *);
 void compose_arp(struct dp_packet *, uint16_t arp_op,
                  const struct eth_addr arp_sha,
-- 
2.21.0



More information about the dev mailing list