X-Git-Url: http://git.onelab.eu/?p=linux-2.6.git;a=blobdiff_plain;f=include%2Fnet%2Fipv6.h;h=8f647ae8e7324e2a2040a89bbe21dab21f58440c;hp=b647b048bbbf3d76fbd74b506e25184349c326e4;hb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;hpb=c449269f45c2cdf53af08c8d0af37472f66539d9 diff --git a/include/net/ipv6.h b/include/net/ipv6.h index b647b048b..8f647ae8e 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -111,7 +111,7 @@ extern int sysctl_ipv6_bindv6only; extern int sysctl_mld_max_msf; /* MIBs */ -DECLARE_SNMP_STAT(struct ipv6_mib, ipv6_statistics); +DECLARE_SNMP_STAT(struct ipstats_mib, ipv6_statistics); #define IP6_INC_STATS(field) SNMP_INC_STATS(ipv6_statistics, field) #define IP6_INC_STATS_BH(field) SNMP_INC_STATS_BH(ipv6_statistics, field) #define IP6_INC_STATS_USER(field) SNMP_INC_STATS_USER(ipv6_statistics, field) @@ -215,7 +215,7 @@ extern struct ipv6_txoptions *fl6_merge_options(struct ipv6_txoptions * opt_spac struct ip6_flowlabel * fl, struct ipv6_txoptions * fopt); extern void fl6_free_socklist(struct sock *sk); -extern int ipv6_flowlabel_opt(struct sock *sk, char *optval, int optlen); +extern int ipv6_flowlabel_opt(struct sock *sk, char __user *optval, int optlen); extern void ip6_flowlabel_init(void); extern void ip6_flowlabel_cleanup(void); @@ -355,8 +355,7 @@ extern int ip6_dst_lookup(struct sock *sk, * skb processing functions */ -extern int ip6_output(struct sk_buff *skb); -extern int ip6_output2(struct sk_buff *skb); +extern int ip6_output(struct sk_buff **pskb); extern int ip6_forward(struct sk_buff *skb); extern int ip6_input(struct sk_buff *skb); extern int ip6_mc_input(struct sk_buff *skb); @@ -395,11 +394,13 @@ extern struct ipv6_txoptions * ipv6_invert_rthdr(struct sock *sk, */ extern int ipv6_setsockopt(struct sock *sk, int level, - int optname, char *optval, + int optname, + char __user *optval, int optlen); extern int ipv6_getsockopt(struct sock *sk, int level, - int optname, char *optval, - int *optlen); + int optname, + char __user *optval, + int __user *optlen); extern void ipv6_packet_init(void);