/external/libpcap/ |
H A D | pcap-common.h | 22 extern int linktype_to_dlt(int linktype); 24 extern void swap_pseudo_headers(int linktype, struct pcap_pkthdr *hdr,
|
H A D | sf-pcap.c | 113 * 6 bits of a linktype value in a capture file. 210 hdr.linktype = SWAPLONG(hdr.linktype); 235 p->linktype = linktype_to_dlt(LT_LINKTYPE(hdr.linktype)); 236 p->linktype_ext = LT_LINKTYPE_EXT(hdr.linktype); 342 if (p->linktype == DLT_EN10MB) { 563 swap_pseudo_headers(p->linktype, hdr, *data); 569 sf_write_header(pcap_t *p, FILE *fp, int linktype, int thiszone, int snaplen) argument 580 hdr.linktype 608 pcap_setup_dump(pcap_t *p, int linktype, FILE *f, const char *fname) argument 641 int linktype; local 686 int linktype; local 704 int linktype; local [all...] |
H A D | pcap-common.c | 1007 int linktype; member in struct:linktype_map 1099 return (map[i].linktype); 1111 linktype_to_dlt(int linktype) argument 1121 if (linktype == LINKTYPE_PFSYNC) 1123 if (linktype == LINKTYPE_PKTAP) 1130 if (linktype >= LINKTYPE_MATCHING_MIN && 1131 linktype <= LINKTYPE_MATCHING_MAX) 1132 return (linktype); 1137 for (i = 0; map[i].linktype != -1; i++) { 1138 if (map[i].linktype 1365 swap_pseudo_headers(int linktype, struct pcap_pkthdr *hdr, u_char *data) argument [all...] |
H A D | pcap-win32.c | 540 /*Set the linktype*/ 544 p->linktype = DLT_EN10MB; 548 p->linktype = DLT_EN10MB; 571 p->linktype = DLT_FDDI; 575 p->linktype = DLT_IEEE802; 579 p->linktype = DLT_ARCNET; 583 p->linktype = DLT_ARCNET; 587 p->linktype = DLT_ATM_RFC1483; 591 p->linktype = DLT_CHDLC; 595 p->linktype [all...] |
H A D | pcap-snoop.c | 123 if (p->linktype == DLT_NULL && *((short *)(cp + 2)) == 0) { 255 p->linktype = DLT_EN10MB; 290 p->linktype = DLT_FDDI; 294 p->linktype = DLT_RAW; 297 p->linktype = DLT_IP_OVER_FC; 300 p->linktype = DLT_RAW; 303 p->linktype = DLT_NULL;
|
H A D | pcap-dag.c | 385 if (p->linktype == DLT_ERF) { 445 if (p->linktype == DLT_SUNATM) { 508 if (p->linktype == DLT_MTP2_WITH_PHDR) { 822 handle->linktype = -1; 1074 p->linktype = dlt; 1142 p->linktype = 0; 1179 if(!p->linktype) 1180 p->linktype = DLT_CHDLC; 1201 if(!p->linktype) 1202 p->linktype [all...] |
H A D | sf-pcap-ng.c | 131 u_short linktype; member in struct:interface_description_block 880 idbp->linktype = SWAPSHORT(idbp->linktype); 914 p->linktype = linktype_to_dlt(idbp->linktype); 1083 idbp->linktype = SWAPSHORT(idbp->linktype); 1095 if (p->linktype != idbp->linktype) { 1098 idbp->linktype); [all...] |
H A D | dlpisubs.c | 217 p->linktype = DLT_EN10MB; 241 p->linktype = DLT_FDDI; 247 p->linktype = DLT_IEEE802; 253 p->linktype = DLT_SUNATM;
|
H A D | pcap-pf.c | 369 p->linktype = DLT_EN10MB; 393 p->linktype = DLT_FDDI; 398 p->linktype = DLT_SLIP; 404 p->linktype = DLT_PPP; 414 p->linktype = DLT_EN10MB; 421 p->linktype = DLT_IEEE802; 445 if (p->linktype == DLT_FDDI) {
|
H A D | pcap-enet.c | 148 initdevice(char *device, int pflag, int *linktype) argument 228 *linktype = DLT_EN10MB;
|
H A D | gencode.c | 832 linktype = new_linktype; \ 935 static int linktype; variable 958 linktype = outermostlinktype; 1001 switch (linktype) { 1504 if (linktype >= DLT_MATCHING_MIN && 1505 linktype <= DLT_MATCHING_MAX) { 1511 bpf_error("unknown data link type %d", linktype); 2505 if (linktype == DLT_IEEE802_11_RADIO) { 2677 if (linktype == DLT_PPI) 2860 switch (linktype) { [all...] |
H A D | pcap-linux.c | 1498 handle->linktype = dlt; 2696 * constant, as arguments, and sets "handle->linktype" to the 2731 handle->linktype = DLT_RAW; 2771 handle->linktype = DLT_EN10MB; 2776 handle->linktype = DLT_EN3MB; 2780 handle->linktype = DLT_AX25_KISS; 2784 handle->linktype = DLT_PRONET; 2788 handle->linktype = DLT_CHAOS; 2794 handle->linktype = DLT_CAN_SOCKETCAN; 2802 handle->linktype [all...] |
H A D | pcap.c | 895 return (p->linktype); 924 **dlt_buffer = p->linktype; 970 if (p->linktype != dlt) 996 p->linktype = dlt; 1001 p->linktype = dlt; 1816 pcap_open_dead_with_tstamp_precision(int linktype, int snaplen, u_int precision) argument 1834 p->linktype = linktype; 1854 pcap_open_dead(int linktype, int snaplen) argument 1856 return (pcap_open_dead_with_tstamp_precision(linktype, snaple [all...] |
H A D | pcap-netfilter-linux.c | 133 if (handle->linktype != DLT_NFLOG) { 197 /* if type == NFQUEUE, handle->linktype is always != DLT_NFLOG, 217 handle->linktype = dlt; 499 handle->linktype = DLT_NFLOG; 508 handle->linktype = DLT_IPV4;
|
H A D | pcap-septel.c | 198 handle->linktype = DLT_MTP2;
|
H A D | pcap-snf.c | 42 p->linktype = dlt; 307 p->linktype = DLT_EN10MB;
|
H A D | pcap-bt-monitor-linux.c | 167 handle->linktype = DLT_BLUETOOTH_LINUX_MONITOR;
|
H A D | pcap-can-linux.c | 153 handle->linktype = DLT_CAN_SOCKETCAN;
|
H A D | pcap-dbus.c | 205 handle->linktype = DLT_DBUS;
|
H A D | pcap-int.h | 188 int linktype; /* Network linktype */ member in struct:pcap 189 int linktype_ext; /* Extended information stored in the linktype field of a file */
|
H A D | pcap-nit.c | 301 p->linktype = DLT_EN10MB;
|
H A D | pcap-bt-linux.c | 204 handle->linktype = DLT_BLUETOOTH_HCI_H4_WITH_PHDR;
|
H A D | pcap-canusb-linux.c | 367 handle->linktype = DLT_CAN_SOCKETCAN;
|
/external/ppp/pppd/include/ |
H A D | pcap-int.h | 71 int linktype; member in struct:pcap
|
/external/libpcap/pcap/ |
H A D | pcap.h | 95 * LINKTYPE_ values, as defined in "savefile.c", in the "linktype" 129 bpf_u_int32 linktype; /* data link type (LINKTYPE_*) */ member in struct:pcap_file_header
|