/external/libpcap/ |
D | sf-pcap.c | 214 hdr.linktype = SWAPLONG(hdr.linktype); in pcap_check_header() 252 p->linktype = linktype_to_dlt(LT_LINKTYPE(hdr.linktype)); in pcap_check_header() 253 p->linktype_ext = LT_LINKTYPE_EXT(hdr.linktype); in pcap_check_header() 254 p->snapshot = pcap_adjust_snapshot(p->linktype, hdr.snaplen); in pcap_check_header() 360 if (p->linktype == DLT_EN10MB) { in pcap_check_header() 538 if (hdr->caplen > max_snaplen_for_dlt(p->linktype)) { in pcap_next_packet() 555 max_snaplen_for_dlt(p->linktype)); in pcap_next_packet() 710 swap_pseudo_headers(p->linktype, hdr, *data); in pcap_next_packet() 716 sf_write_header(pcap_t *p, FILE *fp, int linktype, int snaplen) in sf_write_header() argument 733 hdr.linktype = linktype; in sf_write_header() [all …]
|
D | pcap-dag.c | 466 if (p->linktype == DLT_ERF) { in dag_read() 526 if (p->linktype == DLT_SUNATM) { in dag_read() 540 } else if (p->linktype == DLT_ATM_RFC1483) { in dag_read() 552 if ((p->linktype != DLT_EN10MB) && in dag_read() 553 (p->linktype != DLT_DOCSIS)) in dag_read() 570 if ((p->linktype != DLT_CHDLC) && in dag_read() 571 (p->linktype != DLT_PPP_SERIAL) && in dag_read() 572 (p->linktype != DLT_FRELAY)) in dag_read() 586 if ((p->linktype != DLT_CHDLC) && in dag_read() 587 (p->linktype != DLT_PPP_SERIAL) && in dag_read() [all …]
|
D | pcap-common.c | 1207 int linktype; member 1299 return (map[i].linktype); in dlt_to_linktype() 1311 linktype_to_dlt(int linktype) in linktype_to_dlt() argument 1321 if (linktype == LINKTYPE_PFSYNC) in linktype_to_dlt() 1323 if (linktype == LINKTYPE_PKTAP) in linktype_to_dlt() 1338 if (linktype >= LINKTYPE_MATCHING_MIN && in linktype_to_dlt() 1339 linktype <= LINKTYPE_MATCHING_MAX && in linktype_to_dlt() 1340 linktype != LINKTYPE_ATM_CLIP) in linktype_to_dlt() 1341 return (linktype); in linktype_to_dlt() 1346 for (i = 0; map[i].linktype != -1; i++) { in linktype_to_dlt() [all …]
|
D | pcap-linux.c | 1100 handle->linktype = dlt; in pcap_set_datalink_linux() 1788 handle->linktype = DLT_RAW; in map_arphrd_to_dlt() 1849 handle->linktype = DLT_EN10MB; in map_arphrd_to_dlt() 1854 handle->linktype = DLT_EN3MB; in map_arphrd_to_dlt() 1858 handle->linktype = DLT_AX25_KISS; in map_arphrd_to_dlt() 1862 handle->linktype = DLT_PRONET; in map_arphrd_to_dlt() 1866 handle->linktype = DLT_CHAOS; in map_arphrd_to_dlt() 1879 handle->linktype = DLT_LINUX_SLL; in map_arphrd_to_dlt() 1887 handle->linktype = DLT_IEEE802; in map_arphrd_to_dlt() 1892 handle->linktype = DLT_ARCNET_LINUX; in map_arphrd_to_dlt() [all …]
|
D | dlpisubs.c | 231 p->linktype = DLT_EN10MB; in pcap_process_mactype() 255 p->linktype = DLT_FDDI; in pcap_process_mactype() 261 p->linktype = DLT_IEEE802; in pcap_process_mactype() 267 p->linktype = DLT_SUNATM; in pcap_process_mactype() 274 p->linktype = DLT_IPV4; in pcap_process_mactype() 281 p->linktype = DLT_IPV6; in pcap_process_mactype() 297 p->linktype = DLT_RAW; in pcap_process_mactype()
|
D | sf-pcapng.c | 115 u_short linktype; member 1013 idbp->linktype = SWAPSHORT(idbp->linktype); in pcap_ng_check_header() 1046 p->linktype = linktype_to_dlt(idbp->linktype); in pcap_ng_check_header() 1047 p->snapshot = pcap_adjust_snapshot(p->linktype, idbp->snaplen); in pcap_ng_check_header() 1055 if (MAX_BLOCKSIZE_FOR_SNAPLEN(max_snaplen_for_dlt(p->linktype)) > ps->max_blocksize) in pcap_ng_check_header() 1056 ps->max_blocksize = MAX_BLOCKSIZE_FOR_SNAPLEN(max_snaplen_for_dlt(p->linktype)); in pcap_ng_check_header() 1224 idbp->linktype = SWAPSHORT(idbp->linktype); in pcap_ng_next_packet() 1236 if (p->linktype != idbp->linktype) { in pcap_ng_next_packet() 1239 idbp->linktype); in pcap_ng_next_packet() 1248 pcap_adjust_snapshot(p->linktype, idbp->snaplen)) { in pcap_ng_next_packet() [all …]
|
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()
|
D | pcap-pf.c | 391 p->linktype = DLT_EN10MB; in pcap_activate_pf() 415 p->linktype = DLT_FDDI; in pcap_activate_pf() 420 p->linktype = DLT_SLIP; in pcap_activate_pf() 426 p->linktype = DLT_PPP; in pcap_activate_pf() 436 p->linktype = DLT_EN10MB; in pcap_activate_pf() 443 p->linktype = DLT_IEEE802; in pcap_activate_pf() 468 if (p->linktype == DLT_FDDI) { in pcap_activate_pf()
|
D | pcap-common.h | 48 extern int linktype_to_dlt(int linktype); 50 extern void swap_pseudo_headers(int linktype, struct pcap_pkthdr *hdr,
|
D | pcap-npf.c | 1008 p->linktype = DLT_EN10MB; in pcap_activate_npf() 1012 p->linktype = DLT_EN10MB; in pcap_activate_npf() 1035 p->linktype = DLT_FDDI; in pcap_activate_npf() 1039 p->linktype = DLT_IEEE802; in pcap_activate_npf() 1043 p->linktype = DLT_ARCNET; in pcap_activate_npf() 1047 p->linktype = DLT_ARCNET; in pcap_activate_npf() 1051 p->linktype = DLT_ATM_RFC1483; in pcap_activate_npf() 1055 p->linktype = DLT_CHDLC; in pcap_activate_npf() 1059 p->linktype = DLT_PPP_SERIAL; in pcap_activate_npf() 1063 p->linktype = DLT_NULL; in pcap_activate_npf() [all …]
|
D | gencode.c | 173 (cs)->prevlinktype = (cs)->linktype; \ 175 (cs)->linktype = (new_linktype); \ 253 int linktype; member 1152 cstate->linktype = cstate->outermostlinktype; in init_linktype() 1200 switch (cstate->linktype) { in init_linktype() 1711 if (cstate->linktype >= DLT_MATCHING_MIN && in init_linktype() 1712 cstate->linktype <= DLT_MATCHING_MAX) { in init_linktype() 1718 bpf_set_error(cstate, "unknown data link type %d", cstate->linktype); in init_linktype() 2144 if (cstate->linktype == DLT_NULL || cstate->linktype == DLT_ENC) { in gen_loopback_linktype() 2761 if (cstate->linktype == DLT_IEEE802_11_RADIO) { in gen_load_802_11_header_len() [all …]
|
D | pcap-enet.c | 148 initdevice(char *device, int pflag, int *linktype) in initdevice() argument 228 *linktype = DLT_EN10MB; in initdevice()
|
D | pcap-netfilter-linux.c | 200 if (handle->linktype != DLT_NFLOG) { in netfilter_read_linux() 304 handle->linktype = dlt; in netfilter_set_datalink() 604 handle->linktype = DLT_NFLOG; in netfilter_activate() 613 handle->linktype = DLT_IPV4; in netfilter_activate()
|
D | pcap-airpcap.c | 333 p->linktype = dlt; in airpcap_set_datalink() 870 p->linktype = DLT_IEEE802_11_RADIO; in airpcap_activate() 874 p->linktype = DLT_PPI; in airpcap_activate() 878 p->linktype = DLT_IEEE802_11; in airpcap_activate()
|
D | pcap-int.h | 244 int linktype; /* Network linktype */ member 564 bpf_u_int32 pcap_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen);
|
D | savefile.c | 444 pcap_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen) in pcap_adjust_snapshot() argument 456 snaplen = max_snaplen_for_dlt(linktype); in pcap_adjust_snapshot()
|
D | pcap.c | 2931 return (p->linktype); 2960 **dlt_buffer = p->linktype; 3009 if (p->linktype != dlt) 3035 p->linktype = dlt; 3040 p->linktype = dlt; 4346 pcap_open_dead_with_tstamp_precision(int linktype, int snaplen, u_int precision) argument 4371 p->linktype = linktype; 4408 pcap_open_dead(int linktype, int snaplen) argument 4410 return (pcap_open_dead_with_tstamp_precision(linktype, snaplen,
|
D | pcap-snf.c | 45 p->linktype = dlt; in snf_set_datalink() 307 p->linktype = DLT_EN10MB; in snf_activate()
|
D | rpcap-protocol.h | 261 int32 linktype; /* Link type */ member
|
/external/scapy/scapy/tools/ |
D | check_asdis.py | 57 pcap_out = RawPcapWriter(PCAP_OUT, append=APPEND, gz=COMPRESS, linktype=pcap.linktype) 60 LLcls = conf.l2types.get(pcap.linktype) 62 print(" Unknown link type [%i]. Can't test anything!" % pcap.linktype, file=sys.stderr)
|
/external/usrsctp/fuzzer/ |
D | pcap2corpus.c | 55 int linktype; member 221 args.linktype = pcap_datalink(pcap_reader); in main() 222 switch (args.linktype) { in main() 234 fprintf(stderr, "Datalink type %d not supported\n", args.linktype); in main()
|
/external/scapy/scapy/ |
D | utils.py | 802 vermaj, vermin, tz, sig, snaplen, linktype = struct.unpack( 805 self.linktype = linktype 876 self.LLcls = conf.l2types[self.linktype] 878 …arning("PcapReader: unknown LL type [%i]/[%#x]. Using Raw packets" % (self.linktype,self.linktype)) 1034 s, (linktype, tsresol, tshigh, tslow, wirelen) = rp 1036 p = conf.l2types[linktype](s) 1056 def __init__(self, filename, linktype=None, gz=False, endianness="", argument 1071 self.linktype = linktype 1107 2, 4, 0, 0, MTU, self.linktype)) 1175 if self.linktype == None: [all …]
|
/external/ppp/pppd/include/ |
D | pcap-int.h | 71 int linktype; member
|
/external/libnl/python/netlink/route/ |
D | tc.py | 152 def linktype(self): member in Tc 155 @linktype.setter 156 def linktype(self, value): member in Tc
|
/external/libnl/lib/route/ |
D | tc.c | 724 uint32_t linktype) in adjust_size() argument 729 switch (linktype) { in adjust_size() 756 uint32_t linktype = rtnl_tc_get_linktype(tc); in rtnl_tc_build_rate_table() local 778 size = adjust_size((i + 1) << cell_log, spec->rs_mpu, linktype); in rtnl_tc_build_rate_table()
|