|
@@ -106,7 +106,7 @@ static int hdlc_device_event(struct notifier_block *this, unsigned long event,
|
|
|
if (dev_net(dev) != &init_net)
|
|
|
return NOTIFY_DONE;
|
|
|
|
|
|
- if (dev->get_stats != hdlc_get_stats)
|
|
|
+ if (!(dev->priv_flags & IFF_WAN_HDLC))
|
|
|
return NOTIFY_DONE; /* not an HDLC device */
|
|
|
|
|
|
if (event != NETDEV_CHANGE)
|
|
@@ -235,6 +235,7 @@ static void hdlc_setup_dev(struct net_device *dev)
|
|
|
*/
|
|
|
dev->get_stats = hdlc_get_stats;
|
|
|
dev->flags = IFF_POINTOPOINT | IFF_NOARP;
|
|
|
+ dev->priv_flags = IFF_WAN_HDLC;
|
|
|
dev->mtu = HDLC_MAX_MTU;
|
|
|
dev->type = ARPHRD_RAWHDLC;
|
|
|
dev->hard_header_len = 16;
|