Searched refs:linktype (Results 1 - 25 of 31) sorted by relevance

12

/external/libpcap/
H A Dpcap-common.h22 extern int linktype_to_dlt(int linktype);
24 extern void swap_pseudo_headers(int linktype, struct pcap_pkthdr *hdr,
H A Dsf-pcap.c113 * 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 Dpcap-common.c1007 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 Dpcap-win32.c540 /*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 Dpcap-snoop.c123 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 Dpcap-dag.c385 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 Dsf-pcap-ng.c131 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 Ddlpisubs.c217 p->linktype = DLT_EN10MB;
241 p->linktype = DLT_FDDI;
247 p->linktype = DLT_IEEE802;
253 p->linktype = DLT_SUNATM;
H A Dpcap-pf.c369 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 Dpcap-enet.c148 initdevice(char *device, int pflag, int *linktype) argument
228 *linktype = DLT_EN10MB;
H A Dgencode.c832 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 Dpcap-linux.c1498 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 Dpcap.c895 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 Dpcap-netfilter-linux.c133 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 Dpcap-septel.c198 handle->linktype = DLT_MTP2;
H A Dpcap-snf.c42 p->linktype = dlt;
307 p->linktype = DLT_EN10MB;
H A Dpcap-bt-monitor-linux.c167 handle->linktype = DLT_BLUETOOTH_LINUX_MONITOR;
H A Dpcap-can-linux.c153 handle->linktype = DLT_CAN_SOCKETCAN;
H A Dpcap-dbus.c205 handle->linktype = DLT_DBUS;
H A Dpcap-int.h188 int linktype; /* Network linktype */ member in struct:pcap
189 int linktype_ext; /* Extended information stored in the linktype field of a file */
H A Dpcap-nit.c301 p->linktype = DLT_EN10MB;
H A Dpcap-bt-linux.c204 handle->linktype = DLT_BLUETOOTH_HCI_H4_WITH_PHDR;
H A Dpcap-canusb-linux.c367 handle->linktype = DLT_CAN_SOCKETCAN;
/external/ppp/pppd/include/
H A Dpcap-int.h71 int linktype; member in struct:pcap
/external/libpcap/pcap/
H A Dpcap.h95 * 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

Completed in 794 milliseconds

12