diff options
author | obrien <obrien@FreeBSD.org> | 2003-12-07 05:51:31 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-12-07 05:51:31 +0000 |
commit | d08a52bc1cb5d625f6489bd3194856b994c15656 (patch) | |
tree | acfa2fd45dda3503ad728b26b6c11891d05ebf69 /net | |
parent | 008af7820e4941e72087575bcb2e7f4efc6d7469 (diff) | |
download | FreeBSD-ports-d08a52bc1cb5d625f6489bd3194856b994c15656.zip FreeBSD-ports-d08a52bc1cb5d625f6489bd3194856b994c15656.tar.gz |
Handle 5.1-CURRENT after the if_xname change in struct ifnet.
Diffstat (limited to 'net')
-rw-r--r-- | net/nvnet/files/patch-if_nv.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/nvnet/files/patch-if_nv.c b/net/nvnet/files/patch-if_nv.c new file mode 100644 index 0000000..c1e113d --- /dev/null +++ b/net/nvnet/files/patch-if_nv.c @@ -0,0 +1,16 @@ +--- 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 @@ + /* Setup interface parameters */ + ifp = &sc->sc_if; + ifp->if_softc = sc; ++#if __FreeBSD_version < 501113 + ifp->if_unit = unit; + ifp->if_name = "nv"; ++#else ++ ifp->if_dunit = unit; ++ ifp->if_dname = "nv"; ++#endif + ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; + ifp->if_ioctl = nv_ioctl; + ifp->if_output = ether_output; |