X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=lib%2Fpackets.h;h=892d2eb4123b7e6570964496db73385338ff0f80;hb=370e373b958a92514a504c7b198d1c3fc21879e0;hp=acd317d8e90e10f52a65506a5dbea0cd2a3ceb61;hpb=12d0ee08a288ef170f5fed4da59a37bec98309f8;p=cascardo%2Fovs.git diff --git a/lib/packets.h b/lib/packets.h index acd317d8e..892d2eb41 100644 --- a/lib/packets.h +++ b/lib/packets.h @@ -771,6 +771,8 @@ struct arp_eth_header { }; BUILD_ASSERT_DECL(ARP_ETH_HEADER_LEN == sizeof(struct arp_eth_header)); +#define IPV6_HEADER_LEN 40 + /* Like struct in6_addr, but whereas that struct requires 32-bit alignment on * most implementations, this one only requires 16-bit alignment. */ union ovs_16aligned_in6_addr { @@ -811,6 +813,8 @@ struct icmp6_header { }; BUILD_ASSERT_DECL(ICMP6_HEADER_LEN == sizeof(struct icmp6_header)); +uint32_t packet_csum_pseudoheader6(const struct ovs_16aligned_ip6_hdr *); + /* Neighbor Discovery option field. * ND options are always a multiple of 8 bytes in size. */ #define ND_OPT_LEN 8