Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187929
b: refs/heads/master
c: 6d55cb9
h: refs/heads/master
i:
  187927: a9cfb25
v: v3
  • Loading branch information
Timo Teräs authored and David S. Miller committed Mar 4, 2010
1 parent 81efb86 commit c82cf51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: c839d30a41dd92eb32d7fcfa2b4e99042fc64bf2
refs/heads/master: 6d55cb91a0020ac0d78edcad61efd6c8cf5785a3
7 changes: 2 additions & 5 deletions trunk/net/ipv4/ip_gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -1144,12 +1144,9 @@ static int ipgre_header(struct sk_buff *skb, struct net_device *dev,

if (saddr)
memcpy(&iph->saddr, saddr, 4);

if (daddr) {
if (daddr)
memcpy(&iph->daddr, daddr, 4);
return t->hlen;
}
if (iph->daddr && !ipv4_is_multicast(iph->daddr))
if (iph->daddr)
return t->hlen;

return -t->hlen;
Expand Down

0 comments on commit c82cf51

Please sign in to comment.