This will have a caller in a future commit. Signed-off-by: Justin Pettit <jpet...@ovn.org> --- lib/packets.h | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/lib/packets.h b/lib/packets.h index 617f058..df6ce4b 100644 --- a/lib/packets.h +++ b/lib/packets.h @@ -980,6 +980,12 @@ in6_generate_lla(struct eth_addr ea, struct in6_addr *lla) taddr->be16[7] = ea.be16[2]; } +static inline bool +in6_is_lla(struct in6_addr *addr) +{ + return addr->s6_addr32[0] == htonl(0xfe800000) && !(addr->s6_addr32[1]); +} + static inline void ipv6_multicast_to_ethernet(struct eth_addr *eth, const struct in6_addr *ip6) { -- 1.9.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev