diff options
Diffstat (limited to 'include/net/ipv6.h')
| -rw-r--r-- | include/net/ipv6.h | 39 |
1 files changed, 35 insertions, 4 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 69324465e8b3..3203eaff4bd4 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
| @@ -104,6 +104,7 @@ struct frag_hdr { | |||
| 104 | 104 | ||
| 105 | #ifdef __KERNEL__ | 105 | #ifdef __KERNEL__ |
| 106 | 106 | ||
| 107 | #include <linux/config.h> | ||
| 107 | #include <net/sock.h> | 108 | #include <net/sock.h> |
| 108 | 109 | ||
| 109 | /* sysctls */ | 110 | /* sysctls */ |
| @@ -145,7 +146,6 @@ DECLARE_SNMP_STAT(struct udp_mib, udp_stats_in6); | |||
| 145 | #define UDP6_INC_STATS(field) SNMP_INC_STATS(udp_stats_in6, field) | 146 | #define UDP6_INC_STATS(field) SNMP_INC_STATS(udp_stats_in6, field) |
| 146 | #define UDP6_INC_STATS_BH(field) SNMP_INC_STATS_BH(udp_stats_in6, field) | 147 | #define UDP6_INC_STATS_BH(field) SNMP_INC_STATS_BH(udp_stats_in6, field) |
| 147 | #define UDP6_INC_STATS_USER(field) SNMP_INC_STATS_USER(udp_stats_in6, field) | 148 | #define UDP6_INC_STATS_USER(field) SNMP_INC_STATS_USER(udp_stats_in6, field) |
| 148 | extern atomic_t inet6_sock_nr; | ||
| 149 | 149 | ||
| 150 | int snmp6_register_dev(struct inet6_dev *idev); | 150 | int snmp6_register_dev(struct inet6_dev *idev); |
| 151 | int snmp6_unregister_dev(struct inet6_dev *idev); | 151 | int snmp6_unregister_dev(struct inet6_dev *idev); |
| @@ -346,7 +346,8 @@ static inline int ipv6_addr_any(const struct in6_addr *a) | |||
| 346 | 346 | ||
| 347 | extern int ipv6_rcv(struct sk_buff *skb, | 347 | extern int ipv6_rcv(struct sk_buff *skb, |
| 348 | struct net_device *dev, | 348 | struct net_device *dev, |
| 349 | struct packet_type *pt); | 349 | struct packet_type *pt, |
| 350 | struct net_device *orig_dev); | ||
| 350 | 351 | ||
| 351 | /* | 352 | /* |
| 352 | * upper-layer output functions | 353 | * upper-layer output functions |
| @@ -464,8 +465,38 @@ extern int sysctl_ip6frag_low_thresh; | |||
| 464 | extern int sysctl_ip6frag_time; | 465 | extern int sysctl_ip6frag_time; |
| 465 | extern int sysctl_ip6frag_secret_interval; | 466 | extern int sysctl_ip6frag_secret_interval; |
| 466 | 467 | ||
| 467 | #endif /* __KERNEL__ */ | 468 | extern struct proto_ops inet6_stream_ops; |
| 468 | #endif /* _NET_IPV6_H */ | 469 | extern struct proto_ops inet6_dgram_ops; |
| 470 | |||
| 471 | extern int ip6_mc_source(int add, int omode, struct sock *sk, | ||
| 472 | struct group_source_req *pgsr); | ||
| 473 | extern int ip6_mc_msfilter(struct sock *sk, struct group_filter *gsf); | ||
| 474 | extern int ip6_mc_msfget(struct sock *sk, struct group_filter *gsf, | ||
| 475 | struct group_filter __user *optval, | ||
| 476 | int __user *optlen); | ||
| 477 | |||
| 478 | #ifdef CONFIG_PROC_FS | ||
| 479 | extern int ac6_proc_init(void); | ||
| 480 | extern void ac6_proc_exit(void); | ||
| 481 | extern int raw6_proc_init(void); | ||
| 482 | extern void raw6_proc_exit(void); | ||
| 483 | extern int tcp6_proc_init(void); | ||
| 484 | extern void tcp6_proc_exit(void); | ||
| 485 | extern int udp6_proc_init(void); | ||
| 486 | extern void udp6_proc_exit(void); | ||
| 487 | extern int ipv6_misc_proc_init(void); | ||
| 488 | extern void ipv6_misc_proc_exit(void); | ||
| 489 | |||
| 490 | extern struct rt6_statistics rt6_stats; | ||
| 491 | #endif | ||
| 469 | 492 | ||
| 493 | #ifdef CONFIG_SYSCTL | ||
| 494 | extern ctl_table ipv6_route_table[]; | ||
| 495 | extern ctl_table ipv6_icmp_table[]; | ||
| 470 | 496 | ||
| 497 | extern void ipv6_sysctl_register(void); | ||
| 498 | extern void ipv6_sysctl_unregister(void); | ||
| 499 | #endif | ||
| 471 | 500 | ||
| 501 | #endif /* __KERNEL__ */ | ||
| 502 | #endif /* _NET_IPV6_H */ | ||
