dummy.c (cdd38c5f1ce4398ec58fec95904b75824daab7b5) dummy.c (fb3ceec187e8bca474340e361a18163a2e79c0a2)
1// SPDX-License-Identifier: GPL-2.0-only
2/* dummy.c: a dummy net driver
3
4 The purpose of this driver is to provide a device to point a
5 route through, but not to actually transmit packets.
6
7 Why? If you have a machine whose only connection is an occasional
8 PPP/SLIP/PLIP link, you can only connect to your own hostname

--- 88 unchanged lines hidden (view full) ---

97 .ndo_set_mac_address = eth_mac_addr,
98 .ndo_get_stats64 = dummy_get_stats64,
99 .ndo_change_carrier = dummy_change_carrier,
100};
101
102static void dummy_get_drvinfo(struct net_device *dev,
103 struct ethtool_drvinfo *info)
104{
1// SPDX-License-Identifier: GPL-2.0-only
2/* dummy.c: a dummy net driver
3
4 The purpose of this driver is to provide a device to point a
5 route through, but not to actually transmit packets.
6
7 Why? If you have a machine whose only connection is an occasional
8 PPP/SLIP/PLIP link, you can only connect to your own hostname

--- 88 unchanged lines hidden (view full) ---

97 .ndo_set_mac_address = eth_mac_addr,
98 .ndo_get_stats64 = dummy_get_stats64,
99 .ndo_change_carrier = dummy_change_carrier,
100};
101
102static void dummy_get_drvinfo(struct net_device *dev,
103 struct ethtool_drvinfo *info)
104{
105 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
105 strscpy(info->driver, DRV_NAME, sizeof(info->driver));
106}
107
108static const struct ethtool_ops dummy_ethtool_ops = {
109 .get_drvinfo = dummy_get_drvinfo,
110 .get_ts_info = ethtool_op_get_ts_info,
111};
112
113static void dummy_setup(struct net_device *dev)

--- 99 unchanged lines hidden ---
106}
107
108static const struct ethtool_ops dummy_ethtool_ops = {
109 .get_drvinfo = dummy_get_drvinfo,
110 .get_ts_info = ethtool_op_get_ts_info,
111};
112
113static void dummy_setup(struct net_device *dev)

--- 99 unchanged lines hidden ---