Home
last modified time | relevance | path

Searched refs:linktype (Results 1 – 25 of 47) sorted by relevance

12

/external/libpcap/
Dsf-pcap.c196 hdr.linktype = SWAPLONG(hdr.linktype); in pcap_check_header()
245 p->snapshot = max_snaplen_for_dlt(hdr.linktype); in pcap_check_header()
247 p->linktype = linktype_to_dlt(LT_LINKTYPE(hdr.linktype)); in pcap_check_header()
248 p->linktype_ext = LT_LINKTYPE_EXT(hdr.linktype); in pcap_check_header()
354 if (p->linktype == DLT_EN10MB) { in pcap_check_header()
527 if (hdr->caplen > max_snaplen_for_dlt(p->linktype)) { in pcap_next_packet()
544 max_snaplen_for_dlt(p->linktype)); in pcap_next_packet()
696 swap_pseudo_headers(p->linktype, hdr, *data); in pcap_next_packet()
702 sf_write_header(pcap_t *p, FILE *fp, int linktype, int thiszone, int snaplen) in sf_write_header() argument
713 hdr.linktype = linktype; in sf_write_header()
[all …]
Dpcap-dag.c469 if (p->linktype == DLT_ERF) { in dag_read()
529 if (p->linktype == DLT_SUNATM) { in dag_read()
543 } else if (p->linktype == DLT_ATM_RFC1483) { in dag_read()
555 if ((p->linktype != DLT_EN10MB) && in dag_read()
556 (p->linktype != DLT_DOCSIS)) in dag_read()
573 if ((p->linktype != DLT_CHDLC) && in dag_read()
574 (p->linktype != DLT_PPP_SERIAL) && in dag_read()
575 (p->linktype != DLT_FRELAY)) in dag_read()
589 if ((p->linktype != DLT_CHDLC) && in dag_read()
590 (p->linktype != DLT_PPP_SERIAL) && in dag_read()
[all …]
Dpcap-common.c1097 int linktype; member
1189 return (map[i].linktype); in dlt_to_linktype()
1201 linktype_to_dlt(int linktype) in linktype_to_dlt() argument
1211 if (linktype == LINKTYPE_PFSYNC) in linktype_to_dlt()
1213 if (linktype == LINKTYPE_PKTAP) in linktype_to_dlt()
1220 if (linktype >= LINKTYPE_MATCHING_MIN && in linktype_to_dlt()
1221 linktype <= LINKTYPE_MATCHING_MAX) in linktype_to_dlt()
1222 return (linktype); in linktype_to_dlt()
1227 for (i = 0; map[i].linktype != -1; i++) { in linktype_to_dlt()
1228 if (map[i].linktype == linktype) in linktype_to_dlt()
[all …]
Ddlpisubs.c217 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()
Dsf-pcapng.c115 u_short linktype; member
979 idbp->linktype = SWAPSHORT(idbp->linktype); in pcap_ng_check_header()
1023 p->snapshot = max_snaplen_for_dlt(idbp->linktype); in pcap_ng_check_header()
1025 p->linktype = linktype_to_dlt(idbp->linktype); in pcap_ng_check_header()
1033 if (MAX_BLOCKSIZE(max_snaplen_for_dlt(p->linktype)) > ps->max_blocksize) in pcap_ng_check_header()
1034 ps->max_blocksize = MAX_BLOCKSIZE(max_snaplen_for_dlt(p->linktype)); in pcap_ng_check_header()
1202 idbp->linktype = SWAPSHORT(idbp->linktype); in pcap_ng_next_packet()
1214 if (p->linktype != idbp->linktype) { in pcap_ng_next_packet()
1217 idbp->linktype); in pcap_ng_next_packet()
1472 swap_pseudo_headers(p->linktype, hdr, *data); in pcap_ng_next_packet()
Dpcap-snoop.c123 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()
Dpcap-pf.c396 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()
Dpcap-linux.c1684 handle->linktype = dlt;
3147 handle->linktype = DLT_RAW;
3187 handle->linktype = DLT_EN10MB;
3192 handle->linktype = DLT_EN3MB;
3196 handle->linktype = DLT_AX25_KISS;
3200 handle->linktype = DLT_PRONET;
3204 handle->linktype = DLT_CHAOS;
3217 handle->linktype = DLT_LINUX_SLL;
3225 handle->linktype = DLT_IEEE802;
3230 handle->linktype = DLT_ARCNET_LINUX;
[all …]
Dpcap-common.h48 extern int linktype_to_dlt(int linktype);
50 extern void swap_pseudo_headers(int linktype, struct pcap_pkthdr *hdr,
Dpcap-npf.c939 p->linktype = DLT_EN10MB; in pcap_activate_npf()
943 p->linktype = DLT_EN10MB; in pcap_activate_npf()
966 p->linktype = DLT_FDDI; in pcap_activate_npf()
970 p->linktype = DLT_IEEE802; in pcap_activate_npf()
974 p->linktype = DLT_ARCNET; in pcap_activate_npf()
978 p->linktype = DLT_ARCNET; in pcap_activate_npf()
982 p->linktype = DLT_ATM_RFC1483; in pcap_activate_npf()
986 p->linktype = DLT_CHDLC; in pcap_activate_npf()
990 p->linktype = DLT_PPP_SERIAL; in pcap_activate_npf()
994 p->linktype = DLT_NULL; in pcap_activate_npf()
[all …]
Dgencode.c175 (cs)->prevlinktype = (cs)->linktype; \
177 (cs)->linktype = (new_linktype); \
254 int linktype; member
1057 cstate->linktype = cstate->outermostlinktype; in init_linktype()
1105 switch (cstate->linktype) { in init_linktype()
1608 if (cstate->linktype >= DLT_MATCHING_MIN && in init_linktype()
1609 cstate->linktype <= DLT_MATCHING_MAX) { in init_linktype()
1615 bpf_error(cstate, "unknown data link type %d", cstate->linktype); in init_linktype()
2032 if (cstate->linktype == DLT_NULL || cstate->linktype == DLT_ENC) { in gen_loopback_linktype()
2651 if (cstate->linktype == DLT_IEEE802_11_RADIO) { in gen_load_802_11_header_len()
[all …]
Dpcap-enet.c148 initdevice(char *device, int pflag, int *linktype) in initdevice() argument
228 *linktype = DLT_EN10MB; in initdevice()
Dpcap-netfilter-linux.c189 if (handle->linktype != DLT_NFLOG) { in netfilter_read_linux()
286 handle->linktype = dlt; in netfilter_set_datalink()
580 handle->linktype = DLT_NFLOG; in netfilter_activate()
589 handle->linktype = DLT_IPV4; in netfilter_activate()
Dpcap.c2612 return (p->linktype);
2641 **dlt_buffer = p->linktype;
2690 if (p->linktype != dlt)
2716 p->linktype = dlt;
2721 p->linktype = dlt;
3867 pcap_open_dead_with_tstamp_precision(int linktype, int snaplen, u_int precision)
3892 p->linktype = linktype;
3929 pcap_open_dead(int linktype, int snaplen)
3931 return (pcap_open_dead_with_tstamp_precision(linktype, snaplen,
Dpcap-snf.c46 p->linktype = dlt; in snf_set_datalink()
327 p->linktype = DLT_EN10MB; in snf_activate()
Dpcap-rdmasniff.c298 handle->linktype = DLT_INFINIBAND; in rdmasniff_activate()
300 handle->linktype = DLT_EN10MB; in rdmasniff_activate()
Drpcap-protocol.h301 int32 linktype; /* Link type */ member
Dpcap-septel.c199 handle->linktype = DLT_MTP2; in septel_activate()
Dpcap-int.h197 int linktype; /* Network linktype */ member
Dpcap-bt-monitor-linux.c197 handle->linktype = DLT_BLUETOOTH_LINUX_MONITOR; in bt_monitor_activate()
/external/scapy/scapy/tools/
Dcheck_asdis.py57 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/scapy/scapy/
Dutils.py802 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/
Dpcap-int.h71 int linktype; member
/external/libnl/python/netlink/route/
Dtc.py152 def linktype(self): member in Tc
155 @linktype.setter
156 def linktype(self, value): member in Tc
/external/libnl/lib/route/
Dtc.c663 uint32_t linktype) in adjust_size() argument
668 switch (linktype) { in adjust_size()
695 uint32_t linktype = rtnl_tc_get_linktype(tc); in rtnl_tc_build_rate_table() local
717 size = adjust_size((i + 1) << cell_log, spec->rs_mpu, linktype); in rtnl_tc_build_rate_table()

12