Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121955
b: refs/heads/master
c: 007c383
h: refs/heads/master
i:
  121953: dbf8879
  121951: 9695101
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Nov 21, 2008
1 parent be8fcff commit 18a78b0
Show file tree
Hide file tree
Showing 3 changed files with 11 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: aa18e9e88c863a58f6ea63eeee0e740be071fdcf
refs/heads/master: 007c3838d9fdcc8fdaea87e4879ec3759f016ed5
6 changes: 5 additions & 1 deletion trunk/net/ipv4/ipmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,16 @@ static int reg_vif_xmit(struct sk_buff *skb, struct net_device *dev)
return 0;
}

static const struct net_device_ops reg_vif_netdev_ops = {
.ndo_start_xmit = reg_vif_xmit,
};

static void reg_vif_setup(struct net_device *dev)
{
dev->type = ARPHRD_PIMREG;
dev->mtu = ETH_DATA_LEN - sizeof(struct iphdr) - 8;
dev->flags = IFF_NOARP;
dev->hard_start_xmit = reg_vif_xmit;
dev->netdev_ops = &reg_vif_netdev_ops,
dev->destructor = free_netdev;
}

Expand Down
6 changes: 5 additions & 1 deletion trunk/net/ipv6/ip6mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,16 @@ static int reg_vif_xmit(struct sk_buff *skb, struct net_device *dev)
return 0;
}

static const struct net_device_ops reg_vif_netdev_ops = {
.ndo_start_xmit = reg_vif_xmit,
};

static void reg_vif_setup(struct net_device *dev)
{
dev->type = ARPHRD_PIMREG;
dev->mtu = 1500 - sizeof(struct ipv6hdr) - 8;
dev->flags = IFF_NOARP;
dev->hard_start_xmit = reg_vif_xmit;
dev->netdev_ops = &reg_vif_netdev_ops;
dev->destructor = free_netdev;
}

Expand Down

0 comments on commit 18a78b0

Please sign in to comment.