| /src/external/bsd/libpcap/dist/ |
| pcap-common.h | 26 extern int dlt_to_linktype(int dlt); 30 extern u_int max_snaplen_for_dlt(int dlt);
|
| pcap-common.c | 1317 dlt_to_linktype(int dlt) 1326 if (dlt >= DLT_LOW_MATCHING_MIN && dlt <= DLT_LOW_MATCHING_MAX) 1327 return (dlt); 1339 if (dlt == DLT_PFSYNC) 1354 if (dlt == DLT_PKTAP) 1359 * For all other DLT_* codes in the high matching range, the DLT 1362 if (dlt >= DLT_HIGH_MATCHING_MIN && dlt <= DLT_HIGH_MATCHING_MAX) 1363 return (dlt); [all...] |
| pcap.c | 395 pcap_set_datalink_not_initialized(pcap_t *pcap, int dlt _U_) 3038 * DLT for an interface. Return a list of DLTs 3039 * containing only the DLT this device supports. 3080 pcap_set_datalink(pcap_t *p, int dlt) 3085 if (dlt < 0) 3093 * DLT for an interface. Check whether the new 3094 * DLT is the one this interface supports. 3096 if (p->linktype != dlt) 3105 if (p->dlt_list[i] == (u_int)dlt) 3110 dlt == DLT_DOCSIS) 3232 int dlt; member in struct:dlt_choice [all...] |
| pcap-airpcap.c | 302 airpcap_set_datalink(pcap_t *p, int dlt) 307 switch (dlt) { 331 p->linktype = dlt;
|
| pcap-snf.c | 47 snf_set_datalink(pcap_t *p, int dlt) 49 p->linktype = dlt;
|
| pcap-netfilter-linux.c | 313 netfilter_set_datalink(pcap_t *handle, int dlt) 315 handle->linktype = dlt; 622 "Can't allocate DLT list");
|
| pcap-dag.c | 214 static int dag_set_datalink(pcap_t *p, int dlt); 653 /* These types have no matching 'native' DLT, but can be used with DLT_ERF above */ 1218 dag_set_datalink(pcap_t *p, int dlt) 1220 p->linktype = dlt;
|
| pcap-bpf.c | 257 static int pcap_set_datalink_bpf(pcap_t *p, int dlt); 1111 * as the default DLT for this adapter.) 1119 * We have an 802.11 DLT, so we can set monitor mode. 2042 * we just open the enN device, and set the DLT. 3673 pcap_set_datalink_bpf(pcap_t *p, int dlt) 3675 if (ioctl(p->fd, BIOCSDLT, &dlt) == -1) { 3677 errno, "Cannot set DLT %d", dlt); 3684 pcap_set_datalink_bpf(pcap_t *p _U_, int dlt _U_)
|
| /src/external/bsd/tcpdump/dist/missing/ |
| dlnames.c | 47 int dlt; member in struct:dlt_choice 138 return (dlt_choices[i].dlt); 144 pcap_datalink_val_to_name(int dlt) 149 if (dlt_choices[i].dlt == dlt) 157 pcap_datalink_val_to_description(int dlt) 162 if (dlt_choices[i].dlt == dlt)
|
| /src/external/bsd/tcpdump/dist/ |
| print-pktap.c | 53 nd_uint32_t pkt_dlt; /* DLT type of this packet */ 78 uint32_t dlt, hdrlen; local 83 dlt = GET_LE_U_4(hdr->pkt_dlt); 85 dltname = pcap_datalink_val_to_name(dlt); 87 ND_PRINT("DLT %s (%u) len %u", 88 (dltname != NULL ? dltname : "UNKNOWN"), dlt, hdrlen); 106 uint32_t dlt, hdrlen, rectype; local 120 dlt = GET_LE_U_4(hdr->pkt_dlt); 156 printer = lookup_printer(dlt);
|
| print-ppi.c | 43 uint32_t dlt; local 49 dlt = GET_LE_U_4(hdr->ppi_dlt); 50 dltname = pcap_datalink_val_to_name(dlt); 53 ND_PRINT("V.%u DLT %s (%u) len %u", GET_U_1(hdr->ppi_ver), 54 (dltname != NULL ? dltname : "UNKNOWN"), dlt, 78 uint32_t dlt; local 108 dlt = GET_LE_U_4(hdr->ppi_dlt); 117 printer = lookup_printer(dlt);
|
| tcpdump.c | 505 (void) fprintf(stdout, " DLT %d (printing not supported)\n", 1537 int dlt; local 1739 dlt = -1; 2371 dlt = pcap_datalink(pd); 2372 dlt_name = pcap_datalink_val_to_name(dlt); 2375 fprintf(stderr, ", link-type %u", dlt); 2378 pcap_datalink_val_to_description(dlt)); 2382 if (dlt == DLT_LINUX_SLL2) 2390 * definitely want to open it to use the DLT of that device.) 2401 * If a DLT was specified with the -y flag, use that instead [all...] |
| /src/tests/net/bpf/ |
| t_bpf.c | 40 #include <net/dlt.h> 268 u_int dlt; local 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/external/bsd/libpcap/dist/testprogs/ |
| writecaptest.c | 248 int dlt; local 344 printf("DLT %d", dlts[i]); 398 dlt = pcap_datalink_name_to_val(dlt_name); 399 if (dlt == PCAP_ERROR) 400 error("%s isn't a valid DLT name", dlt_name); 401 if (pcap_set_datalink(pd, dlt) == PCAP_ERROR) 436 dlt = pcap_datalink(pd); 437 dlt_name = pcap_datalink_val_to_name(dlt); 439 printf("DLT %d", dlt); [all...] |
| filtertest.c | 217 int dlt; local 314 dlt = pcap_datalink_name_to_val(argv[optind]); 315 if (dlt < 0) { 316 dlt = (int)strtol(argv[optind], &p, 10); 331 pd = pcap_open_dead(dlt, snaplen); 372 "Usage: %s [-dgO] [ -F file ] [ -m netmask] [ -s snaplen ] dlt [ expression ]\n", 374 "Usage: %s [-dO] [ -F file ] [ -m netmask] [ -s snaplen ] dlt [ expression ]\n",
|
| /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 | 2155 * Attach an interface to bpf. dlt is the link layer type; 2156 * hdrlen is the fixed size of the link header for the specified dlt 2160 _bpfattach(struct ifnet *ifp, u_int dlt, u_int hdrlen, struct bpf_if **driverp) 2169 bp->bif_dlt = dlt; 2183 printf("bpf: %s attached with dlt %x\n", ifp->if_xname, dlt); 2276 _bpf_change_type(struct ifnet *ifp, u_int dlt, u_int hdrlen) 2288 bp->bif_dlt = dlt; 2346 bpf_setdlt(struct bpf_d *d, u_int dlt) 2355 if (d->bd_bif->bif_dlt == dlt) [all...] |
| /src/usr.sbin/mopd/common/ |
| pf.c | 75 u_int dlt; local 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 106 if (ioctl(bpf, BIOCGDLT, &dlt) == -1) 108 if (dlt != DLT_EN10MB) {
|
| /src/external/bsd/libpcap/dist/pcap/ |
| bpf.h | 85 #include <pcap/dlt.h>
|
| /src/usr.sbin/rarpd/ |
| rarpd.c | 298 u_int dlt; local 342 if (ioctl(fd, BIOCGDLT, (caddr_t) & dlt) < 0) { 346 if (dlt != DLT_EN10MB) {
|
| /src/external/gpl3/binutils.old/dist/bfd/ |
| elf64-hppa.c | 465 /* Return a pointer to the local DLT, PLT and OPD reference counts 479 /* Allocate space for local DLT, PLT and OPD reference 667 DLT. We need to create a DLT entry for any symbols which 677 /* ?!? These need a DLT entry. But I have no idea what to do with 735 /* This is an indirect reference through the DLT to get the address 736 of a OPD descriptor. Thus we need to make a DLT entry that points 780 /* Allocate space for a DLT entry, as well as a dynamic 795 /* This is a DLT entry for a local symbol. */ 956 /* Allocate space for a DLT entry. * 1216 asection *dlt; local [all...] |
| /src/external/gpl3/gdb.old/dist/bfd/ |
| elf64-hppa.c | 465 /* Return a pointer to the local DLT, PLT and OPD reference counts 479 /* Allocate space for local DLT, PLT and OPD reference 667 DLT. We need to create a DLT entry for any symbols which 677 /* ?!? These need a DLT entry. But I have no idea what to do with 735 /* This is an indirect reference through the DLT to get the address 736 of a OPD descriptor. Thus we need to make a DLT entry that points 780 /* Allocate space for a DLT entry, as well as a dynamic 795 /* This is a DLT entry for a local symbol. */ 956 /* Allocate space for a DLT entry. * 1216 asection *dlt; local [all...] |
| /src/external/gpl3/gdb/dist/bfd/ |
| elf64-hppa.c | 465 /* Return a pointer to the local DLT, PLT and OPD reference counts 479 /* Allocate space for local DLT, PLT and OPD reference 667 DLT. We need to create a DLT entry for any symbols which 677 /* ?!? These need a DLT entry. But I have no idea what to do with 735 /* This is an indirect reference through the DLT to get the address 736 of a OPD descriptor. Thus we need to make a DLT entry that points 780 /* Allocate space for a DLT entry, as well as a dynamic 795 /* This is a DLT entry for a local symbol. */ 956 /* Allocate space for a DLT entry. * 1216 asection *dlt; local [all...] |