/external/libpcap/ |
D | gencode.h | 222 bpf_u_int32 k; /* k field */ 234 typedef bpf_u_int32 atomset; 241 typedef bpf_u_int32 *uset; 289 bpf_u_int32 val[N_ATOMS]; 314 struct arth *gen_loadi(compiler_state_t *, bpf_u_int32); 315 struct arth *gen_load(compiler_state_t *, int, struct arth *, bpf_u_int32); 328 bpf_u_int32, struct qual); 331 bpf_u_int32, struct qual); 333 struct block *gen_ncode(compiler_state_t *, const char *, bpf_u_int32, 340 struct block *gen_byteop(compiler_state_t *, int, int, bpf_u_int32); [all …]
|
D | pcap-int.h | 204 typedef int (*oid_get_request_op_t)(pcap_t *, bpf_u_int32, void *, size_t *); 205 typedef int (*oid_set_request_op_t)(pcap_t *, bpf_u_int32, const void *, size_t *); 419 bpf_u_int32 caplen; /* length of portion present */ 420 bpf_u_int32 len; /* length of this packet (off wire) */ 435 bpf_u_int32 caplen; /* length of portion present */ 436 bpf_u_int32 len; /* length of this packet (off wire) */ 527 typedef int (*get_if_flags_func)(const char *, bpf_u_int32 *, char *); 533 pcap_if_t *find_or_add_dev(pcap_if_list_t *, const char *, bpf_u_int32, 536 pcap_if_t *add_dev(pcap_if_list_t *, const char *, bpf_u_int32, const char *, 542 pcap_if_t *find_or_add_if(pcap_if_list_t *, const char *, bpf_u_int32, [all …]
|
D | sf-pcapng.c | 55 bpf_u_int32 block_type; 56 bpf_u_int32 total_length; 63 bpf_u_int32 total_length; 91 bpf_u_int32 byte_order_magic; 119 bpf_u_int32 snaplen; 146 bpf_u_int32 interface_id; 147 bpf_u_int32 timestamp_high; 148 bpf_u_int32 timestamp_low; 149 bpf_u_int32 caplen; 150 bpf_u_int32 len; [all …]
|
D | pcap-dlpi.c | 146 static int dlpromiscon(pcap_t *, bpf_u_int32); 147 static int dlbindreq(int, bpf_u_int32, char *); 161 static char *dlstrerror(char *, size_t, bpf_u_int32); 162 static char *dlprim(char *, size_t, bpf_u_int32); 165 static void get_release(char *, size_t, bpf_u_int32 *, bpf_u_int32 *, 166 bpf_u_int32 *); 188 bpf_u_int32 ctlbuf[MAXDLBUF]; in pcap_read_dlpi() 530 bpf_u_int32 ss; 533 bpf_u_int32 osmajor, osminor, osmicro; 536 bpf_u_int32 buf[MAXDLBUF]; [all …]
|
D | nametoaddr.c | 157 bpf_u_int32 ** 161 static bpf_u_int32 *hlist[2]; in pcap_nametoaddr() 163 bpf_u_int32 **p; in pcap_nametoaddr() 184 hlist[0] = (bpf_u_int32 *)hp->h_addr; in pcap_nametoaddr() 188 for (p = (bpf_u_int32 **)hp->h_addr_list; *p; ++p) in pcap_nametoaddr() 190 return (bpf_u_int32 **)hp->h_addr_list; in pcap_nametoaddr() 221 bpf_u_int32 239 bpf_u_int32 660 __pcap_atoin(const char *s, bpf_u_int32 *addr) in __pcap_atoin() 689 __pcap_atodn(const char *s, bpf_u_int32 *addr) in __pcap_atodn()
|
D | gencode.c | 250 bpf_u_int32 netmask; 487 u_int, bpf_u_int32); 489 u_int, bpf_u_int32); 491 u_int, bpf_u_int32); 493 u_int, bpf_u_int32); 495 u_int, bpf_u_int32); 497 u_int, bpf_u_int32, bpf_u_int32); 501 u_int, bpf_u_int32, int, int, bpf_u_int32); 510 static struct block *gen_ether_linktype(compiler_state_t *, bpf_u_int32); 511 static struct block *gen_ipnet_linktype(compiler_state_t *, bpf_u_int32); [all …]
|
D | optimize.c | 217 bpf_u_int32 v0, v1; 227 bpf_u_int32 const_val; 273 bpf_u_int32 *space; 275 #define BITS_PER_WORD (8*sizeof(bpf_u_int32)) 280 ((p)[(unsigned)(a) / BITS_PER_WORD] & ((bpf_u_int32)1 << ((unsigned)(a) % BITS_PER_WORD))) 286 (p)[(unsigned)(a) / BITS_PER_WORD] |= ((bpf_u_int32)1 << ((unsigned)(a) % BITS_PER_WORD)) 292 (p)[(unsigned)(a) / BITS_PER_WORD] &= ~((bpf_u_int32)1 << ((unsigned)(a) % BITS_PER_WORD)) 300 register bpf_u_int32 *_x = a, *_y = b;\ 311 register bpf_u_int32 *_x = a, *_y = b;\ 322 register bpf_u_int32 *_x = a, *_y = b;\ [all …]
|
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)) 208 if (pkthdr.caplen > (bpf_u_int32)p->snapshot) in pcap_process_pkts() 209 pkthdr.caplen = (bpf_u_int32)p->snapshot; in pcap_process_pkts() 324 bpf_u_int32 ss, chunksize; in pcap_conf_bufmod()
|
D | savefile.c | 174 sf_oid_get_request(pcap_t *p, bpf_u_int32 oid _U_, void *data _U_, in sf_oid_get_request() 183 sf_oid_set_request(pcap_t *p, bpf_u_int32 oid _U_, const void *data _U_, in sf_oid_set_request() 453 bpf_u_int32 454 pcap_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen) in pcap_adjust_snapshot()
|
D | sf-pcap.c | 161 bpf_u_int32 magic_int; in pcap_check_header() 452 bpf_u_int32 t; in pcap_next_packet() 552 if (hdr->caplen > (bpf_u_int32)p->snapshot) { in pcap_next_packet() 565 if (hdr->caplen > (bpf_u_int32)p->snapshot) { in pcap_next_packet() 616 if (amt_read != (bpf_u_int32)p->snapshot) { in pcap_next_packet() 1083 if ((bpf_u_int32)linktype != ph.linktype) { in pcap_dump_open_append() 1089 if ((bpf_u_int32)p->snapshot != ph.snaplen) { in pcap_dump_open_append()
|
D | bpf_image.c | 117 if (p->k >= (bpf_u_int32)SKF_AD_OFF && in bpf_print_abs_load_operand() 118 p->k < (bpf_u_int32)(SKF_AD_OFF + SKF_AD_MAX) && in bpf_print_abs_load_operand() 119 (sym = offsets[p->k - (bpf_u_int32)SKF_AD_OFF]) != NULL) { in bpf_print_abs_load_operand()
|
D | pcap-npf.c | 160 oid_get_request(ADAPTER *adapter, bpf_u_int32 oid, void *data, size_t *lenp, in oid_get_request() 351 pcap_oid_get_request_npf(pcap_t *p, bpf_u_int32 oid, void *data, size_t *lenp) in pcap_oid_get_request_npf() 359 pcap_oid_set_request_npf(pcap_t *p, bpf_u_int32 oid, const void *data, in pcap_oid_set_request_npf() 2008 pcap_add_if_npf(pcap_if_list_t *devlistp, char *name, bpf_u_int32 flags, in pcap_add_if_npf() 2075 get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf) in get_if_flags() 2084 bpf_u_int32 gen_physical_medium_oids[] = { in get_if_flags() 2413 bpf_u_int32 flags = 0; in pcap_platform_finddevs() 2634 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); 268 dlpromiscon(pcap_t *p, bpf_u_int32 level) in dlpromiscon() 313 get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_) in get_if_flags()
|
D | pcap-sita.c | 428 static char *translate_IOP_to_pcap_name(unit_t *u, char *IOPname, bpf_u_int32 iftype) { in translate_IOP_to_pcap_name() 575 bpf_u_int32 interfaceType; in process_client_data() 621 interfaceType = ntohl(*(bpf_u_int32 *)ptr); in process_client_data() 650 s->sin_addr.s_addr = *(bpf_u_int32 *)(ptr + 1); /* copy the address in */ in process_client_data() 666 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data() 682 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data() 698 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data()
|
D | pcap-tc.c | 135 static int TcOidGetRequest(pcap_t *p, bpf_u_int32 oid, void *data, size_t *lenp); 136 static int TcOidSetRequest(pcap_t *p, bpf_u_int32 oid, const void *data, size_t *lenp); 939 hdr.ts.tv_sec = (bpf_u_int32)(tcHeader.Timestamp / (ULONGLONG)(1000 * 1000 * 1000)); in TcRead() 940 hdr.ts.tv_usec = (bpf_u_int32)((tcHeader.Timestamp % (ULONGLONG)(1000 * 1000 * 1000)) / 1000); in TcRead() 1165 TcOidGetRequest(pcap_t *p, bpf_u_int32 oid _U_, void *data _U_, size_t *lenp _U_) in TcOidGetRequest() 1173 TcOidSetRequest(pcap_t *p, bpf_u_int32 oid _U_, const void *data _U_, in TcOidSetRequest()
|
D | pcap.c | 433 pcap_oid_get_request_not_initialized(pcap_t *pcap, bpf_u_int32 oid _U_, in pcap_oid_get_request_not_initialized() 441 pcap_oid_set_request_not_initialized(pcap_t *pcap, bpf_u_int32 oid _U_, in pcap_oid_set_request_not_initialized() 1011 bpf_u_int32 if_flags, get_if_flags_func get_flags_func, char *errbuf) 1013 bpf_u_int32 pcap_flags; 1068 bpf_u_int32 if_flags, get_if_flags_func get_flags_func, 1228 find_or_add_dev(pcap_if_list_t *devlistp, const char *name, bpf_u_int32 flags, 1303 add_dev(pcap_if_list_t *devlistp, const char *name, bpf_u_int32 flags, 1566 pcap_lookupnet(const char *device, bpf_u_int32 *netp, bpf_u_int32 *maskp, 3792 pcap_oid_get_request(pcap_t *p, bpf_u_int32 oid, void *data, size_t *lenp) 3798 pcap_oid_set_request(pcap_t *p, bpf_u_int32 oid, const void *data, size_t *lenp) [all …]
|
D | pcap-snit.c | 238 bpf_u_int32 flags; in nit_setflags() 488 get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_) in get_if_flags()
|
/external/libpcap/pcap/ |
D | pcap.h | 160 typedef u_int bpf_u_int32; typedef 208 bpf_u_int32 magic; 212 bpf_u_int32 sigfigs; /* accuracy of timestamps; this is always 0 */ 213 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ 214 bpf_u_int32 linktype; /* data link type (LINKTYPE_*) */ 247 bpf_u_int32 caplen; /* length of portion present */ 248 bpf_u_int32 len; /* length of this packet (off wire) */ 306 bpf_u_int32 flags; /* PCAP_IF_ interface flags */ 398 PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); 614 bpf_u_int32); [all …]
|
D | bpf.h | 94 typedef unsigned long bpf_u_int32; typedef 97 typedef u_int bpf_u_int32; 248 bpf_u_int32 k;
|
D | namedb.h | 64 bpf_u_int32 **pcap_nametoaddr(const char *); 66 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 | 26 static char *iptos(bpf_u_int32 in); 106 bpf_u_int32 net, mask; in main() 322 static char *iptos(bpf_u_int32 in) in iptos()
|
D | filtertest.c | 220 bpf_u_int32 netmask = PCAP_NETMASK_UNKNOWN; in main() 269 bpf_u_int32 addr; in main()
|