Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328118
b: refs/heads/master
c: bcc4529
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Sep 27, 2012
1 parent 9b196d6 commit 9b2ae43
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 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: e2bcabec6ea5ba30dd2097dc1566e9957d14117c
refs/heads/master: bcc452935da124f26885e969ec5a78a8735d1452
8 changes: 0 additions & 8 deletions trunk/net/ipv6/ip6_gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -1279,16 +1279,8 @@ static int ip6gre_header(struct sk_buff *skb, struct net_device *dev,
return -t->hlen;
}

static int ip6gre_header_parse(const struct sk_buff *skb, unsigned char *haddr)
{
const struct ipv6hdr *ipv6h = (const struct ipv6hdr *)skb_mac_header(skb);
memcpy(haddr, &ipv6h->saddr, sizeof(struct in6_addr));
return sizeof(struct in6_addr);
}

static const struct header_ops ip6gre_header_ops = {
.create = ip6gre_header,
.parse = ip6gre_header_parse,
};

static const struct net_device_ops ip6gre_netdev_ops = {
Expand Down

0 comments on commit 9b2ae43

Please sign in to comment.