HomeSort by: relevance | last modified time | path
    Searched refs:dlt (Results 1 - 10 of 10) sorted by relevancy

  /src/tests/net/bpf/
t_bpf.c 40 #include <net/dlt.h>
268 u_int dlt; local in function:ATF_TC_BODY
275 ATF_REQUIRE_EQ_MSG(rump_sys_ioctl(bpfd, BIOCGDLT, &dlt), -1,
276 "Don't allow to get a DLT without interfaces");
280 RL(rump_sys_ioctl(bpfd, BIOCGDLT, &dlt));
281 ATF_REQUIRE(dlt == DLT_EN10MB);
283 dlt = DLT_NULL;
284 ATF_REQUIRE_EQ_MSG(rump_sys_ioctl(bpfd, BIOCSDLT, &dlt), -1,
285 "Don't allow to set a DLT that doesn't match any listening "
310 "Don't allow to get a DLT list without interfaces")
    [all...]
  /src/sys/net/
bpf_stub.c 76 bpf_stub_attach(struct ifnet *ifp, u_int dlt, u_int hlen, struct bpf_if **drvp)
83 lag->lag_dlt = dlt;
101 bpf_ops->bpf_attach(ifp, dlt, hlen, drvp);
Makefile 5 INCS= bpf.h bpfjit.h bpfdesc.h dlt.h ethertypes.h if.h if_arc.h if_arp.h \
bpf.c 2181 * Attach an interface to bpf. dlt is the link layer type;
2182 * hdrlen is the fixed size of the link header for the specified dlt
2186 _bpfattach(struct ifnet *ifp, u_int dlt, u_int hdrlen, struct bpf_if **driverp)
2195 bp->bif_dlt = dlt;
2209 printf("bpf: %s attached with dlt %x\n", ifp->if_xname, dlt);
2302 _bpf_change_type(struct ifnet *ifp, u_int dlt, u_int hdrlen)
2314 bp->bif_dlt = dlt;
2372 bpf_setdlt(struct bpf_d *d, u_int dlt)
2381 if (d->bd_bif->bif_dlt == dlt)
    [all...]
bpf.h 222 #include <net/dlt.h>
if.h 90 #include <net/dlt.h>
362 int if_dlt; /* :: data link type (<net/dlt.h>) */
  /src/usr.sbin/mopd/common/
pf.c 75 u_int dlt; local in function:pfInit
118 if (ioctl(fd, BIOCGDLT, (caddr_t) & dlt) < 0) {
122 if (dlt != DLT_EN10MB) {
  /src/usr.sbin/wakeonlan/
wakeonlan.c 97 u_int dlt; local in function:bind_if_to_bpf
106 if (ioctl(bpf, BIOCGDLT, &dlt) == -1)
108 if (dlt != DLT_EN10MB) {
  /src/usr.sbin/rarpd/
rarpd.c 298 u_int dlt; local in function:rarp_open
342 if (ioctl(fd, BIOCGDLT, (caddr_t) & dlt) < 0) {
346 if (dlt != DLT_EN10MB) {
  /src/sys/dev/pci/
xmm7360.c 269 #define bpfattach(bpf, ifp, dlt, sz) bpf_attach(ifp, dlt, sz)

Completed in 18 milliseconds