Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_epair.c
Show First 20 Lines • Show All 623 Lines • ▼ Show 20 Lines | #endif | ||||
*dp = 'b'; | *dp = 'b'; | ||||
ifp = scb->ifp; | ifp = scb->ifp; | ||||
ifp->if_softc = scb; | ifp->if_softc = scb; | ||||
strlcpy(ifp->if_xname, name, IFNAMSIZ); | strlcpy(ifp->if_xname, name, IFNAMSIZ); | ||||
ifp->if_dname = epairname; | ifp->if_dname = epairname; | ||||
ifp->if_dunit = unit; | ifp->if_dunit = unit; | ||||
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; | ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; | ||||
ifp->if_flags |= IFF_KNOWSEPOCH; | |||||
ifp->if_capabilities = IFCAP_VLAN_MTU; | ifp->if_capabilities = IFCAP_VLAN_MTU; | ||||
ifp->if_capenable = IFCAP_VLAN_MTU; | ifp->if_capenable = IFCAP_VLAN_MTU; | ||||
ifp->if_start = epair_start; | ifp->if_start = epair_start; | ||||
ifp->if_ioctl = epair_ioctl; | ifp->if_ioctl = epair_ioctl; | ||||
ifp->if_init = epair_init; | ifp->if_init = epair_init; | ||||
if_setsendqlen(ifp, ifqmaxlen); | if_setsendqlen(ifp, ifqmaxlen); | ||||
if_setsendqready(ifp); | if_setsendqready(ifp); | ||||
/* We need to play some tricks here for the second interface. */ | /* We need to play some tricks here for the second interface. */ | ||||
▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines |