Searched refs:bpf_u_int32 (Results 1 - 25 of 43) sorted by relevance

12

/freebsd-11-stable/contrib/libpcap/
H A Dnametoaddr.h42 int __pcap_atodn(const char *, bpf_u_int32 *);
43 int __pcap_atoin(const char *, bpf_u_int32 *);
H A Dpcap-null.c50 pcap_lookupnet(const char *device _U_, bpf_u_int32 *netp _U_,
51 bpf_u_int32 *maskp _U_, char *errbuf)
H A Dpcap-int.h140 typedef int (*oid_get_request_op_t)(pcap_t *, bpf_u_int32, void *, size_t *);
141 typedef int (*oid_set_request_op_t)(pcap_t *, bpf_u_int32, const void *, size_t *);
352 bpf_u_int32 caplen; /* length of portion present */
353 bpf_u_int32 len; /* length this packet (off wire) */
368 bpf_u_int32 caplen; /* length of portion present */
369 bpf_u_int32 len; /* length this packet (off wire) */
451 typedef int (*get_if_flags_func)(const char *, bpf_u_int32 *, char *);
457 pcap_if_t *find_or_add_dev(pcap_if_list_t *, const char *, bpf_u_int32,
460 pcap_if_t *add_dev(pcap_if_list_t *, const char *, bpf_u_int32, const char *,
466 pcap_if_t *find_or_add_if(pcap_if_list_t *, const char *, bpf_u_int32,
[all...]
H A Dgencode.h219 typedef bpf_u_int32 atomset;
226 typedef bpf_u_int32 *uset;
308 struct block *gen_ncode(compiler_state_t *, const char *, bpf_u_int32,
324 struct block *gen_llc_s_subtype(compiler_state_t *, bpf_u_int32);
325 struct block *gen_llc_u_subtype(compiler_state_t *, bpf_u_int32);
327 struct block *gen_vlan(compiler_state_t *, bpf_u_int32, int);
328 struct block *gen_mpls(compiler_state_t *, bpf_u_int32, int);
331 struct block *gen_pppoes(compiler_state_t *, bpf_u_int32, int);
333 struct block *gen_geneve(compiler_state_t *, bpf_u_int32, int);
336 bpf_u_int32, in
[all...]
H A Dsf-pcapng.c54 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 le
[all...]
H A Dpcap-dlpi.c152 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];
511 bpf_u_int32 ss;
514 bpf_u_int32 osmajo
[all...]
H A Dnametoaddr.c156 bpf_u_int32 **
160 static bpf_u_int32 *hlist[2];
162 bpf_u_int32 **p;
167 hlist[0] = (bpf_u_int32 *)hp->h_addr;
171 for (p = (bpf_u_int32 **)hp->h_addr_list; *p; ++p)
173 return (bpf_u_int32 **)hp->h_addr_list;
203 bpf_u_int32
647 __pcap_atoin(const char *s, bpf_u_int32 *addr)
676 __pcap_atodn(const char *s, bpf_u_int32 *addr)
H A Ddlpisubs.c45 #define PKTBUFSIZE (MAXDLBUF * sizeof(bpf_u_int32))
189 if (pkthdr.caplen > (bpf_u_int32)p->snapshot)
190 pkthdr.caplen = (bpf_u_int32)p->snapshot;
305 bpf_u_int32 ss, chunksize;
H A Dsavefile.c164 sf_oid_get_request(pcap_t *p, bpf_u_int32 oid _U_, void *data _U_,
173 sf_oid_set_request(pcap_t *p, bpf_u_int32 oid _U_, const void *data _U_,
346 bpf_u_int32
347 pcap_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen)
H A Dsf-pcap.c156 bpf_u_int32 magic_int;
448 bpf_u_int32 t;
548 if (hdr->caplen > (bpf_u_int32)p->snapshot) {
561 if (hdr->caplen > (bpf_u_int32)p->snapshot) {
612 if (amt_read != (bpf_u_int32)p->snapshot) {
1044 if ((bpf_u_int32)linktype != ph.linktype) {
1050 if ((bpf_u_int32)p->snapshot != ph.snaplen) {
H A Dpcap-libdlpi.c47 static int dlpromiscon(pcap_t *, bpf_u_int32);
259 dlpromiscon(pcap_t *p, bpf_u_int32 level)
291 get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_)
H A Dgrammar.y293 bpf_u_int32 h;
381 | pnum { CHECK_PTR_VAL(($$.b = gen_ncode(cstate, NULL, (bpf_u_int32)$1,
443 qid: pnum { CHECK_PTR_VAL(($$.b = gen_ncode(cstate, NULL, (bpf_u_int32)$1,
552 | VLAN pnum { CHECK_PTR_VAL(($$ = gen_vlan(cstate, (bpf_u_int32)$2, 1))); }
554 | MPLS pnum { CHECK_PTR_VAL(($$ = gen_mpls(cstate, (bpf_u_int32)$2, 1))); }
557 | PPPOES pnum { CHECK_PTR_VAL(($$ = gen_pppoes(cstate, (bpf_u_int32)$2, 1))); }
559 | GENEVE pnum { CHECK_PTR_VAL(($$ = gen_geneve(cstate, (bpf_u_int32)$2, 1))); }
746 | relop NUM { CHECK_PTR_VAL(($$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, (bpf_int32)$2, (bpf_u_int32)$1, 0))); }
747 | irelop NUM { CHECK_PTR_VAL(($$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, (bpf_int32)$2, (bpf_u_int32)$1, 1))); }
H A Dpcap-npf.c144 oid_get_request(ADAPTER *adapter, bpf_u_int32 oid, void *data, size_t *lenp,
330 pcap_oid_get_request_npf(pcap_t *p, bpf_u_int32 oid, void *data, size_t *lenp)
338 pcap_oid_set_request_npf(pcap_t *p, bpf_u_int32 oid, const void *data,
1423 pcap_add_if_npf(pcap_if_list_t *devlistp, char *name, bpf_u_int32 flags,
1490 get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf)
1499 bpf_u_int32 gen_physical_medium_oids[] = {
1808 bpf_u_int32 flags = 0;
1999 pcap_lookupnet(const char *device, bpf_u_int32 *netp, bpf_u_int32 *maskp,
H A Dgencode.c260 bpf_u_int32 netmask;
492 u_int, bpf_int32, bpf_u_int32);
495 static struct block *gen_ncmp(compiler_state_t *, enum e_offrel, bpf_u_int32,
496 bpf_u_int32, bpf_u_int32, bpf_u_int32, int, bpf_int32);
517 static struct block *gen_snap(compiler_state_t *, bpf_u_int32, bpf_u_int32);
519 static struct block *gen_hostop(compiler_state_t *, bpf_u_int32, bpf_u_int32,
[all...]
H A Dpcap-sita.c420 static char *translate_IOP_to_pcap_name(unit_t *u, char *IOPname, bpf_u_int32 iftype) {
574 bpf_u_int32 interfaceType;
620 interfaceType = ntohl(*(bpf_u_int32 *)ptr);
649 s->sin_addr.s_addr = *(bpf_u_int32 *)(ptr + 1); /* copy the address in */
665 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1);
681 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1);
697 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1);
H A Doptimize.c259 bpf_u_int32 *space;
261 #define BITS_PER_WORD (8*sizeof(bpf_u_int32))
266 ((p)[(unsigned)(a) / BITS_PER_WORD] & ((bpf_u_int32)1 << ((unsigned)(a) % BITS_PER_WORD)))
272 (p)[(unsigned)(a) / BITS_PER_WORD] |= ((bpf_u_int32)1 << ((unsigned)(a) % BITS_PER_WORD))
278 (p)[(unsigned)(a) / BITS_PER_WORD] &= ~((bpf_u_int32)1 << ((unsigned)(a) % BITS_PER_WORD))
285 register bpf_u_int32 *_x = a, *_y = b;\
295 register bpf_u_int32 *_x = a, *_y = b;\
305 register bpf_u_int32 *_x = a, *_y = b;\
406 bpf_u_int32 *x;
727 bpf_u_int32
[all...]
/freebsd-11-stable/contrib/libpcap/pcap/
H A Dnamedb.h62 PCAP_API bpf_u_int32 **pcap_nametoaddr(const char *);
64 PCAP_API bpf_u_int32 pcap_nametonetaddr(const char *);
H A Dpcap.h114 typedef u_int bpf_u_int32; typedef
161 bpf_u_int32 magic;
165 bpf_u_int32 sigfigs; /* accuracy of timestamps */
166 bpf_u_int32 snaplen; /* max length saved portion of each pkt */
167 bpf_u_int32 linktype; /* data link type (LINKTYPE_*) */
200 bpf_u_int32 caplen; /* length of portion present */
201 bpf_u_int32 len; /* length this packet (off wire) */
259 bpf_u_int32 flags; /* PCAP_IF_ interface flags */
328 PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, cha
[all...]
H A Dbpf.h82 typedef unsigned long bpf_u_int32; typedef
85 typedef u_int bpf_u_int32; typedef
238 bpf_u_int32 k;
/freebsd-11-stable/sys/net/
H A Dbpf.h47 typedef u_int32_t bpf_u_int32; typedef
198 bpf_u_int32 bh_caplen; /* length of captured portion */
199 bpf_u_int32 bh_datalen; /* original length of packet */
206 bpf_u_int32 bh_caplen; /* length of captured portion */
207 bpf_u_int32 bh_datalen; /* original length of packet */
364 bpf_u_int32 k;
H A Dbpf_filter.c88 static u_int16_t m_xhalf(struct mbuf *m, bpf_u_int32 k, int *err);
89 static u_int32_t m_xword(struct mbuf *m, bpf_u_int32 k, int *err);
92 m_xword(struct mbuf *m, bpf_u_int32 k, int *err)
141 m_xhalf(struct mbuf *m, bpf_u_int32 k, int *err)
180 bpf_u_int32 k;
/freebsd-11-stable/contrib/libpcap/testprogs/
H A Dfindalldevstest.c25 static char *iptos(bpf_u_int32 in);
101 bpf_u_int32 net, mask;
301 static char *iptos(bpf_u_int32 in)
H A Dfiltertest.c206 bpf_u_int32 netmask = PCAP_NETMASK_UNKNOWN;
253 bpf_u_int32 addr;
/freebsd-11-stable/contrib/ipfilter/
H A Dbpf-ipf.h55 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 */
/freebsd-11-stable/tools/tools/ether_reflect/
H A Dether_reflect.c64 bpf_u_int32 localnet=0, netmask=0;

Completed in 291 milliseconds

12