route.h (8b2ada27dc1045e8191673bf769a1136ce8a0127) route.h (e2d118a1cb5e60d077131a09db1d81b90a5295fe)
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Definitions for the IP router.
7 *
8 * Version: @(#)route.h 1.0.4 05/27/93

--- 139 unchanged lines hidden (view full) ---

148 struct sock *sk,
149 __be32 daddr, __be32 saddr,
150 __be16 dport, __be16 sport,
151 __u8 proto, __u8 tos, int oif)
152{
153 flowi4_init_output(fl4, oif, sk ? sk->sk_mark : 0, tos,
154 RT_SCOPE_UNIVERSE, proto,
155 sk ? inet_sk_flowi_flags(sk) : 0,
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Definitions for the IP router.
7 *
8 * Version: @(#)route.h 1.0.4 05/27/93

--- 139 unchanged lines hidden (view full) ---

148 struct sock *sk,
149 __be32 daddr, __be32 saddr,
150 __be16 dport, __be16 sport,
151 __u8 proto, __u8 tos, int oif)
152{
153 flowi4_init_output(fl4, oif, sk ? sk->sk_mark : 0, tos,
154 RT_SCOPE_UNIVERSE, proto,
155 sk ? inet_sk_flowi_flags(sk) : 0,
156 daddr, saddr, dport, sport);
156 daddr, saddr, dport, sport, sock_net_uid(net, sk));
157 if (sk)
158 security_sk_classify_flow(sk, flowi4_to_flowi(fl4));
159 return ip_route_output_flow(net, fl4, sk);
160}
161
162static inline struct rtable *ip_route_output_gre(struct net *net, struct flowi4 *fl4,
163 __be32 daddr, __be32 saddr,
164 __be32 gre_key, __u8 tos, int oif)

--- 99 unchanged lines hidden (view full) ---

264 struct sock *sk)
265{
266 __u8 flow_flags = 0;
267
268 if (inet_sk(sk)->transparent)
269 flow_flags |= FLOWI_FLAG_ANYSRC;
270
271 flowi4_init_output(fl4, oif, sk->sk_mark, tos, RT_SCOPE_UNIVERSE,
157 if (sk)
158 security_sk_classify_flow(sk, flowi4_to_flowi(fl4));
159 return ip_route_output_flow(net, fl4, sk);
160}
161
162static inline struct rtable *ip_route_output_gre(struct net *net, struct flowi4 *fl4,
163 __be32 daddr, __be32 saddr,
164 __be32 gre_key, __u8 tos, int oif)

--- 99 unchanged lines hidden (view full) ---

264 struct sock *sk)
265{
266 __u8 flow_flags = 0;
267
268 if (inet_sk(sk)->transparent)
269 flow_flags |= FLOWI_FLAG_ANYSRC;
270
271 flowi4_init_output(fl4, oif, sk->sk_mark, tos, RT_SCOPE_UNIVERSE,
272 protocol, flow_flags, dst, src, dport, sport);
272 protocol, flow_flags, dst, src, dport, sport,
273 sk->sk_uid);
273}
274
275static inline struct rtable *ip_route_connect(struct flowi4 *fl4,
276 __be32 dst, __be32 src, u32 tos,
277 int oif, u8 protocol,
278 __be16 sport, __be16 dport,
279 struct sock *sk)
280{

--- 56 unchanged lines hidden ---
274}
275
276static inline struct rtable *ip_route_connect(struct flowi4 *fl4,
277 __be32 dst, __be32 src, u32 tos,
278 int oif, u8 protocol,
279 __be16 sport, __be16 dport,
280 struct sock *sk)
281{

--- 56 unchanged lines hidden ---