| /freebsd-13.1/contrib/libpcap/ |
| H A D | sf-pcap.c | 214 hdr.linktype = SWAPLONG(hdr.linktype); in pcap_check_header() 253 p->linktype = linktype_to_dlt(LT_LINKTYPE(hdr.linktype)); in pcap_check_header() 728 hdr.linktype = linktype; in sf_write_header() 789 int linktype; in pcap_dump_open() local 801 linktype = dlt_to_linktype(p->linktype); in pcap_dump_open() 874 int linktype; in pcap_dump_fopen() local 876 linktype = dlt_to_linktype(p->linktype); in pcap_dump_fopen() 880 p->linktype); in pcap_dump_fopen() 892 int linktype; in pcap_dump_open_append() local 896 linktype = dlt_to_linktype(p->linktype); in pcap_dump_open_append() [all …]
|
| H A D | pcap-dag.c | 960 p->linktype = -1; in dag_activate() 1228 p->linktype = dlt; in dag_set_datalink() 1296 p->linktype = 0; 1335 if(!p->linktype) 1357 if(!p->linktype) 1369 if(!p->linktype) 1383 if(!p->linktype) 1392 if(!p->linktype) 1401 if(!p->linktype) 1427 if(!p->linktype) [all …]
|
| H A D | pcap-common.c | 1131 int linktype; member 1223 return (map[i].linktype); in dlt_to_linktype() 1235 linktype_to_dlt(int linktype) in linktype_to_dlt() argument 1245 if (linktype == LINKTYPE_PFSYNC) in linktype_to_dlt() 1247 if (linktype == LINKTYPE_PKTAP) in linktype_to_dlt() 1254 if (linktype >= LINKTYPE_MATCHING_MIN && in linktype_to_dlt() 1255 linktype <= LINKTYPE_MATCHING_MAX) in linktype_to_dlt() 1256 return (linktype); in linktype_to_dlt() 1262 if (map[i].linktype == linktype) in linktype_to_dlt() 1271 return linktype; in linktype_to_dlt() [all …]
|
| H A D | dlpisubs.c | 217 p->linktype = DLT_EN10MB; in pcap_process_mactype() 241 p->linktype = DLT_FDDI; in pcap_process_mactype() 247 p->linktype = DLT_IEEE802; in pcap_process_mactype() 253 p->linktype = DLT_SUNATM; in pcap_process_mactype() 260 p->linktype = DLT_IPV4; in pcap_process_mactype() 267 p->linktype = DLT_IPV6; in pcap_process_mactype() 283 p->linktype = DLT_RAW; in pcap_process_mactype()
|
| H A D | sf-pcapng.c | 115 u_short linktype; member 1009 idbp->linktype = SWAPSHORT(idbp->linktype); in pcap_ng_check_header() 1043 p->linktype = linktype_to_dlt(idbp->linktype); in pcap_ng_check_header() 1044 p->snapshot = pcap_adjust_snapshot(p->linktype, idbp->snaplen); in pcap_ng_check_header() 1052 if (MAX_BLOCKSIZE_FOR_SNAPLEN(max_snaplen_for_dlt(p->linktype)) > ps->max_blocksize) in pcap_ng_check_header() 1053 ps->max_blocksize = MAX_BLOCKSIZE_FOR_SNAPLEN(max_snaplen_for_dlt(p->linktype)); in pcap_ng_check_header() 1221 idbp->linktype = SWAPSHORT(idbp->linktype); in pcap_ng_next_packet() 1233 if (p->linktype != idbp->linktype) { in pcap_ng_next_packet() 1236 idbp->linktype); in pcap_ng_next_packet() 1245 pcap_adjust_snapshot(p->linktype, idbp->snaplen)) { in pcap_ng_next_packet() [all …]
|
| H A D | pcap-snoop.c | 123 if (p->linktype == DLT_NULL && *((short *)(cp + 2)) == 0) { in pcap_read_snoop() 262 p->linktype = DLT_EN10MB; in pcap_activate_snoop() 297 p->linktype = DLT_FDDI; in pcap_activate_snoop() 301 p->linktype = DLT_RAW; in pcap_activate_snoop() 304 p->linktype = DLT_IP_OVER_FC; in pcap_activate_snoop() 307 p->linktype = DLT_RAW; in pcap_activate_snoop() 310 p->linktype = DLT_NULL; in pcap_activate_snoop()
|
| H A D | pcap-linux.c | 1726 handle->linktype = dlt; 3176 handle->linktype = DLT_RAW; 3266 handle->linktype = DLT_FDDI; 3313 handle->linktype = -1; 3376 handle->linktype = DLT_RAW; 3411 handle->linktype = DLT_RAW; 3516 handle->linktype = DLT_FC_2; 3550 handle->linktype = DLT_RAW; 3583 handle->linktype = -1; 3961 switch (handle->linktype) { [all …]
|
| H A D | pcap-pf.c | 396 p->linktype = DLT_EN10MB; in pcap_activate_pf() 420 p->linktype = DLT_FDDI; in pcap_activate_pf() 425 p->linktype = DLT_SLIP; in pcap_activate_pf() 431 p->linktype = DLT_PPP; in pcap_activate_pf() 441 p->linktype = DLT_EN10MB; in pcap_activate_pf() 448 p->linktype = DLT_IEEE802; in pcap_activate_pf() 473 if (p->linktype == DLT_FDDI) { in pcap_activate_pf()
|
| H A D | pcap-common.h | 48 extern int linktype_to_dlt(int linktype); 50 extern void swap_pseudo_headers(int linktype, struct pcap_pkthdr *hdr,
|
| H A D | pcap-npf.c | 967 p->linktype = DLT_EN10MB; in pcap_activate_npf() 971 p->linktype = DLT_EN10MB; in pcap_activate_npf() 994 p->linktype = DLT_FDDI; in pcap_activate_npf() 998 p->linktype = DLT_IEEE802; in pcap_activate_npf() 1002 p->linktype = DLT_ARCNET; in pcap_activate_npf() 1006 p->linktype = DLT_ARCNET; in pcap_activate_npf() 1014 p->linktype = DLT_CHDLC; in pcap_activate_npf() 1022 p->linktype = DLT_NULL; in pcap_activate_npf() 1034 p->linktype = DLT_PPI; in pcap_activate_npf() 1039 p->linktype = DLT_RAW; in pcap_activate_npf() [all …]
|
| H A D | gencode.c | 256 int linktype; member 1198 switch (cstate->linktype) { in init_linktype() 2144 if (cstate->linktype == DLT_NULL || cstate->linktype == DLT_ENC) { in gen_loopback_linktype() 3160 switch (cstate->linktype) { in gen_linktype() 3680 switch (cstate->linktype) { in gen_llc_internal() 5217 switch (cstate->linktype) { in gen_gateway() 8212 switch (cstate->linktype) { in gen_inbound() 8595 switch (cstate->linktype) { in gen_p80211_type() 8625 switch (cstate->linktype) { in gen_p80211_fcdir() 8656 switch (cstate->linktype) { in gen_acode() [all …]
|
| H A D | pcap-enet.c | 148 initdevice(char *device, int pflag, int *linktype) in initdevice() argument 228 *linktype = DLT_EN10MB; in initdevice()
|
| H A D | pcap-int.h | 202 int linktype; /* Network linktype */ member 488 bpf_u_int32 pcap_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen);
|
| H A D | pcap-netfilter-linux.c | 189 if (handle->linktype != DLT_NFLOG) { in netfilter_read_linux() 286 handle->linktype = dlt; in netfilter_set_datalink() 582 handle->linktype = DLT_NFLOG; in netfilter_activate() 591 handle->linktype = DLT_IPV4; in netfilter_activate()
|
| H A D | savefile.c | 347 pcap_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen) in pcap_adjust_snapshot() argument 359 snaplen = max_snaplen_for_dlt(linktype); in pcap_adjust_snapshot()
|
| H A D | pcap.c | 2736 return (p->linktype); 2765 **dlt_buffer = p->linktype; 2814 if (p->linktype != dlt) 2840 p->linktype = dlt; 2845 p->linktype = dlt; 3979 pcap_open_dead_with_tstamp_precision(int linktype, int snaplen, u_int precision) 4004 p->linktype = linktype; 4041 pcap_open_dead(int linktype, int snaplen) 4043 return (pcap_open_dead_with_tstamp_precision(linktype, snaplen,
|
| H A D | pcap-snf.c | 46 p->linktype = dlt; in snf_set_datalink() 327 p->linktype = DLT_EN10MB; in snf_activate()
|
| H A D | rpcap-protocol.h | 261 int32 linktype; /* Link type */ member
|
| H A D | pcap-rdmasniff.c | 298 handle->linktype = DLT_INFINIBAND; in rdmasniff_activate() 300 handle->linktype = DLT_EN10MB; in rdmasniff_activate()
|
| H A D | pcap-septel.c | 190 handle->linktype = DLT_MTP2; in septel_activate()
|
| /freebsd-13.1/sys/netgraph/bluetooth/include/ |
| H A D | ng_l2cap.h | 369 uint8_t linktype; member 390 u_int8_t linktype; /* link type*/ member 400 u_int8_t linktype; /*link type */ member 580 uint8_t linktype; member
|
| /freebsd-13.1/sys/netgraph/bluetooth/l2cap/ |
| H A D | ng_l2cap_ulpi.c | 86 con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr, ip->linktype); in ng_l2cap_l2ca_con_req() 89 error = ng_l2cap_lp_con_req(l2cap, &ip->bdaddr,ip->linktype); in ng_l2cap_l2ca_con_req() 98 con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr, ip->linktype); in ng_l2cap_l2ca_con_req() 204 op->idtype = (ch->con->linktype == NG_HCI_LINK_ACL)? in ng_l2cap_l2ca_con_rsp() 249 ,(ip->linktype == NG_HCI_LINK_ACL)? in ng_l2cap_l2ca_con_rsp_req() 373 op->idtype =(ch->con->linktype ==NG_HCI_LINK_ACL)? in ng_l2cap_l2ca_encryption_change() 459 ip->linktype = ch->con->linktype; in ng_l2cap_l2ca_con_ind() 971 op->idtype = (ch->con->linktype == NG_HCI_LINK_ACL)? in ng_l2cap_l2ca_write_rsp() 1028 idtype = (con->linktype==NG_HCI_LINK_ACL)? in ng_l2cap_l2ca_receive() 1627 con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr,ip->linktype); in ng_l2cap_l2ca_get_info_req() [all …]
|
| H A D | ng_l2cap_misc.c | 139 con->linktype = type; in ng_l2cap_new_con() 307 (con->linktype == type)) in ng_l2cap_con_by_addr() 349 (con->linktype!= NG_HCI_LINK_ACL)); in ng_l2cap_new_chan() 393 (ch->con->linktype == NG_HCI_LINK_ACL )) in ng_l2cap_chan_by_scid() 396 (ch->con->linktype != NG_HCI_LINK_ACL )) in ng_l2cap_chan_by_scid()
|
| H A D | ng_l2cap_var.h | 123 uint8_t linktype; member
|
| /freebsd-13.1/contrib/pf/pflogd/ |
| H A D | pflogd.c | 381 hdr.linktype = hpcap->linktype; in try_reset_dump() 434 hdr.linktype != hpcap->linktype || in scan_dump()
|