mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Use if_initname() on 5-CURRENT rather than try to set the fields directly.
Submitted by: bde
This commit is contained in:
parent
83685e9d76
commit
07041db284
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95514
@ -1,6 +1,6 @@
|
||||
--- src/if_nv.c.orig Sat Nov 8 05:03:00 2003
|
||||
+++ src/if_nv.c Sat Dec 6 21:50:47 2003
|
||||
@@ -457,8 +457,13 @@
|
||||
+++ src/if_nv.c Tue Dec 9 08:54:39 2003
|
||||
@@ -457,8 +457,12 @@
|
||||
/* Setup interface parameters */
|
||||
ifp = &sc->sc_if;
|
||||
ifp->if_softc = sc;
|
||||
@ -8,8 +8,7 @@
|
||||
ifp->if_unit = unit;
|
||||
ifp->if_name = "nv";
|
||||
+#else
|
||||
+ ifp->if_dunit = unit;
|
||||
+ ifp->if_dname = "nv";
|
||||
+ if_initname(ifp, "nv", unit);
|
||||
+#endif
|
||||
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
|
||||
ifp->if_ioctl = nv_ioctl;
|
||||
|
Loading…
Reference in New Issue
Block a user