/freebsd-current/contrib/libpcap/ |
H A D | pcap-common.h | 26 extern int linktype_to_dlt(int linktype);
|
H A D | pcap-util.h | 50 extern void pcap_post_process(int linktype, int swapped, 53 extern void fixup_pcap_pkthdr(int linktype, struct pcap_pkthdr *hdr,
|
H A D | sf-pcap.c | 106 * 6 bits of a linktype value in a capture file. 219 hdr.linktype = SWAPLONG(hdr.linktype); 257 p->linktype = linktype_to_dlt(LT_LINKTYPE(hdr.linktype)); 258 p->linktype_ext = LT_LINKTYPE_EXT(hdr.linktype); 259 p->snapshot = pcap_adjust_snapshot(p->linktype, hdr.snaplen); 365 if (p->linktype == DLT_EN10MB) { 543 if (hdr->caplen > max_snaplen_for_dlt(p->linktype)) { 560 max_snaplen_for_dlt(p->linktype)); 720 sf_write_header(pcap_t *p, FILE *fp, int linktype, int snaplen) argument 795 pcap_setup_dump(pcap_t *p, int linktype, FILE *f, const char *fname) argument 828 int linktype; local 913 int linktype; local 931 int linktype; local [all...] |
H A D | pcap-common.c | 1213 int linktype; member in struct:linktype_map 1306 return (map[i].linktype); 1318 linktype_to_dlt(int linktype) argument 1328 if (linktype == LINKTYPE_PFSYNC) 1330 if (linktype == LINKTYPE_PKTAP) 1345 if (linktype >= LINKTYPE_MATCHING_MIN && 1346 linktype <= LINKTYPE_MATCHING_MAX && 1347 linktype != LINKTYPE_ATM_CLIP) 1348 return (linktype); 1353 for (i = 0; map[i].linktype ! [all...] |
H A D | pcap-dag.c | 471 if (p->linktype == DLT_ERF) { 531 if (p->linktype == DLT_SUNATM) { 545 } else if (p->linktype == DLT_ATM_RFC1483) { 557 if ((p->linktype != DLT_EN10MB) && 558 (p->linktype != DLT_DOCSIS)) 575 if ((p->linktype != DLT_CHDLC) && 576 (p->linktype != DLT_PPP_SERIAL) && 577 (p->linktype != DLT_FRELAY)) 591 if ((p->linktype != DLT_CHDLC) && 592 (p->linktype ! [all...] |
H A D | dlpisubs.c | 236 p->linktype = DLT_EN10MB; 260 p->linktype = DLT_FDDI; 266 p->linktype = DLT_IEEE802; 272 p->linktype = DLT_SUNATM; 279 p->linktype = DLT_IPV4; 286 p->linktype = DLT_IPV6; 302 p->linktype = DLT_RAW;
|
H A D | pcap-snoop.c | 123 if (p->linktype == DLT_NULL && *((short *)(cp + 2)) == 0) { 262 p->linktype = DLT_EN10MB; 297 p->linktype = DLT_FDDI; 301 p->linktype = DLT_RAW; 304 p->linktype = DLT_IP_OVER_FC; 307 p->linktype = DLT_RAW; 310 p->linktype = DLT_NULL;
|
H A D | pcap-util.c | 396 swap_pseudo_headers(int linktype, struct pcap_pkthdr *hdr, u_char *data) argument 403 switch (linktype) { 432 pcap_post_process(int linktype, int swapped, struct pcap_pkthdr *hdr, argument 436 swap_pseudo_headers(linktype, hdr, data); 438 fixup_pcap_pkthdr(linktype, hdr, data); 442 fixup_pcap_pkthdr(int linktype, struct pcap_pkthdr *hdr, const u_char *data) argument 447 if (linktype == DLT_USB_LINUX_MMAPPED &&
|
H A D | pcap-linux.c | 960 switch (handle->linktype) { 1152 handle->linktype = dlt; 1815 * constant, as arguments, and sets "handle->linktype" to the 1850 handle->linktype = DLT_RAW; 1886 * device linktype is already set by 1911 handle->linktype = DLT_EN10MB; 1916 handle->linktype = DLT_EN3MB; 1920 handle->linktype = DLT_AX25_KISS; 1924 handle->linktype = DLT_PRONET; 1928 handle->linktype 5124 bpf_u_int32 linktype; member in struct:dsa_proto [all...] |
H A D | pcap-pf.c | 394 p->linktype = DLT_EN10MB; 418 p->linktype = DLT_FDDI; 423 p->linktype = DLT_SLIP; 429 p->linktype = DLT_PPP; 439 p->linktype = DLT_EN10MB; 446 p->linktype = DLT_IEEE802; 471 if (p->linktype == DLT_FDDI) {
|
H A D | sf-pcapng.c | 117 u_short linktype; member in struct:interface_description_block 1029 idbp->linktype = SWAPSHORT(idbp->linktype); 1062 p->linktype = linktype_to_dlt(idbp->linktype); 1063 p->snapshot = pcap_adjust_snapshot(p->linktype, idbp->snaplen); 1071 if (MAX_BLOCKSIZE_FOR_SNAPLEN(max_snaplen_for_dlt(p->linktype)) > ps->max_blocksize) 1072 ps->max_blocksize = MAX_BLOCKSIZE_FOR_SNAPLEN(max_snaplen_for_dlt(p->linktype)); 1240 idbp->linktype = SWAPSHORT(idbp->linktype); [all...] |
H A D | pcap-enet.c | 148 initdevice(char *device, int pflag, int *linktype) argument 228 *linktype = DLT_EN10MB;
|
H A D | pcap-npf.c | 1116 /*Set the linktype*/ 1123 p->linktype = DLT_EN10MB; 1149 p->linktype = DLT_IEEE802; 1153 p->linktype = DLT_FDDI; 1157 p->linktype = DLT_EN10MB; 1161 p->linktype = DLT_ARCNET; 1165 p->linktype = DLT_ARCNET; 1169 p->linktype = DLT_ATM_RFC1483; 1173 p->linktype = DLT_RAW; 1177 p->linktype [all...] |
H A D | gencode.c | 166 (cs)->prevlinktype = (cs)->linktype; \ 168 (cs)->linktype = (new_linktype); \ 246 int linktype; member in struct:_compiler_state 1151 cstate->linktype = cstate->outermostlinktype; 1199 switch (cstate->linktype) { 1710 if (cstate->linktype >= DLT_MATCHING_MIN && 1711 cstate->linktype <= DLT_MATCHING_MAX) { 1718 cstate->linktype, DLT_MATCHING_MIN, DLT_MATCHING_MAX); 2144 if (cstate->linktype == DLT_NULL || cstate->linktype [all...] |
H A D | pcap-int.h | 143 * per-linktype maximum snapshot length. Other code might naively 266 int linktype; /* Network linktype */ member in struct:pcap 267 int linktype_ext; /* Extended information stored in the linktype field of a file */ 582 bpf_u_int32 pcap_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen);
|
H A D | pcap-airpcap.c | 333 p->linktype = dlt; 873 p->linktype = DLT_IEEE802_11_RADIO; 877 p->linktype = DLT_PPI; 881 p->linktype = DLT_IEEE802_11;
|
H A D | pcap-septel.c | 188 handle->linktype = DLT_MTP2;
|
H A D | rpcap-protocol.h | 282 int32 linktype; /* Link type */ member in struct:rpcap_openreply
|
H A D | pcap-netfilter-linux.c | 208 if (handle->linktype != DLT_NFLOG) { 272 /* if type == NFQUEUE, handle->linktype is always != DLT_NFLOG, 312 handle->linktype = dlt; 614 handle->linktype = DLT_NFLOG; 623 handle->linktype = DLT_IPV4;
|
H A D | savefile.c | 454 pcap_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen) argument 462 * <= INT_MAX but > max_snaplen_for_dlt(linktype), 466 snaplen = max_snaplen_for_dlt(linktype);
|
/freebsd-current/sys/netgraph/bluetooth/include/ |
H A D | ng_l2cap.h | 368 uint8_t linktype; member in struct:__anon5435 389 u_int8_t linktype; /* link type*/ member in struct:__anon5437 399 u_int8_t linktype; /*link type */ member in struct:__anon5438 579 uint8_t linktype; member in struct:__anon5458
|
/freebsd-current/sys/netgraph/bluetooth/l2cap/ |
H A D | ng_l2cap_var.h | 122 uint8_t linktype; member in struct:ng_l2cap_con
|
H A D | ng_l2cap_misc.c | 138 con->linktype = type; 306 (con->linktype == type)) 348 (con->linktype!= NG_HCI_LINK_ACL)); 392 (ch->con->linktype == NG_HCI_LINK_ACL )) 395 (ch->con->linktype != NG_HCI_LINK_ACL ))
|
H A D | ng_l2cap_ulpi.c | 85 con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr, ip->linktype); 88 error = ng_l2cap_lp_con_req(l2cap, &ip->bdaddr,ip->linktype); 97 con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr, ip->linktype); 203 op->idtype = (ch->con->linktype == NG_HCI_LINK_ACL)? 248 ,(ip->linktype == NG_HCI_LINK_ACL)? 372 op->idtype =(ch->con->linktype ==NG_HCI_LINK_ACL)? 458 ip->linktype = ch->con->linktype; 970 op->idtype = (ch->con->linktype == NG_HCI_LINK_ACL)? 1027 idtype = (con->linktype [all...] |
/freebsd-current/contrib/pf/pflogd/ |
H A D | pflogd.c | 378 hdr.linktype = hpcap->linktype; 431 hdr.linktype != hpcap->linktype ||
|