diff options
Diffstat (limited to 'include/net/ip.h')
| -rw-r--r-- | include/net/ip.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index aa76c7a4d9c3..eca0ef7a495e 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
| @@ -165,6 +165,7 @@ struct ip_reply_arg { | |||
| 165 | int csumoffset; /* u16 offset of csum in iov[0].iov_base */ | 165 | int csumoffset; /* u16 offset of csum in iov[0].iov_base */ |
| 166 | /* -1 if not needed */ | 166 | /* -1 if not needed */ |
| 167 | int bound_dev_if; | 167 | int bound_dev_if; |
| 168 | u8 tos; | ||
| 168 | }; | 169 | }; |
| 169 | 170 | ||
| 170 | #define IP_REPLY_ARG_NOSRCCHECK 1 | 171 | #define IP_REPLY_ARG_NOSRCCHECK 1 |
| @@ -175,7 +176,7 @@ static inline __u8 ip_reply_arg_flowi_flags(const struct ip_reply_arg *arg) | |||
| 175 | } | 176 | } |
| 176 | 177 | ||
| 177 | void ip_send_reply(struct sock *sk, struct sk_buff *skb, __be32 daddr, | 178 | void ip_send_reply(struct sock *sk, struct sk_buff *skb, __be32 daddr, |
| 178 | struct ip_reply_arg *arg, unsigned int len); | 179 | const struct ip_reply_arg *arg, unsigned int len); |
| 179 | 180 | ||
| 180 | struct ipv4_config { | 181 | struct ipv4_config { |
| 181 | int log_martians; | 182 | int log_martians; |
| @@ -406,9 +407,18 @@ enum ip_defrag_users { | |||
| 406 | IP_DEFRAG_VS_OUT, | 407 | IP_DEFRAG_VS_OUT, |
| 407 | IP_DEFRAG_VS_FWD, | 408 | IP_DEFRAG_VS_FWD, |
| 408 | IP_DEFRAG_AF_PACKET, | 409 | IP_DEFRAG_AF_PACKET, |
| 410 | IP_DEFRAG_MACVLAN, | ||
| 409 | }; | 411 | }; |
| 410 | 412 | ||
| 411 | int ip_defrag(struct sk_buff *skb, u32 user); | 413 | int ip_defrag(struct sk_buff *skb, u32 user); |
| 414 | #ifdef CONFIG_INET | ||
| 415 | struct sk_buff *ip_check_defrag(struct sk_buff *skb, u32 user); | ||
| 416 | #else | ||
| 417 | static inline struct sk_buff *ip_check_defrag(struct sk_buff *skb, u32 user) | ||
| 418 | { | ||
| 419 | return skb; | ||
| 420 | } | ||
| 421 | #endif | ||
| 412 | int ip_frag_mem(struct net *net); | 422 | int ip_frag_mem(struct net *net); |
| 413 | int ip_frag_nqueues(struct net *net); | 423 | int ip_frag_nqueues(struct net *net); |
| 414 | 424 | ||
