aboutsummaryrefslogtreecommitdiff
path: root/lib/packets.h
diff options
context:
space:
mode:
authorAnsis Atteka <aatteka@nicira.com>2012-11-05 15:53:32 +0200
committerAnsis Atteka <aatteka@nicira.com>2012-11-13 13:51:59 +0200
commitbc7a5acdff087b7e7a162da42ae608a83f3cf902 (patch)
tree11ec19960540c9f3034f707def8ad5c647069226 /lib/packets.h
parent3d974905842e211a62d198b0b8ae752f173d0efc (diff)
datapath: add ipv6 'set' action
This patch adds ipv6 set action functionality. It allows to change traffic class, flow label, hop-limit, ipv6 source and destination address fields. Acked-by: Jesse Gross <jesse@nicira.com> Signed-off-by: Ansis Atteka <aatteka@nicira.com>
Diffstat (limited to 'lib/packets.h')
-rw-r--r--lib/packets.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/packets.h b/lib/packets.h
index e550be0b..4ad527ba 100644
--- a/lib/packets.h
+++ b/lib/packets.h
@@ -490,6 +490,9 @@ void *snap_compose(struct ofpbuf *, const uint8_t eth_dst[ETH_ADDR_LEN],
unsigned int oui, uint16_t snap_type, size_t size);
void packet_set_ipv4(struct ofpbuf *, ovs_be32 src, ovs_be32 dst, uint8_t tos,
uint8_t ttl);
+void packet_set_ipv6(struct ofpbuf *, uint8_t proto, const ovs_be32 src[4],
+ const ovs_be32 dst[4], uint8_t tc,
+ uint32_t fl, uint8_t hlmit);
void packet_set_tcp_port(struct ofpbuf *, ovs_be16 src, ovs_be16 dst);
void packet_set_udp_port(struct ofpbuf *, ovs_be16 src, ovs_be16 dst);