Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224523
b: refs/heads/master
c: aa285b1
h: refs/heads/master
i:
  224521: 981d5e7
  224519: 5a79edb
v: v3
  • Loading branch information
Timo Teräs authored and David S. Miller committed Nov 28, 2010
1 parent 015ae96 commit a2a47e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 6a632625c7da7594d059b88dae0e9c591af147ba
refs/heads/master: aa285b1740f5b13e5a2606a927f3129954583d78
4 changes: 2 additions & 2 deletions trunk/include/net/xfrm.h
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ __be16 xfrm_flowi_sport(struct flowi *fl)
port = htons(fl->fl_mh_type);
break;
case IPPROTO_GRE:
port = htonl(fl->fl_gre_key) >> 16;
port = htons(ntohl(fl->fl_gre_key) >> 16);
break;
default:
port = 0; /*XXX*/
Expand All @@ -830,7 +830,7 @@ __be16 xfrm_flowi_dport(struct flowi *fl)
port = htons(fl->fl_icmp_code);
break;
case IPPROTO_GRE:
port = htonl(fl->fl_gre_key) & 0xffff;
port = htons(ntohl(fl->fl_gre_key) & 0xffff);
break;
default:
port = 0; /*XXX*/
Expand Down

0 comments on commit a2a47e5

Please sign in to comment.