/freebsd/contrib/libpcap/ |
H A 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); 330 struct block *gen_mcode6(compiler_state_t *, const char *, bpf_u_int32, 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 …]
|
H A D | sf-pcapng.c | 53 bpf_u_int32 block_type; 54 bpf_u_int32 total_length; 61 bpf_u_int32 total_length; 89 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 …]
|
H A D | pcap-dlpi.c | 144 static int dlpromiscon(pcap_t *, bpf_u_int32); 145 static int dlbindreq(int, bpf_u_int32, char *); 159 static char *dlstrerror(char *, size_t, bpf_u_int32); 160 static char *dlprim(char *, size_t, bpf_u_int32); 163 static void get_release(char *, size_t, bpf_u_int32 *, bpf_u_int32 *, 164 bpf_u_int32 *); 186 bpf_u_int32 ctlbuf[MAXDLBUF]; in pcap_read_dlpi() 528 bpf_u_int32 ss; 531 bpf_u_int32 osmajor, osminor, osmicro; 534 bpf_u_int32 buf[MAXDLBUF]; [all …]
|
H A 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 653 __pcap_atoin(const char *s, bpf_u_int32 *addr) in __pcap_atoin() 682 __pcap_atodn(const char *s, bpf_u_int32 *addr) in __pcap_atodn()
|
H A D | pcap-int.h | 206 typedef int (*oid_get_request_op_t)(pcap_t *, bpf_u_int32, void *, size_t *); 207 typedef int (*oid_set_request_op_t)(pcap_t *, bpf_u_int32, const void *, size_t *); 461 typedef int (*get_if_flags_func)(const char *, bpf_u_int32 *, char *); 467 pcap_if_t *pcapint_find_or_add_dev(pcap_if_list_t *, const char *, bpf_u_int32, 470 pcap_if_t *pcapint_add_dev(pcap_if_list_t *, const char *, bpf_u_int32, 517 bpf_u_int32 pcapint_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen);
|
H A D | gencode.c | 248 bpf_u_int32 netmask; 485 u_int, bpf_u_int32); 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, bpf_u_int32); 499 u_int, bpf_u_int32, int, int, bpf_u_int32); 508 static struct block *gen_ether_linktype(compiler_state_t *, bpf_u_int32); 509 static struct block *gen_ipnet_linktype(compiler_state_t *, bpf_u_int32); [all …]
|
H A D | sf-pcap.c | 118 bpf_u_int32 tv_sec; /* seconds */ 119 bpf_u_int32 tv_usec; /* microseconds */ 154 bpf_u_int32 caplen; /* length of portion present */ 155 bpf_u_int32 len; /* length of this packet (off wire) */ 170 bpf_u_int32 caplen; /* length of portion present */ 171 bpf_u_int32 len; /* length of this packet (off wire) */ 222 bpf_u_int32 magic_int; in pcap_check_header() 524 bpf_u_int32 t; in pcap_next_packet() 624 if (hdr->caplen > (bpf_u_int32)p->snapshot) { in pcap_next_packet() 637 if (hdr->caplen > (bpf_u_int32)p->snapshot) { in pcap_next_packet() [all …]
|
H A D | optimize.c | 215 bpf_u_int32 v0, v1; 225 bpf_u_int32 const_val; 271 bpf_u_int32 *space; 273 #define BITS_PER_WORD (8*sizeof(bpf_u_int32)) 278 ((p)[(unsigned)(a) / BITS_PER_WORD] & ((bpf_u_int32)1 << ((unsigned)(a) % BITS_PER_WORD))) 284 (p)[(unsigned)(a) / BITS_PER_WORD] |= ((bpf_u_int32)1 << ((unsigned)(a) % BITS_PER_WORD)) 290 (p)[(unsigned)(a) / BITS_PER_WORD] &= ~((bpf_u_int32)1 << ((unsigned)(a) % BITS_PER_WORD)) 298 register bpf_u_int32 *_x = a, *_y = b;\ 309 register bpf_u_int32 *_x = a, *_y = b;\ 320 register bpf_u_int32 *_x = a, *_y = b;\ [all …]
|
H A D | pcap-haiku.c | 103 bpf_u_int32 wireLength = (bpf_u_int32)bytesReceived; in pcap_read_haiku() 108 bpf_u_int32 captureLength = in pcap_read_haiku() 122 header.caplen = captureLength <= (bpf_u_int32)handle->snapshot ? in pcap_read_haiku() 124 (bpf_u_int32)handle->snapshot; in pcap_read_haiku() 445 get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf) in get_if_flags()
|
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 | pcap-null.c | 48 pcap_lookupnet(const char *device _U_, bpf_u_int32 *netp _U_, in pcap_lookupnet() 49 bpf_u_int32 *maskp _U_, char *errbuf) in pcap_lookupnet()
|
H A D | dlpisubs.c | 43 #define PKTBUFSIZE (MAXDLBUF * sizeof(bpf_u_int32)) 206 if (pkthdr.caplen > (bpf_u_int32)p->snapshot) in pcap_process_pkts() 207 pkthdr.caplen = (bpf_u_int32)p->snapshot; in pcap_process_pkts() 322 bpf_u_int32 ss, chunksize; in pcap_conf_bufmod()
|
H A D | savefile.c | 172 sf_oid_get_request(pcap_t *p, bpf_u_int32 oid _U_, void *data _U_, in sf_oid_get_request() 181 sf_oid_set_request(pcap_t *p, bpf_u_int32 oid _U_, const void *data _U_, in sf_oid_set_request() 451 bpf_u_int32 452 pcapint_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen) in pcapint_adjust_snapshot()
|
H A 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()
|
H A D | pcap-npf.c | 200 oid_get_request(ADAPTER *adapter, bpf_u_int32 oid, void *data, size_t *lenp, in oid_get_request() 391 pcap_oid_get_request_npf(pcap_t *p, bpf_u_int32 oid, void *data, size_t *lenp) in pcap_oid_get_request_npf() 399 pcap_oid_set_request_npf(pcap_t *p, bpf_u_int32 oid, const void *data, in pcap_oid_set_request_npf() 2036 pcap_add_if_npf(pcap_if_list_t *devlistp, char *name, bpf_u_int32 flags, in pcap_add_if_npf() 2103 get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf) in get_if_flags() 2112 bpf_u_int32 gen_physical_medium_oids[] = { in get_if_flags() 2441 bpf_u_int32 flags = 0; in pcapint_platform_finddevs() 2662 pcap_lookupnet(const char *device, bpf_u_int32 *netp, bpf_u_int32 *maskp, in pcap_lookupnet()
|
H A D | pcap-libdlpi.c | 45 static int dlpromiscon(pcap_t *, bpf_u_int32); 266 dlpromiscon(pcap_t *p, bpf_u_int32 level) in dlpromiscon() 311 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 | 426 static char *translate_IOP_to_pcap_name(unit_t *u, char *IOPname, bpf_u_int32 iftype) { in translate_IOP_to_pcap_name() 573 bpf_u_int32 interfaceType; in process_client_data() 619 interfaceType = ntohl(*(bpf_u_int32 *)ptr); in process_client_data() 648 s->sin_addr.s_addr = *(bpf_u_int32 *)(ptr + 1); /* copy the address in */ in process_client_data() 664 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data() 680 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data() 696 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data()
|
/freebsd/contrib/libpcap/pcap/ |
H A D | pcap.h | 160 typedef u_int bpf_u_int32; typedef 208 bpf_u_int32 magic; 212 bpf_u_int32 sigfigs; /* not used - SHOULD be filled with 0 */ 213 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ 214 bpf_u_int32 linktype; /* data link type (LINKTYPE_*) */ 295 bpf_u_int32 caplen; /* length of portion present */ 296 bpf_u_int32 len; /* length of this packet (off wire) */ 354 bpf_u_int32 flags; /* PCAP_IF_ interface flags */ 447 PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); 663 bpf_u_int32); [all …]
|
H A D | bpf.h | 108 typedef unsigned long bpf_u_int32; 111 typedef u_int bpf_u_int32; 262 bpf_u_int32 k;
|
H A D | namedb.h | 75 bpf_u_int32 **pcap_nametoaddr(const char *); 81 PCAP_API bpf_u_int32 pcap_nametonetaddr(const char *);
|
/freebsd/sys/net/ |
H A D | bpf.h | 49 typedef u_int32_t bpf_u_int32; typedef 202 bpf_u_int32 bh_caplen; /* length of captured portion */ 203 bpf_u_int32 bh_datalen; /* original length of packet */ 210 bpf_u_int32 bh_caplen; /* length of captured portion */ 211 bpf_u_int32 bh_datalen; /* original length of packet */ 365 bpf_u_int32 k;
|
H A D | bpf_filter.c | 85 static u_int16_t m_xhalf(struct mbuf *m, bpf_u_int32 k, int *err); 86 static u_int32_t m_xword(struct mbuf *m, bpf_u_int32 k, int *err); 89 m_xword(struct mbuf *m, bpf_u_int32 k, int *err) in m_xword() 138 m_xhalf(struct mbuf *m, bpf_u_int32 k, int *err) in m_xhalf() 177 bpf_u_int32 k; in bpf_filter()
|
/freebsd/sbin/ipf/ipf/ |
H A D | bpf-ipf.h | 50 typedef u_int bpf_u_int32; typedef 148 bpf_u_int32 bh_caplen; /* length of captured portion */ 149 bpf_u_int32 bh_datalen; /* original length of packet */
|
/freebsd/contrib/libpcap/testprogs/ |
H A D | findalldevstest.c | 24 static char *iptos(bpf_u_int32 in); 104 bpf_u_int32 net, mask; in main() 322 static char *iptos(bpf_u_int32 in) in iptos()
|
/freebsd/contrib/pf/pflogd/ |
H A D | pflogd.c | 78 bpf_u_int32 tv_sec; /* seconds */ 79 bpf_u_int32 tv_usec; /* microseconds */ 84 bpf_u_int32 caplen; /* length of portion present */ 85 bpf_u_int32 len; /* length of this packet (off wire) */
|