Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb ETHERCAP_VLAN_MTU does not go into ifp->if_capab...
details: https://anonhg.NetBSD.org/src/rev/3f9610e47ac6
branches: trunk
changeset: 371786:3f9610e47ac6
user: martin <martin%NetBSD.org@localhost>
date: Mon Oct 10 18:30:28 2022 +0000
description:
ETHERCAP_VLAN_MTU does not go into ifp->if_capabilities but ethercom
ec_capabilities instead.
diffstat:
sys/dev/usb/if_mos.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r e2b540f4a808 -r 3f9610e47ac6 sys/dev/usb/if_mos.c
--- a/sys/dev/usb/if_mos.c Mon Oct 10 17:33:35 2022 +0000
+++ b/sys/dev/usb/if_mos.c Mon Oct 10 18:30:28 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_mos.c,v 1.23 2022/08/20 14:08:59 riastradh Exp $ */
+/* $NetBSD: if_mos.c,v 1.24 2022/10/10 18:30:28 martin Exp $ */
/* $OpenBSD: if_mos.c,v 1.40 2019/07/07 06:40:10 kevlo Exp $ */
/*
@@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_mos.c,v 1.23 2022/08/20 14:08:59 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mos.c,v 1.24 2022/10/10 18:30:28 martin Exp $");
#include <sys/param.h>
@@ -652,8 +652,8 @@
return;
}
- struct ifnet *ifp = usbnet_ifp(un);
- ifp->if_capabilities = ETHERCAP_VLAN_MTU;
+ struct ethercom *ec = usbnet_ec(un);
+ ec->ec_capabilities = ETHERCAP_VLAN_MTU;
usbnet_attach_ifp(un, IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST,
0, &unm);
Home |
Main Index |
Thread Index |
Old Index