Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247452
b: refs/heads/master
c: 22f728f
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed May 13, 2011
1 parent 330e232 commit 8628d2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0374d9ceb02eb12fcd65be9dd5df9c911ef93424
refs/heads/master: 22f728f8f311659b068e73ed92833c205651a47f
9 changes: 5 additions & 4 deletions trunk/net/ipv4/ip_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -1327,10 +1327,6 @@ struct sk_buff *__ip_make_skb(struct sock *sk,
iph = (struct iphdr *)skb->data;
iph->version = 4;
iph->ihl = 5;
if (opt) {
iph->ihl += opt->optlen>>2;
ip_options_build(skb, opt, cork->addr, rt, 0);
}
iph->tos = inet->tos;
iph->frag_off = df;
ip_select_ident(iph, &rt->dst, sk);
Expand All @@ -1339,6 +1335,11 @@ struct sk_buff *__ip_make_skb(struct sock *sk,
iph->saddr = fl4->saddr;
iph->daddr = fl4->daddr;

if (opt) {
iph->ihl += opt->optlen>>2;
ip_options_build(skb, opt, cork->addr, rt, 0);
}

skb->priority = sk->sk_priority;
skb->mark = sk->sk_mark;
/*
Expand Down

0 comments on commit 8628d2f

Please sign in to comment.