diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netfilter_ipv6/ip6_tables.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/netfilter_ipv6/ip6_tables.h b/include/linux/netfilter_ipv6/ip6_tables.h index f549adccc94c..1bc898b14a80 100644 --- a/include/linux/netfilter_ipv6/ip6_tables.h +++ b/include/linux/netfilter_ipv6/ip6_tables.h | |||
| @@ -287,7 +287,17 @@ extern unsigned int ip6t_do_table(struct sk_buff *skb, | |||
| 287 | struct xt_table *table); | 287 | struct xt_table *table); |
| 288 | 288 | ||
| 289 | /* Check for an extension */ | 289 | /* Check for an extension */ |
| 290 | extern int ip6t_ext_hdr(u8 nexthdr); | 290 | static inline int |
| 291 | ip6t_ext_hdr(u8 nexthdr) | ||
| 292 | { return (nexthdr == IPPROTO_HOPOPTS) || | ||
| 293 | (nexthdr == IPPROTO_ROUTING) || | ||
| 294 | (nexthdr == IPPROTO_FRAGMENT) || | ||
| 295 | (nexthdr == IPPROTO_ESP) || | ||
| 296 | (nexthdr == IPPROTO_AH) || | ||
| 297 | (nexthdr == IPPROTO_NONE) || | ||
| 298 | (nexthdr == IPPROTO_DSTOPTS); | ||
| 299 | } | ||
| 300 | |||
| 291 | /* find specified header and get offset to it */ | 301 | /* find specified header and get offset to it */ |
| 292 | extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset, | 302 | extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset, |
| 293 | int target, unsigned short *fragoff); | 303 | int target, unsigned short *fragoff); |
