Home
last modified time | relevance | path

Searched refs:bpf_u_int32 (Results 1 – 25 of 52) sorted by relevance

123

/freebsd/contrib/libpcap/
H A Dgencode.h222 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);
328 bpf_u_int32, struct qual);
331 bpf_u_int32, struct qual);
353 struct block *gen_vlan(compiler_state_t *, bpf_u_int32, int);
354 struct block *gen_mpls(compiler_state_t *, bpf_u_int32, int);
357 struct block *gen_pppoes(compiler_state_t *, bpf_u_int32, int);
[all …]
H A Dpcap-int.h204 typedef int (*oid_get_request_op_t)(pcap_t *, bpf_u_int32, 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,
544 int add_addr_to_if(pcap_if_list_t *, const char *, bpf_u_int32,
[all …]
H A Dsf-pcapng.c55 bpf_u_int32 block_type;
56 bpf_u_int32 total_length;
63 bpf_u_int32 total_length;
119 bpf_u_int32 snaplen;
149 bpf_u_int32 caplen;
150 bpf_u_int32 len;
160 bpf_u_int32 len;
174 bpf_u_int32 caplen;
175 bpf_u_int32 len;
187 bpf_u_int32 block_type;
[all …]
H A Dpcap-dlpi.c165 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];
935 bpf_u_int32 buf[MAXDLBUF];
955 bpf_u_int32 buf[MAXDLBUF];
1006 bpf_u_int32 buf[MAXDLBUF];
1524 bpf_u_int32 buf[MAXDLBUF];
[all …]
H A Dnametoaddr.c157 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()
H A Dgencode.c250 bpf_u_int32 netmask;
497 u_int, bpf_u_int32, bpf_u_int32);
501 u_int, bpf_u_int32, int, int, bpf_u_int32);
521 static bpf_u_int32 ethertype_to_ppptype(bpf_u_int32);
552 bpf_u_int32);
555 bpf_u_int32);
1062 u_int size, bpf_u_int32 v, bpf_u_int32 mask) in gen_mcmp()
1112 bpf_u_int32 v) in gen_ncmp()
3093 static bpf_u_int32
4888 (bpf_u_int32)ntohs(0x0681), (bpf_u_int32)ntohs(0x07FF)); in gen_dnhostop()
[all …]
H A Dnametoaddr.h42 int __pcap_atodn(const char *, bpf_u_int32 *);
43 int __pcap_atoin(const char *, bpf_u_int32 *);
H A Doptimize.c217 bpf_u_int32 v0, v1;
424 bpf_u_int32 *x; in find_dom()
726 static bpf_u_int32
727 F(opt_state_t *opt_state, int code, bpf_u_int32 v0, bpf_u_int32 v1) in F()
730 bpf_u_int32 val; in F()
784 bpf_u_int32 a, b; in fold_op()
896 bpf_u_int32 val; in opt_peep()
1191 bpf_u_int32 v; in opt_stmt()
1820 bpf_u_int32 val; in or_pullup()
1984 bpf_u_int32 val; in and_pullup()
[all …]
H A Dpcap-null.c50 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()
H A Ddlpisubs.c45 #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()
H A Dsavefile.c174 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()
H A Dsf-pcap.c161 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()
H A Dbpf_image.c117 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 Dpcap-npf.c160 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()
H A Dpcap-libdlpi.c47 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()
H A Dpcap-sita.c428 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()
H A Dpcap-tc.c135 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()
/freebsd/contrib/libpcap/pcap/
H A Dpcap.h160 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 …]
H A Dbpf.h108 typedef unsigned long bpf_u_int32;
111 typedef u_int bpf_u_int32;
262 bpf_u_int32 k;
H A Dnamedb.h64 bpf_u_int32 **pcap_nametoaddr(const char *);
66 PCAP_API bpf_u_int32 pcap_nametonetaddr(const char *);
/freebsd/sys/net/
H A Dbpf.h48 typedef u_int32_t bpf_u_int32; typedef
201 bpf_u_int32 bh_caplen; /* length of captured portion */
202 bpf_u_int32 bh_datalen; /* original length of packet */
209 bpf_u_int32 bh_caplen; /* length of captured portion */
210 bpf_u_int32 bh_datalen; /* original length of packet */
364 bpf_u_int32 k;
H A Dbpf_filter.c85 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 Dbpf-ipf.h50 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 Dfindalldevstest.c26 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()
H A Dfiltertest.c220 bpf_u_int32 netmask = PCAP_NETMASK_UNKNOWN; in main()
269 bpf_u_int32 addr; in main()

123