Searched refs:snaplen (Results 1 - 25 of 26) sorted by relevance

12

/external/libpcap/
H A Dpcap-septel.h14 pcap_t *septel_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf);
H A Dpcap-dag.h13 pcap_t *dag_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf);
H A Dpcap-null.c43 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, argument
H A Dpcap-enet.c80 caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap
95 caplen = cc > snaplen ? snaplen : cc ;
H A Dpcap-snit.c265 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, argument
281 if (snaplen < 96)
285 snaplen = 96;
347 si.ic_len = sizeof(snaplen);
348 si.ic_dp = (char *)&snaplen;
354 p->snapshot = snaplen;
H A Dpcap-nit.c250 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, argument
263 if (snaplen < 96)
267 snaplen = 96;
284 p->snapshot = snaplen;
H A Dpcap-snoop.c198 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, argument
341 if (snaplen > ifr.ifr_mtu + ll_hdrlen)
342 snaplen = ifr.ifr_mtu + ll_hdrlen;
350 snooplen = snaplen - ll_hdrlen;
358 p->snapshot = snaplen;
H A Dpcap-septel.c209 pcap_t *septel_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf) { argument
222 handle->snapshot = snaplen;
H A Dsavefile.c854 sf_write_header(FILE *fp, int linktype, int thiszone, int snaplen) argument
863 hdr.snaplen = snaplen;
880 hp->snaplen = SWAPLONG(hp->snaplen);
1046 p->snapshot = hdr.snaplen;
1072 p->bufsize = hdr.snaplen;
1075 p->bufsize = hdr.snaplen+sizeof(struct pcap_pkthdr);
H A Dpcap-pf.c296 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, argument
454 snaplen += PCAP_FDDIPAD;
458 if (ioctl(p->fd, EIOCTRUNCATE, (caddr_t)&snaplen) < 0) {
463 p->snapshot = snaplen;
H A Dpcap-dag.c491 * snaplen is now also ignored, until we get per-stream slen support. Set
497 dag_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf) argument
611 /* set the card snap length to the specified snaplen parameter */
614 if (snaplen == 0 || snaplen > MAX_DAG_SNAPLEN) {
615 snaplen = MAX_DAG_SNAPLEN;
616 } else if (snaplen < MIN_DAG_SNAPLEN) {
617 snaplen = MIN_DAG_SNAPLEN;
620 snprintf(conf, 30, "varlen slen=%d", (snaplen + 3) & ~3);
668 handle->snapshot = snaplen;
[all...]
H A Dpcap-win32.c393 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, argument
554 p->snapshot = snaplen;
609 p->snapshot = PacketSetSnapLen(p->adapter, snaplen);
H A Dpcap-bpf.c593 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, argument
613 return dag_open_live(device, snaplen, promisc, to_ms, ebuf);
633 p->snapshot = snaplen;
967 total_insn.k = snaplen;
H A Dpcap.h119 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ member in struct:pcap_file_header
H A Dpcap-dos.c149 pcap_t *pcap_open_live (const char *device_name, int snaplen, int promisc, argument
154 if (snaplen < ETH_MIN)
155 snaplen = ETH_MIN;
157 if (snaplen > ETH_MAX) /* silently accept and truncate large MTUs */
158 snaplen = ETH_MAX;
167 pcap->snapshot = max (ETH_MIN+8, snaplen);
H A Dpcap-linux.c237 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, argument
248 return dag_open_live(device, snaplen, promisc, to_ms, ebuf);
254 return septel_open_live(device, snaplen, promisc, to_ms, ebuf);
270 handle->snapshot = snaplen;
650 * cuts the packet at the snaplen:
H A Dpcap.c756 pcap_open_dead(int linktype, int snaplen) argument
764 p->snapshot = snaplen;
H A Dpcap-dlpi.c460 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, argument
618 p->snapshot = snaplen;
867 ** less than snaplen size it strips data from the beginning not
873 ss = snaplen;
879 "WARNING: bufmod is broken in SunOS %s; ignoring snaplen.\n",
H A Dgencode.c357 static int snaplen; variable
380 snaplen = pcap_snapshot(p);
381 if (snaplen == 0) {
383 "snaplen of 0 rejects all packets");
395 root = gen_retblk(snaplen);
501 backpatch(p, gen_retblk(snaplen));
/external/qemu/
H A Dtcpdump.c52 uint32_t snaplen; member in struct:__anon4068
63 h.snaplen = PCAP_SNAPLEN;
H A Dnet-android.c1997 uint32_t snaplen; member in struct:pcap_file_hdr
2068 hdr.snaplen = s->pcap_caplen;
/external/tcpdump/
H A Dprint-cnfp.c116 snaplen -= 24;
119 snaplen -= 16;
H A Dtcpdump.c687 snaplen = strtol(optarg, &end, 0);
689 || snaplen < 0 || snaplen > 65535)
690 error("invalid snaplen %s", optarg);
691 else if (snaplen == 0)
692 snaplen = 65535;
888 pd = pcap_open_live(device, snaplen, !pflag, 1000, ebuf);
928 if (snaplen < i) {
929 warning("snaplen raised from %d to %d", snaplen,
[all...]
H A Dinterface.h369 #define snaplen gndo->ndo_snaplen macro
H A Dprint-icmp.c582 snaplen = snapend - bp;

Completed in 347 milliseconds

12