diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/inet_sock.h | 8 | ||||
-rw-r--r-- | include/net/ip.h | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/net/inet_sock.h b/include/net/inet_sock.h index 139b78b4dfeb..dced3f64f975 100644 --- a/include/net/inet_sock.h +++ b/include/net/inet_sock.h | |||
@@ -72,7 +72,8 @@ struct inet_request_sock { | |||
72 | sack_ok : 1, | 72 | sack_ok : 1, |
73 | wscale_ok : 1, | 73 | wscale_ok : 1, |
74 | ecn_ok : 1, | 74 | ecn_ok : 1, |
75 | acked : 1; | 75 | acked : 1, |
76 | no_srccheck: 1; | ||
76 | struct ip_options *opt; | 77 | struct ip_options *opt; |
77 | }; | 78 | }; |
78 | 79 | ||
@@ -204,4 +205,9 @@ static inline struct request_sock *inet_reqsk_alloc(struct request_sock_ops *ops | |||
204 | return req; | 205 | return req; |
205 | } | 206 | } |
206 | 207 | ||
208 | static inline __u8 inet_sk_flowi_flags(const struct sock *sk) | ||
209 | { | ||
210 | return inet_sk(sk)->transparent ? FLOWI_FLAG_ANYSRC : 0; | ||
211 | } | ||
212 | |||
207 | #endif /* _INET_SOCK_H */ | 213 | #endif /* _INET_SOCK_H */ |
diff --git a/include/net/ip.h b/include/net/ip.h index 250e6ef025a4..90b27f634b76 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
@@ -140,12 +140,15 @@ static inline void ip_tr_mc_map(__be32 addr, char *buf) | |||
140 | 140 | ||
141 | struct ip_reply_arg { | 141 | struct ip_reply_arg { |
142 | struct kvec iov[1]; | 142 | struct kvec iov[1]; |
143 | int flags; | ||
143 | __wsum csum; | 144 | __wsum csum; |
144 | int csumoffset; /* u16 offset of csum in iov[0].iov_base */ | 145 | int csumoffset; /* u16 offset of csum in iov[0].iov_base */ |
145 | /* -1 if not needed */ | 146 | /* -1 if not needed */ |
146 | int bound_dev_if; | 147 | int bound_dev_if; |
147 | }; | 148 | }; |
148 | 149 | ||
150 | #define IP_REPLY_ARG_NOSRCCHECK 1 | ||
151 | |||
149 | void ip_send_reply(struct sock *sk, struct sk_buff *skb, struct ip_reply_arg *arg, | 152 | void ip_send_reply(struct sock *sk, struct sk_buff *skb, struct ip_reply_arg *arg, |
150 | unsigned int len); | 153 | unsigned int len); |
151 | 154 | ||