mirror of
https://review.haiku-os.org/haiku
synced 2025-02-01 11:15:59 +01:00
freebsd compat. layer: when open()ing the device, and setting it up, don't clear the device flags (multicast included).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21082 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
07ef8870a3
commit
ed014fee89
@ -136,14 +136,14 @@ compat_open(const char *name, uint32 flags, void **cookie)
|
||||
struct ifnet *ifp = dev->ifp;
|
||||
struct ifreq ifr;
|
||||
|
||||
ifp->if_flags = 0;
|
||||
ifp->if_flags &= ~IFF_UP;
|
||||
ifp->if_ioctl(ifp, SIOCSIFFLAGS, NULL);
|
||||
|
||||
memset(&ifr, 0, sizeof(ifr));
|
||||
ifr.ifr_media = IFM_MAKEWORD(IFM_ETHER, IFM_AUTO, 0, 0);
|
||||
ifp->if_ioctl(ifp, SIOCSIFMEDIA, (caddr_t)&ifr);
|
||||
|
||||
ifp->if_flags = IFF_UP;
|
||||
ifp->if_flags |= IFF_UP;
|
||||
ifp->if_ioctl(ifp, SIOCSIFFLAGS, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user