Home
last modified time | relevance | path

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

12

/external/libpcap/
Dpcap-int.h137 typedef int (*oid_get_request_op_t)(pcap_t *, bpf_u_int32, void *, size_t *);
138 typedef int (*oid_set_request_op_t)(pcap_t *, bpf_u_int32, const void *, size_t *);
328 bpf_u_int32 caplen; /* length of portion present */
329 bpf_u_int32 len; /* length this packet (off wire) */
344 bpf_u_int32 caplen; /* length of portion present */
345 bpf_u_int32 len; /* length this packet (off wire) */
421 int add_addr_to_iflist(pcap_if_t **, const char *, bpf_u_int32,
427 int pcap_add_if(pcap_if_t **, const char *, bpf_u_int32, const char *,
429 int add_or_find_if(pcap_if_t **, pcap_if_t **, const char *, bpf_u_int32,
432 bpf_u_int32 if_flags_to_pcap_flags(const char *, u_int);
Dsf-pcap-ng.c71 bpf_u_int32 block_type;
72 bpf_u_int32 total_length;
79 bpf_u_int32 total_length;
107 bpf_u_int32 byte_order_magic;
134 bpf_u_int32 snaplen;
161 bpf_u_int32 interface_id;
162 bpf_u_int32 timestamp_high;
163 bpf_u_int32 timestamp_low;
164 bpf_u_int32 caplen;
165 bpf_u_int32 len;
[all …]
Dnametoaddr.c120 bpf_u_int32 **
124 static bpf_u_int32 *hlist[2]; in pcap_nametoaddr()
126 bpf_u_int32 **p; in pcap_nametoaddr()
131 hlist[0] = (bpf_u_int32 *)hp->h_addr; in pcap_nametoaddr()
135 for (p = (bpf_u_int32 **)hp->h_addr_list; *p; ++p) in pcap_nametoaddr()
137 return (bpf_u_int32 **)hp->h_addr_list; in pcap_nametoaddr()
167 bpf_u_int32
397 __pcap_atoin(const char *s, bpf_u_int32 *addr) in __pcap_atoin()
419 __pcap_atodn(const char *s, bpf_u_int32 *addr) in __pcap_atodn()
Dgencode.h223 typedef bpf_u_int32 atomset;
230 typedef bpf_u_int32 *uset;
307 struct block *gen_ncode(compiler_state_t *, const char *, bpf_u_int32,
323 struct block *gen_llc_s_subtype(compiler_state_t *, bpf_u_int32);
324 struct block *gen_llc_u_subtype(compiler_state_t *, bpf_u_int32);
335 bpf_u_int32, int);
340 struct block *gen_mtp3field_code(compiler_state_t *, int, bpf_u_int32,
341 bpf_u_int32, int);
Dpcap-dlpi.c141 static int dlpromiscon(pcap_t *, bpf_u_int32);
142 static int dlbindreq(int, bpf_u_int32, char *);
156 static char *dlstrerror(char *, size_t, bpf_u_int32);
157 static char *dlprim(char *, size_t, bpf_u_int32);
160 static void get_release(char *, size_t, bpf_u_int32 *, bpf_u_int32 *,
161 bpf_u_int32 *);
183 bpf_u_int32 ctlbuf[MAXDLBUF]; in pcap_read_dlpi()
498 bpf_u_int32 ss;
501 bpf_u_int32 osmajor, osminor, osmicro;
504 bpf_u_int32 buf[MAXDLBUF];
[all …]
Dnametoaddr.h42 int __pcap_atodn(const char *, bpf_u_int32 *);
43 int __pcap_atoin(const char *, bpf_u_int32 *);
Ddlpisubs.c45 #define PKTBUFSIZE (MAXDLBUF * sizeof(bpf_u_int32))
189 if (pkthdr.caplen > (bpf_u_int32)p->snapshot) in pcap_process_pkts()
190 pkthdr.caplen = (bpf_u_int32)p->snapshot; in pcap_process_pkts()
296 bpf_u_int32 ss, chunksize; in pcap_conf_bufmod()
Dsavefile.c170 sf_oid_get_request(pcap_t *p, bpf_u_int32 oid _U_, void *data _U_, in sf_oid_get_request()
179 sf_oid_set_request(pcap_t *p, bpf_u_int32 oid _U_, const void *data _U_, in sf_oid_set_request()
354 static pcap_t *(*check_headers[])(bpf_u_int32, FILE *, u_int, char *, int *) = {
369 bpf_u_int32 magic; in pcap_fopen_offline_with_tstamp_precision()
Dfad-helpers.c104 bpf_u_int32
107 bpf_u_int32 pcap_flags; in if_flags_to_pcap_flags()
376 bpf_u_int32 flags, const char *description, char *errbuf) in add_or_find_if()
660 add_addr_to_iflist(pcap_if_t **alldevs, const char *name, bpf_u_int32 flags, in add_addr_to_iflist()
Dsf-pcap-ng.h29 extern pcap_t *pcap_ng_check_header(bpf_u_int32 magic, FILE *fp,
Dsf-pcap.h34 extern pcap_t *pcap_check_header(bpf_u_int32 magic, FILE *fp,
Dinet.c126 register bpf_u_int32 *netp, *maskp;
367 register bpf_u_int32 *netp, *maskp;
Dgencode.c270 bpf_u_int32 netmask;
478 u_int, bpf_int32, bpf_u_int32);
481 static struct block *gen_ncmp(compiler_state_t *, enum e_offrel, bpf_u_int32,
482 bpf_u_int32, bpf_u_int32, bpf_u_int32, int, bpf_int32);
503 static struct block *gen_snap(compiler_state_t *, bpf_u_int32, bpf_u_int32);
505 static struct block *gen_hostop(compiler_state_t *, bpf_u_int32, bpf_u_int32,
517 static struct block *gen_dnhostop(compiler_state_t *, bpf_u_int32, int);
519 static struct block *gen_host(compiler_state_t *, bpf_u_int32, bpf_u_int32,
526 static struct block *gen_gateway(const u_char *, bpf_u_int32 **, int, int);
664 const char *buf, int optimize, bpf_u_int32 mask) in pcap_compile()
[all …]
Dpcap-sita.c419 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()
614 interfaceType = ntohl(*(bpf_u_int32 *)ptr); in process_client_data()
639 s->sin_addr.s_addr = *(bpf_u_int32 *)(ptr + 1); /* copy the address in */ in process_client_data()
653 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data()
667 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data()
681 s->sin_addr.s_addr = *(bpf_u_int32*)(ptr + 1); in process_client_data()
Dgrammar.y273 bpf_u_int32 h;
364 | pnum { $$.b = gen_ncode(cstate, NULL, (bpf_u_int32)$1,
432 qid: pnum { $$.b = gen_ncode(cstate, NULL, (bpf_u_int32)$1,
715 …| relop NUM { $$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, (bpf_int32)$2, (bpf_u_int32)…
716 …| irelop NUM { $$.b = gen_atmfield_code(cstate, $<blk>0.atmfieldtype, (bpf_int32)$2, (bpf_u_int32
Dsf-pcap.c151 pcap_check_header(bpf_u_int32 magic, FILE *fp, u_int precision, char *errbuf, in pcap_check_header()
426 bpf_u_int32 t; in pcap_next_packet()
890 if ((bpf_u_int32)linktype != ph.linktype) { in pcap_dump_open_append()
896 if ((bpf_u_int32)p->snapshot != ph.snaplen) { in pcap_dump_open_append()
Doptimize.c150 bpf_u_int32 *space;
152 #define BITS_PER_WORD (8*sizeof(bpf_u_int32))
176 register bpf_u_int32 *_x = a, *_y = b;\
186 register bpf_u_int32 *_x = a, *_y = b;\
196 register bpf_u_int32 *_x = a, *_y = b;\
285 bpf_u_int32 *x; in find_dom()
607 bpf_u_int32 a, b; in fold_op()
1380 register bpf_u_int32 x = ep->edom[i]; in opt_j()
1933 bpf_u_int32 *p; in opt_init()
1961 opt_state->edgewords = opt_state->n_edges / (8 * sizeof(bpf_u_int32)) + 1; in opt_init()
[all …]
Dpcap-tc.c136 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);
982 hdr.ts.tv_sec = (bpf_u_int32)(tcHeader.Timestamp / (ULONGLONG)(1000 * 1000 * 1000)); in TcRead()
983 hdr.ts.tv_usec = (bpf_u_int32)((tcHeader.Timestamp % (ULONGLONG)(1000 * 1000 * 1000)) / 1000); in TcRead()
1231 TcOidGetRequest(pcap_t *p, bpf_u_int32 oid _U_, void *data _U_, size_t *lenp _U_) in TcOidGetRequest()
1239 TcOidSetRequest(pcap_t *p, bpf_u_int32 oid _U_, const void *data _U_, in TcOidSetRequest()
Dpcap-libdlpi.c47 static int dlpromiscon(pcap_t *, bpf_u_int32);
248 dlpromiscon(pcap_t *p, bpf_u_int32 level) in dlpromiscon()
Dpcap-win32.c298 pcap_oid_get_request_win32(pcap_t *p, bpf_u_int32 oid, void *data, size_t *lenp) in pcap_oid_get_request_win32()
344 pcap_oid_set_request_win32(pcap_t *p, bpf_u_int32 oid, const void *data, in pcap_oid_set_request_win32()
1349 pcap_add_if_win32(pcap_if_t **devlist, char *name, bpf_u_int32 flags, in pcap_add_if_win32()
1509 bpf_u_int32 flags = 0; in pcap_platform_finddevs()
Dgrammar.h298 bpf_u_int32 h;
/external/libpcap/pcap/
Dpcap.h78 typedef u_int bpf_u_int32; typedef
125 bpf_u_int32 magic;
129 bpf_u_int32 sigfigs; /* accuracy of timestamps */
130 bpf_u_int32 snaplen; /* max length saved portion of each pkt */
131 bpf_u_int32 linktype; /* data link type (LINKTYPE_*) */
164 bpf_u_int32 caplen; /* length of portion present */
165 bpf_u_int32 len; /* length this packet (off wire) */
223 bpf_u_int32 flags; /* PCAP_IF_ interface flags */
279 PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *);
394 bpf_u_int32);
[all …]
Dbpf.h86 typedef unsigned long bpf_u_int32; typedef
89 typedef u_int bpf_u_int32;
242 bpf_u_int32 k;
Dnamedb.h62 PCAP_API bpf_u_int32 **pcap_nametoaddr(const char *);
66 PCAP_API bpf_u_int32 pcap_nametonetaddr(const char *);
/external/libpcap/tests/
Dfindalldevstest.c19 static char *iptos(bpf_u_int32 in);
26 bpf_u_int32 net, mask; in main()
151 static char *iptos(bpf_u_int32 in) in iptos()

12