/external/libpcap/ |
D | pcap-int.h | 135 typedef int (*oid_get_request_op_t)(pcap_t *, bpf_u_int32, void *, size_t *); 136 typedef int (*oid_set_request_op_t)(pcap_t *, bpf_u_int32, const void *, size_t *); 347 bpf_u_int32 caplen; /* length of portion present */ 348 bpf_u_int32 len; /* length this packet (off wire) */ 363 bpf_u_int32 caplen; /* length of portion present */ 364 bpf_u_int32 len; /* length this packet (off wire) */ 446 typedef int (*get_if_flags_func)(const char *, bpf_u_int32 *, char *); 452 pcap_if_t *find_or_add_dev(pcap_if_list_t *, const char *, bpf_u_int32, 455 pcap_if_t *add_dev(pcap_if_list_t *, const char *, bpf_u_int32, const char *, 461 pcap_if_t *find_or_add_if(pcap_if_list_t *, const char *, bpf_u_int32, [all …]
|
D | sf-pcapng.c | 54 bpf_u_int32 block_type; 55 bpf_u_int32 total_length; 62 bpf_u_int32 total_length; 90 bpf_u_int32 byte_order_magic; 117 bpf_u_int32 snaplen; 144 bpf_u_int32 interface_id; 145 bpf_u_int32 timestamp_high; 146 bpf_u_int32 timestamp_low; 147 bpf_u_int32 caplen; 148 bpf_u_int32 len; [all …]
|
D | pcap-dlpi.c | 152 static int dlpromiscon(pcap_t *, bpf_u_int32); 153 static int dlbindreq(int, bpf_u_int32, char *); 167 static char *dlstrerror(char *, size_t, bpf_u_int32); 168 static char *dlprim(char *, size_t, bpf_u_int32); 171 static void get_release(char *, size_t, bpf_u_int32 *, bpf_u_int32 *, 172 bpf_u_int32 *); 194 bpf_u_int32 ctlbuf[MAXDLBUF]; in pcap_read_dlpi() 511 bpf_u_int32 ss; 514 bpf_u_int32 osmajor, osminor, osmicro; 517 bpf_u_int32 buf[MAXDLBUF]; [all …]
|
D | gencode.h | 221 typedef bpf_u_int32 atomset; 228 typedef bpf_u_int32 *uset; 310 struct block *gen_ncode(compiler_state_t *, const char *, bpf_u_int32, 326 struct block *gen_llc_s_subtype(compiler_state_t *, bpf_u_int32); 327 struct block *gen_llc_u_subtype(compiler_state_t *, bpf_u_int32); 338 bpf_u_int32, int); 343 struct block *gen_mtp3field_code(compiler_state_t *, int, bpf_u_int32, 344 bpf_u_int32, int);
|
D | nametoaddr.c | 156 bpf_u_int32 ** 160 static bpf_u_int32 *hlist[2]; in pcap_nametoaddr() 162 bpf_u_int32 **p; in pcap_nametoaddr() 167 hlist[0] = (bpf_u_int32 *)hp->h_addr; in pcap_nametoaddr() 171 for (p = (bpf_u_int32 **)hp->h_addr_list; *p; ++p) in pcap_nametoaddr() 173 return (bpf_u_int32 **)hp->h_addr_list; in pcap_nametoaddr() 203 bpf_u_int32 632 __pcap_atoin(const char *s, bpf_u_int32 *addr) in __pcap_atoin() 654 __pcap_atodn(const char *s, bpf_u_int32 *addr) in __pcap_atodn()
|
D | nametoaddr.h | 42 int __pcap_atodn(const char *, bpf_u_int32 *); 43 int __pcap_atoin(const char *, bpf_u_int32 *);
|
D | pcap-null.c | 50 pcap_lookupnet(const char *device _U_, bpf_u_int32 *netp _U_, in pcap_lookupnet() 51 bpf_u_int32 *maskp _U_, char *errbuf) in pcap_lookupnet()
|
D | dlpisubs.c | 45 #define PKTBUFSIZE (MAXDLBUF * sizeof(bpf_u_int32)) 189 if (pkthdr.caplen > (bpf_u_int32)p->snapshot) in pcap_process_pkts() 190 pkthdr.caplen = (bpf_u_int32)p->snapshot; in pcap_process_pkts() 305 bpf_u_int32 ss, chunksize; in pcap_conf_bufmod()
|
D | sf-pcap.c | 138 pcap_check_header(bpf_u_int32 magic, FILE *fp, u_int precision, char *errbuf, in pcap_check_header() 435 bpf_u_int32 t; in pcap_next_packet() 536 if (hdr->caplen > (bpf_u_int32)p->snapshot) { in pcap_next_packet() 549 if (hdr->caplen > (bpf_u_int32)p->snapshot) { in pcap_next_packet() 600 if (amt_read != (bpf_u_int32)p->snapshot) { in pcap_next_packet() 973 if ((bpf_u_int32)linktype != ph.linktype) { in pcap_dump_open_append() 979 if ((bpf_u_int32)p->snapshot != ph.snaplen) { in pcap_dump_open_append()
|
D | savefile.c | 162 sf_oid_get_request(pcap_t *p, bpf_u_int32 oid _U_, void *data _U_, in sf_oid_get_request() 171 sf_oid_set_request(pcap_t *p, bpf_u_int32 oid _U_, const void *data _U_, in sf_oid_set_request() 334 static pcap_t *(*check_headers[])(bpf_u_int32, FILE *, u_int, char *, int *) = { 349 bpf_u_int32 magic; in pcap_fopen_offline_with_tstamp_precision()
|
D | pcap-npf.c | 144 oid_get_request(ADAPTER *adapter, bpf_u_int32 oid, void *data, size_t *lenp, in oid_get_request() 337 pcap_oid_get_request_npf(pcap_t *p, bpf_u_int32 oid, void *data, size_t *lenp) in pcap_oid_get_request_npf() 345 pcap_oid_set_request_npf(pcap_t *p, bpf_u_int32 oid, const void *data, in pcap_oid_set_request_npf() 1378 pcap_add_if_npf(pcap_if_list_t *devlistp, char *name, bpf_u_int32 flags, in pcap_add_if_npf() 1445 get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf) in get_if_flags() 1454 bpf_u_int32 gen_physical_medium_oids[] = { in get_if_flags() 1766 bpf_u_int32 flags = 0; in pcap_platform_finddevs() 1959 pcap_lookupnet(const char *device, bpf_u_int32 *netp, bpf_u_int32 *maskp, in pcap_lookupnet()
|
D | pcap-libdlpi.c | 47 static int dlpromiscon(pcap_t *, bpf_u_int32); 259 dlpromiscon(pcap_t *p, bpf_u_int32 level) in dlpromiscon() 291 get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_) in get_if_flags()
|
D | sf-pcap.h | 34 extern pcap_t *pcap_check_header(bpf_u_int32 magic, FILE *fp,
|
D | sf-pcapng.h | 29 extern pcap_t *pcap_ng_check_header(bpf_u_int32 magic, FILE *fp,
|
D | pcap-sita.c | 420 static char *translate_IOP_to_pcap_name(unit_t *u, char *IOPname, bpf_u_int32 iftype) { in translate_IOP_to_pcap_name() 574 bpf_u_int32 interfaceType; in process_client_data() 620 interfaceType = ntohl(*(bpf_u_int32 *)ptr); in process_client_data() 649 s->sin_addr.s_addr = *(bpf_u_int32 *)(ptr + 1); /* copy the address in */ in process_client_data() 665 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data() 681 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data() 697 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data()
|
D | gencode.c | 258 bpf_u_int32 netmask; 469 u_int, bpf_int32, bpf_u_int32); 472 static struct block *gen_ncmp(compiler_state_t *, enum e_offrel, bpf_u_int32, 473 bpf_u_int32, bpf_u_int32, bpf_u_int32, int, bpf_int32); 494 static struct block *gen_snap(compiler_state_t *, bpf_u_int32, bpf_u_int32); 496 static struct block *gen_hostop(compiler_state_t *, bpf_u_int32, bpf_u_int32, 508 static struct block *gen_dnhostop(compiler_state_t *, bpf_u_int32, int); 510 static struct block *gen_host(compiler_state_t *, bpf_u_int32, bpf_u_int32, 657 const char *buf, int optimize, bpf_u_int32 mask) in pcap_compile() 787 const char *buf, int optimize, bpf_u_int32 mask) in pcap_compile_nopcap() [all …]
|
D | grammar.y | 288 bpf_u_int32 h; 379 | pnum { $$.b = gen_ncode(cstate, NULL, (bpf_u_int32)$1, 447 qid: pnum { $$.b = gen_ncode(cstate, NULL, (bpf_u_int32)$1, 730 …| relop NUM { $$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, (bpf_int32)$2, (bpf_u_int32)… 731 …| irelop NUM { $$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, (bpf_int32)$2, (bpf_u_int32…
|
D | optimize.c | 248 bpf_u_int32 *space; 250 #define BITS_PER_WORD (8*sizeof(bpf_u_int32)) 274 register bpf_u_int32 *_x = a, *_y = b;\ 284 register bpf_u_int32 *_x = a, *_y = b;\ 294 register bpf_u_int32 *_x = a, *_y = b;\ 383 bpf_u_int32 *x; in find_dom() 705 bpf_u_int32 a, b; in fold_op() 1479 register bpf_u_int32 x = ep->edom[i]; in opt_j() 2032 bpf_u_int32 *p; in opt_init() 2060 opt_state->edgewords = opt_state->n_edges / (8 * sizeof(bpf_u_int32)) + 1; in opt_init() [all …]
|
D | pcap-tc.c | 136 static int TcOidGetRequest(pcap_t *p, bpf_u_int32 oid, void *data, size_t *lenp); 137 static int TcOidSetRequest(pcap_t *p, bpf_u_int32 oid, const void *data, size_t *lenp); 1007 hdr.ts.tv_sec = (bpf_u_int32)(tcHeader.Timestamp / (ULONGLONG)(1000 * 1000 * 1000)); in TcRead() 1008 hdr.ts.tv_usec = (bpf_u_int32)((tcHeader.Timestamp % (ULONGLONG)(1000 * 1000 * 1000)) / 1000); in TcRead() 1254 TcOidGetRequest(pcap_t *p, bpf_u_int32 oid _U_, void *data _U_, size_t *lenp _U_) in TcOidGetRequest() 1262 TcOidSetRequest(pcap_t *p, bpf_u_int32 oid _U_, const void *data _U_, in TcOidSetRequest()
|
/external/libpcap/pcap/ |
D | pcap.h | 115 typedef u_int bpf_u_int32; typedef 162 bpf_u_int32 magic; 166 bpf_u_int32 sigfigs; /* accuracy of timestamps */ 167 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ 168 bpf_u_int32 linktype; /* data link type (LINKTYPE_*) */ 201 bpf_u_int32 caplen; /* length of portion present */ 202 bpf_u_int32 len; /* length this packet (off wire) */ 260 bpf_u_int32 flags; /* PCAP_IF_ interface flags */ 329 PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); 457 bpf_u_int32); [all …]
|
D | bpf.h | 82 typedef unsigned long bpf_u_int32; typedef 85 typedef u_int bpf_u_int32; 238 bpf_u_int32 k;
|
D | namedb.h | 62 PCAP_API bpf_u_int32 **pcap_nametoaddr(const char *); 64 PCAP_API bpf_u_int32 pcap_nametonetaddr(const char *);
|
/external/scapy/scapy/modules/ |
D | winpcapy.py | 47 bpf_u_int32 = u_int variable 58 ("k",bpf_u_int32)] 135 _fields_ = [('magic', bpf_u_int32), 139 ('sigfigs', bpf_u_int32), 140 ('snaplen', bpf_u_int32), 141 ('linktype', bpf_u_int32)] 147 ('caplen', bpf_u_int32), 148 ('len', bpf_u_int32)] 181 ('flags', bpf_u_int32)] 314 pcap_lookupnet.argtypes = [STRING, POINTER(bpf_u_int32), POINTER(bpf_u_int32), STRING] [all …]
|
/external/libpcap/testprogs/ |
D | findalldevstest.c | 25 static char *iptos(bpf_u_int32 in); 101 bpf_u_int32 net, mask; in main() 301 static char *iptos(bpf_u_int32 in) in iptos()
|
D | filtertest.c | 206 bpf_u_int32 netmask = PCAP_NETMASK_UNKNOWN; in main() 253 bpf_u_int32 addr; in main()
|