Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315491
b: refs/heads/master
c: 6255e5e
h: refs/heads/master
i:
  315489: c67ab37
  315487: c6c313b
v: v3
  • Loading branch information
Julian Anastasov authored and David S. Miller committed Jul 19, 2012
1 parent 587fc89 commit 6032442
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: a16a0d2fb8e0726f5d92572cc6ba5ba52f5cdcc1
refs/heads/master: 6255e5ead00cf96554f623ba51e2ac4c8ac27276
5 changes: 2 additions & 3 deletions trunk/net/ipv4/ip_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ int ip_options_echo(struct ip_options *dopt, struct sk_buff *skb)
unsigned char *sptr, *dptr;
int soffset, doffset;
int optlen;
__be32 daddr;

memset(dopt, 0, sizeof(struct ip_options));

Expand All @@ -105,8 +104,6 @@ int ip_options_echo(struct ip_options *dopt, struct sk_buff *skb)
sptr = skb_network_header(skb);
dptr = dopt->__data;

daddr = fib_compute_spec_dst(skb);

if (sopt->rr) {
optlen = sptr[sopt->rr+1];
soffset = sptr[sopt->rr+2];
Expand Down Expand Up @@ -180,6 +177,8 @@ int ip_options_echo(struct ip_options *dopt, struct sk_buff *skb)
doffset -= 4;
}
if (doffset > 3) {
__be32 daddr = fib_compute_spec_dst(skb);

memcpy(&start[doffset-1], &daddr, 4);
dopt->faddr = faddr;
dptr[0] = start[0];
Expand Down

0 comments on commit 6032442

Please sign in to comment.