/netbsd/external/bsd/libpcap/dist/ |
H A D | pcap-int.h | 142 typedef int (*oid_get_request_op_t)(pcap_t *, bpf_u_int32, void *, size_t *); 354 bpf_u_int32 caplen; /* length of portion present */ 355 bpf_u_int32 len; /* length this packet (off wire) */ 370 bpf_u_int32 caplen; /* length of portion present */ 371 bpf_u_int32 len; /* length this packet (off wire) */ 453 typedef int (*get_if_flags_func)(const char *, bpf_u_int32 *, char *); 459 pcap_if_t *find_or_add_dev(pcap_if_list_t *, const char *, bpf_u_int32, 462 pcap_if_t *add_dev(pcap_if_list_t *, const char *, bpf_u_int32, const char *, 468 pcap_if_t *find_or_add_if(pcap_if_list_t *, const char *, bpf_u_int32, 470 int add_addr_to_if(pcap_if_list_t *, const char *, bpf_u_int32, [all …]
|
H A 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); 329 struct block *gen_vlan(compiler_state_t *, bpf_u_int32, int); 330 struct block *gen_mpls(compiler_state_t *, bpf_u_int32, int); 333 struct block *gen_pppoes(compiler_state_t *, bpf_u_int32, int); 335 struct block *gen_geneve(compiler_state_t *, bpf_u_int32, int); 338 bpf_u_int32, int); [all …]
|
H A D | sf-pcapng.c | 54 bpf_u_int32 block_type; 55 bpf_u_int32 total_length; 62 bpf_u_int32 total_length; 117 bpf_u_int32 snaplen; 147 bpf_u_int32 caplen; 148 bpf_u_int32 len; 158 bpf_u_int32 len; 172 bpf_u_int32 caplen; 173 bpf_u_int32 len; 185 bpf_u_int32 block_type; [all …]
|
H A D | pcap-dlpi.c | 176 static void get_release(char *, size_t, bpf_u_int32 *, bpf_u_int32 *, 177 bpf_u_int32 *); 199 bpf_u_int32 ctlbuf[MAXDLBUF]; in pcap_read_dlpi() 516 bpf_u_int32 ss; 519 bpf_u_int32 osmajor, osminor, osmicro; 522 bpf_u_int32 buf[MAXDLBUF]; 921 bpf_u_int32 buf[MAXDLBUF]; 941 bpf_u_int32 buf[MAXDLBUF]; 992 bpf_u_int32 buf[MAXDLBUF]; 1499 bpf_u_int32 buf[MAXDLBUF]; [all …]
|
H A D | nametoaddr.c | 161 bpf_u_int32 ** 165 static bpf_u_int32 *hlist[2]; in pcap_nametoaddr() 167 bpf_u_int32 **p; in pcap_nametoaddr() 172 hlist[0] = (bpf_u_int32 *)hp->h_addr; in pcap_nametoaddr() 176 for (p = (bpf_u_int32 **)hp->h_addr_list; *p; ++p) in pcap_nametoaddr() 178 return (bpf_u_int32 **)hp->h_addr_list; in pcap_nametoaddr() 208 bpf_u_int32 652 __pcap_atoin(const char *s, bpf_u_int32 *addr) in __pcap_atoin() 674 __pcap_atodn(const char *s, bpf_u_int32 *addr) in __pcap_atodn()
|
H A D | nametoaddr.h | 42 int __pcap_atodn(const char *, bpf_u_int32 *); 43 int __pcap_atoin(const char *, bpf_u_int32 *);
|
H A D | savefile.c | 169 sf_oid_get_request(pcap_t *p, bpf_u_int32 oid _U_, void *data _U_, in sf_oid_get_request() 178 sf_oid_set_request(pcap_t *p, bpf_u_int32 oid _U_, const void *data _U_, in sf_oid_set_request() 351 bpf_u_int32 352 pcap_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen) in pcap_adjust_snapshot()
|
H A D | pcap-null.c | 55 pcap_lookupnet(const char *device _U_, bpf_u_int32 *netp _U_, in pcap_lookupnet() 56 bpf_u_int32 *maskp _U_, char *errbuf) in pcap_lookupnet()
|
H A D | dlpisubs.c | 50 #define PKTBUFSIZE (MAXDLBUF * sizeof(bpf_u_int32)) 194 if (pkthdr.caplen > (bpf_u_int32)p->snapshot) in pcap_process_pkts() 195 pkthdr.caplen = (bpf_u_int32)p->snapshot; in pcap_process_pkts() 310 bpf_u_int32 ss, chunksize; in pcap_conf_bufmod()
|
H A D | grammar.y | 297 bpf_u_int32 h; 385 | pnum { CHECK_PTR_VAL(($$.b = gen_ncode(cstate, NULL, (bpf_u_int32)$1, 447 qid: pnum { CHECK_PTR_VAL(($$.b = gen_ncode(cstate, NULL, (bpf_u_int32)$1, 556 | VLAN pnum { CHECK_PTR_VAL(($$ = gen_vlan(cstate, (bpf_u_int32)$2, 1))); } 558 | MPLS pnum { CHECK_PTR_VAL(($$ = gen_mpls(cstate, (bpf_u_int32)$2, 1))); } 561 | PPPOES pnum { CHECK_PTR_VAL(($$ = gen_pppoes(cstate, (bpf_u_int32)$2, 1))); } 563 | GENEVE pnum { CHECK_PTR_VAL(($$ = gen_geneve(cstate, (bpf_u_int32)$2, 1))); } 750 …VAL(($$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, (bpf_int32)$2, (bpf_u_int32)$1, 0))); } 751 …VAL(($$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, (bpf_int32)$2, (bpf_u_int32)$1, 1))); }
|
H A D | sf-pcap.c | 161 bpf_u_int32 magic_int; in pcap_check_header() 453 bpf_u_int32 t; in pcap_next_packet() 553 if (hdr->caplen > (bpf_u_int32)p->snapshot) { in pcap_next_packet() 566 if (hdr->caplen > (bpf_u_int32)p->snapshot) { in pcap_next_packet() 617 if (amt_read != (bpf_u_int32)p->snapshot) { in pcap_next_packet() 1049 if ((bpf_u_int32)linktype != ph.linktype) { in pcap_dump_open_append() 1055 if ((bpf_u_int32)p->snapshot != ph.snaplen) { in pcap_dump_open_append()
|
H A D | pcap-npf.c | 144 oid_get_request(ADAPTER *adapter, bpf_u_int32 oid, void *data, size_t *lenp, in oid_get_request() 330 pcap_oid_get_request_npf(pcap_t *p, bpf_u_int32 oid, void *data, size_t *lenp) in pcap_oid_get_request_npf() 338 pcap_oid_set_request_npf(pcap_t *p, bpf_u_int32 oid, const void *data, in pcap_oid_set_request_npf() 1423 pcap_add_if_npf(pcap_if_list_t *devlistp, char *name, bpf_u_int32 flags, in pcap_add_if_npf() 1490 get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf) in get_if_flags() 1499 bpf_u_int32 gen_physical_medium_oids[] = { in get_if_flags() 1808 bpf_u_int32 flags = 0; in pcap_platform_finddevs() 1999 pcap_lookupnet(const char *device, bpf_u_int32 *netp, bpf_u_int32 *maskp, in pcap_lookupnet()
|
H A D | optimize.c | 264 bpf_u_int32 *space; 266 #define BITS_PER_WORD (8*sizeof(bpf_u_int32)) 290 register bpf_u_int32 *_x = a, *_y = b;\ 300 register bpf_u_int32 *_x = a, *_y = b;\ 310 register bpf_u_int32 *_x = a, *_y = b;\ 411 bpf_u_int32 *x; in find_dom() 732 bpf_u_int32 a, b; in fold_op() 1167 s->k = 0U - (bpf_u_int32)(opt_state->vmap[val[A_ATOM]].const_val); in opt_stmt() 1572 register bpf_u_int32 x = ep->edom[i]; in opt_j() 1576 x &=~ ((bpf_u_int32)1 << k); in opt_j() [all …]
|
H A D | gencode.c | 265 bpf_u_int32 netmask; 501 bpf_u_int32, bpf_u_int32, bpf_u_int32, int, bpf_int32); 522 static struct block *gen_snap(compiler_state_t *, bpf_u_int32, bpf_u_int32); 524 static struct block *gen_hostop(compiler_state_t *, bpf_u_int32, bpf_u_int32, 538 static struct block *gen_host(compiler_state_t *, bpf_u_int32, bpf_u_int32, 1115 bpf_u_int32 size, bpf_u_int32 mask, bpf_u_int32 jtype, int reverse, in gen_ncmp() 3986 gen_hostop(compiler_state_t *cstate, bpf_u_int32 addr, bpf_u_int32 mask, in gen_hostop() 4914 gen_host(compiler_state_t *cstate, bpf_u_int32 addr, bpf_u_int32 mask, in gen_host() 6953 bpf_u_int32 n, m; in gen_mcode() 7005 bpf_u_int32 mask; in gen_ncode() [all …]
|
H A D | pcap-libdlpi.c | 52 static int dlpromiscon(pcap_t *, bpf_u_int32); 264 dlpromiscon(pcap_t *p, bpf_u_int32 level) in dlpromiscon() 296 get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_) in get_if_flags()
|
H A D | pcap-sita.c | 425 static char *translate_IOP_to_pcap_name(unit_t *u, char *IOPname, bpf_u_int32 iftype) { in translate_IOP_to_pcap_name() 579 bpf_u_int32 interfaceType; in process_client_data() 625 interfaceType = ntohl(*(bpf_u_int32 *)ptr); in process_client_data() 654 s->sin_addr.s_addr = *(bpf_u_int32 *)(ptr + 1); /* copy the address in */ in process_client_data() 670 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data() 686 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data() 702 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data()
|
H A D | pcap.c | 309 pcap_oid_get_request_not_initialized(pcap_t *pcap, bpf_u_int32 oid _U_, in pcap_oid_get_request_not_initialized() 317 pcap_oid_set_request_not_initialized(pcap_t *pcap, bpf_u_int32 oid _U_, in pcap_oid_set_request_not_initialized() 885 bpf_u_int32 if_flags, get_if_flags_func get_flags_func, char *errbuf) 887 bpf_u_int32 pcap_flags; 942 bpf_u_int32 if_flags, get_if_flags_func get_flags_func, 1102 find_or_add_dev(pcap_if_list_t *devlistp, const char *name, bpf_u_int32 flags, 1177 add_dev(pcap_if_list_t *devlistp, const char *name, bpf_u_int32 flags, 1424 pcap_lookupnet(const char *device, bpf_u_int32 *netp, bpf_u_int32 *maskp, 3544 pcap_oid_get_request(pcap_t *p, bpf_u_int32 oid, void *data, size_t *lenp) 3928 pcap_oid_get_request_dead(pcap_t *p, bpf_u_int32 oid _U_, void *data _U_, [all …]
|
H A 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); 992 hdr.ts.tv_sec = (bpf_u_int32)(tcHeader.Timestamp / (ULONGLONG)(1000 * 1000 * 1000)); in TcRead() 993 hdr.ts.tv_usec = (bpf_u_int32)((tcHeader.Timestamp % (ULONGLONG)(1000 * 1000 * 1000)) / 1000); in TcRead() 1239 TcOidGetRequest(pcap_t *p, bpf_u_int32 oid _U_, void *data _U_, size_t *lenp _U_) in TcOidGetRequest() 1247 TcOidSetRequest(pcap_t *p, bpf_u_int32 oid _U_, const void *data _U_, in TcOidSetRequest()
|
H A D | bpf_filter.c | 61 #define u_int32 bpf_u_int32 125 register bpf_u_int32 k; in bpf_filter_with_aux_data()
|
/netbsd/external/bsd/libpcap/dist/pcap/ |
H A D | pcap.h | 121 typedef u_int bpf_u_int32; typedef 168 bpf_u_int32 magic; 172 bpf_u_int32 sigfigs; /* accuracy of timestamps */ 173 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ 174 bpf_u_int32 linktype; /* data link type (LINKTYPE_*) */ 207 bpf_u_int32 caplen; /* length of portion present */ 208 bpf_u_int32 len; /* length this packet (off wire) */ 266 bpf_u_int32 flags; /* PCAP_IF_ interface flags */ 335 PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); 463 bpf_u_int32); [all …]
|
H A D | bpf.h | 84 typedef unsigned long bpf_u_int32; typedef 87 typedef u_int bpf_u_int32; 240 bpf_u_int32 k;
|
H A D | namedb.h | 64 PCAP_API bpf_u_int32 **pcap_nametoaddr(const char *); 66 PCAP_API bpf_u_int32 pcap_nametonetaddr(const char *);
|
/netbsd/external/bsd/ipf/bin/ipftest/ |
H A D | bpf-ipf.h | 55 typedef u_int bpf_u_int32; typedef 153 bpf_u_int32 bh_caplen; /* length of captured portion */ 154 bpf_u_int32 bh_datalen; /* original length of packet */
|
/netbsd/external/bsd/libpcap/dist/testprogs/ |
H A 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()
|
H A D | filtertest.c | 206 bpf_u_int32 netmask = PCAP_NETMASK_UNKNOWN; in main() 253 bpf_u_int32 addr; in main()
|