Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81943
b: refs/heads/master
c: dc35dc5
h: refs/heads/master
i:
  81941: 3549567
  81939: a828dcd
  81935: 9f5e715
v: v3
  • Loading branch information
Jan Engelhardt authored and David S. Miller committed Feb 1, 2008
1 parent db2ee4c commit cb5b662
Show file tree
Hide file tree
Showing 3 changed files with 6 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: da3f13c95a4c6e275a9b568f358c0c120ad83ecb
refs/heads/master: dc35dc5a4c8e7752c82643ff2ad442685331ab28
2 changes: 1 addition & 1 deletion trunk/net/ipv4/netfilter/nf_nat_proto_gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ gre_manip_pkt(struct sk_buff *skb, unsigned int iphdroff,
{
struct gre_hdr *greh;
struct gre_hdr_pptp *pgreh;
struct iphdr *iph = (struct iphdr *)(skb->data + iphdroff);
const struct iphdr *iph = (struct iphdr *)(skb->data + iphdroff);
unsigned int hdroff = iphdroff + iph->ihl * 4;

/* pgreh includes two optional 32bit fields which are not required
Expand Down
6 changes: 4 additions & 2 deletions trunk/net/netfilter/nf_conntrack_proto_gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,11 @@ static int gre_pkt_to_tuple(const struct sk_buff *skb,
unsigned int dataoff,
struct nf_conntrack_tuple *tuple)
{
struct gre_hdr_pptp _pgrehdr, *pgrehdr;
const struct gre_hdr_pptp *pgrehdr;
struct gre_hdr_pptp _pgrehdr;
__be16 srckey;
struct gre_hdr _grehdr, *grehdr;
const struct gre_hdr *grehdr;
struct gre_hdr _grehdr;

/* first only delinearize old RFC1701 GRE header */
grehdr = skb_header_pointer(skb, dataoff, sizeof(_grehdr), &_grehdr);
Expand Down

0 comments on commit cb5b662

Please sign in to comment.