Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121916
b: refs/heads/master
c: 52256cf
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Nov 20, 2008
1 parent fff9caf commit 7dee917
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: acc784263b0c46f3052fb4f155fdfe39b7001c98
refs/heads/master: 52256cfc9f81cd8713e00a0713e68347bbffba5a
6 changes: 5 additions & 1 deletion trunk/drivers/net/ppp_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,13 @@ ppp_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
return err;
}

static const struct net_device_ops ppp_netdev_ops = {
.ndo_do_ioctl = ppp_net_ioctl,
};

static void ppp_setup(struct net_device *dev)
{
dev->netdev_ops = &ppp_netdev_ops;
dev->hard_header_len = PPP_HDRLEN;
dev->mtu = PPP_MTU;
dev->addr_len = 0;
Expand Down Expand Up @@ -2436,7 +2441,6 @@ ppp_create_interface(int unit, int *retp)
dev->priv = ppp;

dev->hard_start_xmit = ppp_start_xmit;
dev->do_ioctl = ppp_net_ioctl;

ret = -EEXIST;
mutex_lock(&all_ppp_mutex);
Expand Down

0 comments on commit 7dee917

Please sign in to comment.