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

12

/freebsd-10.2-release/contrib/libpcap/
H A Dpcap-common.h22 extern int linktype_to_dlt(int linktype);
H A Dsf-pcap.c113 * 6 bits of a linktype value in a capture file.
177 hdr.linktype = SWAPLONG(hdr.linktype);
189 p->linktype = linktype_to_dlt(LT_LINKTYPE(hdr.linktype));
190 p->linktype_ext = LT_LINKTYPE_EXT(hdr.linktype);
244 if (p->linktype == DLT_EN10MB) {
439 switch (p->linktype) {
455 sf_write_header(FILE *fp, int linktype, int thiszone, int snaplen) argument
466 hdr.linktype
494 pcap_setup_dump(pcap_t *p, int linktype, FILE *f, const char *fname) argument
527 int linktype; local
572 int linktype; local
[all...]
H A Dpcap-common.c904 int linktype; member in struct:linktype_map
989 return (map[i].linktype);
1001 linktype_to_dlt(int linktype) argument
1011 if (linktype == LINKTYPE_PFSYNC)
1017 if (linktype >= LINKTYPE_MATCHING_MIN &&
1018 linktype <= LINKTYPE_MATCHING_MAX)
1019 return (linktype);
1024 for (i = 0; map[i].linktype != -1; i++) {
1025 if (map[i].linktype == linktype)
[all...]
H A Dpcap-win32.c490 /*Set the linktype*/
494 p->linktype = DLT_EN10MB;
498 p->linktype = DLT_EN10MB;
521 p->linktype = DLT_FDDI;
525 p->linktype = DLT_IEEE802;
529 p->linktype = DLT_ARCNET;
533 p->linktype = DLT_ARCNET;
537 p->linktype = DLT_ATM_RFC1483;
541 p->linktype = DLT_CHDLC;
545 p->linktype
[all...]
H A Dpcap-snoop.c119 if (p->linktype == DLT_NULL && *((short *)(cp + 2)) == 0) {
250 p->linktype = DLT_EN10MB;
285 p->linktype = DLT_FDDI;
289 p->linktype = DLT_RAW;
292 p->linktype = DLT_IP_OVER_FC;
295 p->linktype = DLT_RAW;
298 p->linktype = DLT_NULL;
H A Dpcap-dag.c361 if (p->linktype == DLT_ERF) {
418 if (p->linktype == DLT_SUNATM) {
475 if (p->linktype == DLT_MTP2_WITH_PHDR) {
772 handle->linktype = -1;
983 p->linktype = dlt;
1048 p->linktype = 0;
1085 if(!p->linktype)
1086 p->linktype = DLT_CHDLC;
1107 if(!p->linktype)
1108 p->linktype
[all...]
H A Dsf-pcap-ng.c131 u_short linktype; member in struct:interface_description_block
689 idbp->linktype = SWAPSHORT(idbp->linktype);
749 p->linktype = linktype_to_dlt(idbp->linktype);
906 idbp->linktype = SWAPSHORT(idbp->linktype);
918 if (p->linktype != idbp->linktype) {
921 idbp->linktype);
[all...]
H A Ddlpisubs.c215 p->linktype = DLT_EN10MB;
239 p->linktype = DLT_FDDI;
245 p->linktype = DLT_IEEE802;
251 p->linktype = DLT_SUNATM;
H A Dpcap-pf.c363 p->linktype = DLT_EN10MB;
387 p->linktype = DLT_FDDI;
392 p->linktype = DLT_SLIP;
398 p->linktype = DLT_PPP;
408 p->linktype = DLT_EN10MB;
415 p->linktype = DLT_IEEE802;
440 if (p->linktype == DLT_FDDI) {
H A Dpcap-linux.c2456 * constant, as arguments, and sets "handle->linktype" to the
2505 handle->linktype = DLT_EN10MB;
2510 handle->linktype = DLT_EN3MB;
2514 handle->linktype = DLT_AX25_KISS;
2518 handle->linktype = DLT_PRONET;
2522 handle->linktype = DLT_CHAOS;
2528 handle->linktype = DLT_CAN_SOCKETCAN;
2536 handle->linktype = DLT_IEEE802;
2541 handle->linktype = DLT_ARCNET_LINUX;
2548 handle->linktype
[all...]
H A Dpcap-enet.c152 initdevice(char *device, int pflag, int *linktype) argument
232 *linktype = DLT_EN10MB;
H A Dgencode.c923 static int linktype; variable
929 linktype = pcap_datalink(p);
973 switch (linktype) {
1466 if (linktype >= DLT_MATCHING_MIN &&
1467 linktype <= DLT_MATCHING_MAX) {
1476 bpf_error("unknown data link type %d", linktype);
2504 if (linktype == DLT_IEEE802_11_RADIO) {
2605 switch (linktype) {
2633 switch (linktype) {
2662 if (linktype
[all...]
H A Dpcap-snf.c24 p->linktype = dlt;
230 p->linktype = DLT_EN10MB;
H A Dpcap-netfilter-linux.c126 if (handle->linktype != DLT_NFLOG) {
207 handle->linktype = dlt;
488 handle->linktype = DLT_NFLOG;
497 handle->linktype = DLT_IPV4;
H A Dpcap-septel.c195 handle->linktype = DLT_MTP2;
H A Dpcap.c754 return (p->linktype);
779 **dlt_buffer = p->linktype;
825 if (p->linktype != dlt)
851 p->linktype = dlt;
856 p->linktype = dlt;
1630 pcap_open_dead(int linktype, int snaplen) argument
1639 p->linktype = linktype;
H A Dpcap-can-linux.c145 handle->linktype = DLT_CAN_SOCKETCAN;
H A Dpcap-int.h261 int linktype; /* Network linktype */ member in struct:pcap
262 int linktype_ext; /* Extended information stored in the linktype field of a file */
H A Dpcap-nit.c281 p->linktype = DLT_EN10MB;
H A Dpcap-bt-linux.c201 handle->linktype = DLT_BLUETOOTH_HCI_H4_WITH_PHDR;
H A Dpcap-canusb-linux.c358 handle->linktype = DLT_CAN_SOCKETCAN;
/freebsd-10.2-release/contrib/pf/pflogd/
H A Dpflogd.c381 hdr.linktype = hpcap->linktype;
434 hdr.linktype != hpcap->linktype ||
/freebsd-10.2-release/lib/libpcap/
H A DMakefile76 pcap-linktype.7
H A Dpcap-netmap.c240 p->linktype = DLT_EN10MB;
/freebsd-10.2-release/contrib/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 203 milliseconds

12