Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
538de0e0
Commit
538de0e0
authored
Mar 31, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipv4: Use flowi4_init_output() in ip_send_reply()
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
e79d9bc7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
net/ipv4/ip_output.c
net/ipv4/ip_output.c
+8
-10
No files found.
net/ipv4/ip_output.c
View file @
538de0e0
...
@@ -1474,16 +1474,14 @@ void ip_send_reply(struct sock *sk, struct sk_buff *skb, struct ip_reply_arg *ar
...
@@ -1474,16 +1474,14 @@ void ip_send_reply(struct sock *sk, struct sk_buff *skb, struct ip_reply_arg *ar
}
}
{
{
struct
flowi4
fl4
=
{
struct
flowi4
fl4
;
.
flowi4_oif
=
arg
->
bound_dev_if
,
.
daddr
=
daddr
,
flowi4_init_output
(
&
fl4
,
arg
->
bound_dev_if
,
0
,
.
saddr
=
rt
->
rt_spec_dst
,
RT_TOS
(
ip_hdr
(
skb
)
->
tos
),
.
flowi4_tos
=
RT_TOS
(
ip_hdr
(
skb
)
->
tos
),
RT_SCOPE_UNIVERSE
,
sk
->
sk_protocol
,
.
fl4_sport
=
tcp_hdr
(
skb
)
->
dest
,
ip_reply_arg_flowi_flags
(
arg
),
.
fl4_dport
=
tcp_hdr
(
skb
)
->
source
,
daddr
,
rt
->
rt_spec_dst
,
.
flowi4_proto
=
sk
->
sk_protocol
,
tcp_hdr
(
skb
)
->
source
,
tcp_hdr
(
skb
)
->
dest
);
.
flowi4_flags
=
ip_reply_arg_flowi_flags
(
arg
),
};
security_skb_classify_flow
(
skb
,
flowi4_to_flowi
(
&
fl4
));
security_skb_classify_flow
(
skb
,
flowi4_to_flowi
(
&
fl4
));
rt
=
ip_route_output_key
(
sock_net
(
sk
),
&
fl4
);
rt
=
ip_route_output_key
(
sock_net
(
sk
),
&
fl4
);
if
(
IS_ERR
(
rt
))
if
(
IS_ERR
(
rt
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment