X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Flinux%2Fipv6.h;h=09ea01a8a99cf8ac4404bcb811862a66e7a97e83;hb=1497943ee692aa7519fa972d0e3a339649bf3a96;hp=f8241130f5eade5232b3fb5e4a4c8984767d9a59;hpb=90bcaf7b4a33bb9b100cc06869f0c033a870d4a0;p=powerpc.git diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index f8241130f5..09ea01a8a9 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h @@ -177,6 +177,10 @@ struct ipv6_devconf { #endif #endif __s32 proxy_ndp; + __s32 accept_source_route; +#ifdef CONFIG_IPV6_OPTIMISTIC_DAD + __s32 optimistic_dad; +#endif void *sysctl; }; @@ -205,6 +209,9 @@ enum { DEVCONF_RTR_PROBE_INTERVAL, DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN, DEVCONF_PROXY_NDP, + __DEVCONF_OPTIMISTIC_DAD, + DEVCONF_ACCEPT_SOURCE_ROUTE, + DEVCONF_OPTIMISTIC_DAD, DEVCONF_MAX }; @@ -216,6 +223,16 @@ enum { #include /* struct ipv6_mc_socklist */ #include +static inline struct ipv6hdr *ipv6_hdr(const struct sk_buff *skb) +{ + return (struct ipv6hdr *)skb_network_header(skb); +} + +static inline struct ipv6hdr *ipipv6_hdr(const struct sk_buff *skb) +{ + return (struct ipv6hdr *)skb_transport_header(skb); +} + /* This structure contains results of exthdrs parsing as offsets from skb->nh.