Home
last modified time | relevance | path

Searched refs:snaplen (Results 1 – 25 of 27) sorted by relevance

12

/external/libpcap/
Dpcap-enet.c80 caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap in readloop()
95 caplen = cc > snaplen ? snaplen : cc ; in readloop()
Dpcap-snit.c265 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, in pcap_open_live() argument
281 if (snaplen < 96) in pcap_open_live()
285 snaplen = 96; in pcap_open_live()
347 si.ic_len = sizeof(snaplen); in pcap_open_live()
348 si.ic_dp = (char *)&snaplen; in pcap_open_live()
354 p->snapshot = snaplen; in pcap_open_live()
Dpcap-snoop.c198 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, in pcap_open_live() argument
341 if (snaplen > ifr.ifr_mtu + ll_hdrlen) in pcap_open_live()
342 snaplen = ifr.ifr_mtu + ll_hdrlen; in pcap_open_live()
350 snooplen = snaplen - ll_hdrlen; in pcap_open_live()
358 p->snapshot = snaplen; in pcap_open_live()
Dpcap-nit.c250 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, in pcap_open_live() argument
263 if (snaplen < 96) in pcap_open_live()
267 snaplen = 96; in pcap_open_live()
284 p->snapshot = snaplen; in pcap_open_live()
Dpcap-dag.c497 dag_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf) in dag_open_live() argument
614 if (snaplen == 0 || snaplen > MAX_DAG_SNAPLEN) { in dag_open_live()
615 snaplen = MAX_DAG_SNAPLEN; in dag_open_live()
616 } else if (snaplen < MIN_DAG_SNAPLEN) { in dag_open_live()
617 snaplen = MIN_DAG_SNAPLEN; in dag_open_live()
620 snprintf(conf, 30, "varlen slen=%d", (snaplen + 3) & ~3); in dag_open_live()
668 handle->snapshot = snaplen; in dag_open_live()
Dsavefile.c854 sf_write_header(FILE *fp, int linktype, int thiszone, int snaplen) in sf_write_header() argument
863 hdr.snaplen = snaplen; in sf_write_header()
880 hp->snaplen = SWAPLONG(hp->snaplen); in swap_hdr()
1046 p->snapshot = hdr.snaplen; in pcap_fopen_offline()
1072 p->bufsize = hdr.snaplen; in pcap_fopen_offline()
1075 p->bufsize = hdr.snaplen+sizeof(struct pcap_pkthdr); in pcap_fopen_offline()
Dpcap-pf.c296 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, in pcap_open_live() argument
454 snaplen += PCAP_FDDIPAD; in pcap_open_live()
458 if (ioctl(p->fd, EIOCTRUNCATE, (caddr_t)&snaplen) < 0) { in pcap_open_live()
463 p->snapshot = snaplen; in pcap_open_live()
Dpcap-septel.h14 pcap_t *septel_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf);
Dpcap-dag.h13 pcap_t *dag_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf);
Dpcap-septel.c209 pcap_t *septel_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf) { in septel_open_live() argument
222 handle->snapshot = snaplen; in septel_open_live()
Dpcap-null.c43 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, in pcap_open_live() argument
Dpcap-dos.c149 pcap_t *pcap_open_live (const char *device_name, int snaplen, int promisc, in pcap_open_live() argument
154 if (snaplen < ETH_MIN) in pcap_open_live()
155 snaplen = ETH_MIN; in pcap_open_live()
157 if (snaplen > ETH_MAX) /* silently accept and truncate large MTUs */ in pcap_open_live()
158 snaplen = ETH_MAX; in pcap_open_live()
167 pcap->snapshot = max (ETH_MIN+8, snaplen); in pcap_open_live()
Dpcap-bpf.c593 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, in pcap_open_live() argument
613 return dag_open_live(device, snaplen, promisc, to_ms, ebuf); in pcap_open_live()
633 p->snapshot = snaplen; in pcap_open_live()
967 total_insn.k = snaplen; in pcap_open_live()
Dpcap-win32.c393 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, in pcap_open_live() argument
554 p->snapshot = snaplen; in pcap_open_live()
609 p->snapshot = PacketSetSnapLen(p->adapter, snaplen); in pcap_open_live()
Dpcap-linux.c237 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, in pcap_open_live() argument
248 return dag_open_live(device, snaplen, promisc, to_ms, ebuf); in pcap_open_live()
254 return septel_open_live(device, snaplen, promisc, to_ms, ebuf); in pcap_open_live()
270 handle->snapshot = snaplen; in pcap_open_live()
Dpcap.h119 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ member
Dpcap.c756 pcap_open_dead(int linktype, int snaplen) in pcap_open_dead() argument
764 p->snapshot = snaplen; in pcap_open_dead()
Dpcap-dlpi.c460 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, in pcap_open_live() argument
618 p->snapshot = snaplen; in pcap_open_live()
873 ss = snaplen; in pcap_open_live()
Dgencode.c357 static int snaplen; variable
380 snaplen = pcap_snapshot(p); in pcap_compile()
381 if (snaplen == 0) { in pcap_compile()
395 root = gen_retblk(snaplen); in pcap_compile()
501 backpatch(p, gen_retblk(snaplen));
/external/tcpdump/
Dtcpdump.c687 snaplen = strtol(optarg, &end, 0); in main()
689 || snaplen < 0 || snaplen > 65535) in main()
691 else if (snaplen == 0) in main()
692 snaplen = 65535; in main()
888 pd = pcap_open_live(device, snaplen, !pflag, 1000, ebuf); in main()
928 if (snaplen < i) { in main()
929 warning("snaplen raised from %d to %d", snaplen, i); in main()
930 snaplen = i; in main()
1044 device, dlt, snaplen); in main()
1048 pcap_datalink_val_to_description(dlt), snaplen); in main()
Dprint-cnfp.c116 snaplen -= 24; in cnfp_print()
119 snaplen -= 16; in cnfp_print()
Dinterface.h369 #define snaplen gndo->ndo_snaplen macro
Dprint-icmp.c582 snaplen = snapend - bp; in icmp_print()
/external/qemu/
Dtcpdump.c52 uint32_t snaplen; in pcap_write_header() member
63 h.snaplen = PCAP_SNAPLEN; in pcap_write_header()
Dnet.c1935 uint32_t snaplen; member
2006 hdr.snaplen = s->pcap_caplen; in net_dump_init()

12