diff options
Diffstat (limited to 'include/net/ip.h')
| -rw-r--r-- | include/net/ip.h | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index 32360bbe143f..e4563bbee6ea 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
| @@ -86,7 +86,7 @@ extern int ip_build_and_send_pkt(struct sk_buff *skb, struct sock *sk, | |||
| 86 | u32 saddr, u32 daddr, | 86 | u32 saddr, u32 daddr, |
| 87 | struct ip_options *opt); | 87 | struct ip_options *opt); |
| 88 | extern int ip_rcv(struct sk_buff *skb, struct net_device *dev, | 88 | extern int ip_rcv(struct sk_buff *skb, struct net_device *dev, |
| 89 | struct packet_type *pt); | 89 | struct packet_type *pt, struct net_device *orig_dev); |
| 90 | extern int ip_local_deliver(struct sk_buff *skb); | 90 | extern int ip_local_deliver(struct sk_buff *skb); |
| 91 | extern int ip_mr_input(struct sk_buff *skb); | 91 | extern int ip_mr_input(struct sk_buff *skb); |
| 92 | extern int ip_output(struct sk_buff *skb); | 92 | extern int ip_output(struct sk_buff *skb); |
| @@ -140,8 +140,6 @@ struct ip_reply_arg { | |||
| 140 | void ip_send_reply(struct sock *sk, struct sk_buff *skb, struct ip_reply_arg *arg, | 140 | void ip_send_reply(struct sock *sk, struct sk_buff *skb, struct ip_reply_arg *arg, |
| 141 | unsigned int len); | 141 | unsigned int len); |
| 142 | 142 | ||
| 143 | extern int ip_finish_output(struct sk_buff *skb); | ||
| 144 | |||
| 145 | struct ipv4_config | 143 | struct ipv4_config |
| 146 | { | 144 | { |
| 147 | int log_martians; | 145 | int log_martians; |
| @@ -165,6 +163,24 @@ extern int sysctl_local_port_range[2]; | |||
| 165 | extern int sysctl_ip_default_ttl; | 163 | extern int sysctl_ip_default_ttl; |
| 166 | extern int sysctl_ip_nonlocal_bind; | 164 | extern int sysctl_ip_nonlocal_bind; |
| 167 | 165 | ||
| 166 | /* From ip_fragment.c */ | ||
| 167 | extern int sysctl_ipfrag_high_thresh; | ||
| 168 | extern int sysctl_ipfrag_low_thresh; | ||
| 169 | extern int sysctl_ipfrag_time; | ||
| 170 | extern int sysctl_ipfrag_secret_interval; | ||
| 171 | |||
| 172 | /* From inetpeer.c */ | ||
| 173 | extern int inet_peer_threshold; | ||
| 174 | extern int inet_peer_minttl; | ||
| 175 | extern int inet_peer_maxttl; | ||
| 176 | extern int inet_peer_gc_mintime; | ||
| 177 | extern int inet_peer_gc_maxtime; | ||
| 178 | |||
| 179 | /* From ip_output.c */ | ||
| 180 | extern int sysctl_ip_dynaddr; | ||
| 181 | |||
| 182 | extern void ipfrag_init(void); | ||
| 183 | |||
| 168 | #ifdef CONFIG_INET | 184 | #ifdef CONFIG_INET |
| 169 | /* The function in 2.2 was invalid, producing wrong result for | 185 | /* The function in 2.2 was invalid, producing wrong result for |
| 170 | * check=0xFEFF. It was noticed by Arthur Skawina _year_ ago. --ANK(000625) */ | 186 | * check=0xFEFF. It was noticed by Arthur Skawina _year_ ago. --ANK(000625) */ |
| @@ -319,7 +335,10 @@ extern void ip_options_build(struct sk_buff *skb, struct ip_options *opt, u32 da | |||
| 319 | extern int ip_options_echo(struct ip_options *dopt, struct sk_buff *skb); | 335 | extern int ip_options_echo(struct ip_options *dopt, struct sk_buff *skb); |
| 320 | extern void ip_options_fragment(struct sk_buff *skb); | 336 | extern void ip_options_fragment(struct sk_buff *skb); |
| 321 | extern int ip_options_compile(struct ip_options *opt, struct sk_buff *skb); | 337 | extern int ip_options_compile(struct ip_options *opt, struct sk_buff *skb); |
| 322 | extern int ip_options_get(struct ip_options **optp, unsigned char *data, int optlen, int user); | 338 | extern int ip_options_get(struct ip_options **optp, |
| 339 | unsigned char *data, int optlen); | ||
| 340 | extern int ip_options_get_from_user(struct ip_options **optp, | ||
| 341 | unsigned char __user *data, int optlen); | ||
| 323 | extern void ip_options_undo(struct ip_options * opt); | 342 | extern void ip_options_undo(struct ip_options * opt); |
| 324 | extern void ip_forward_options(struct sk_buff *skb); | 343 | extern void ip_forward_options(struct sk_buff *skb); |
| 325 | extern int ip_options_rcv_srr(struct sk_buff *skb); | 344 | extern int ip_options_rcv_srr(struct sk_buff *skb); |
| @@ -350,5 +369,10 @@ int ipv4_doint_and_flush_strategy(ctl_table *table, int __user *name, int nlen, | |||
| 350 | void __user *oldval, size_t __user *oldlenp, | 369 | void __user *oldval, size_t __user *oldlenp, |
| 351 | void __user *newval, size_t newlen, | 370 | void __user *newval, size_t newlen, |
| 352 | void **context); | 371 | void **context); |
| 372 | #ifdef CONFIG_PROC_FS | ||
| 373 | extern int ip_misc_proc_init(void); | ||
| 374 | #endif | ||
| 375 | |||
| 376 | extern struct ctl_table ipv4_table[]; | ||
| 353 | 377 | ||
| 354 | #endif /* _IP_H */ | 378 | #endif /* _IP_H */ |
