/external/libpcap/ |
D | pcap-enet.c | 80 caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap in readloop() 95 caplen = cc > snaplen ? snaplen : cc ; in readloop()
|
D | pcap-snit.c | 265 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()
|
D | pcap-snoop.c | 198 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()
|
D | pcap-nit.c | 250 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()
|
D | pcap-dag.c | 497 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()
|
D | savefile.c | 854 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()
|
D | pcap-pf.c | 296 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()
|
D | pcap-septel.h | 14 pcap_t *septel_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf);
|
D | pcap-dag.h | 13 pcap_t *dag_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf);
|
D | pcap-septel.c | 209 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()
|
D | pcap-null.c | 43 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, in pcap_open_live() argument
|
D | pcap-dos.c | 149 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()
|
D | pcap-bpf.c | 593 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()
|
D | pcap-win32.c | 393 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()
|
D | pcap-linux.c | 237 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()
|
D | pcap.h | 119 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ member
|
D | pcap.c | 756 pcap_open_dead(int linktype, int snaplen) in pcap_open_dead() argument 764 p->snapshot = snaplen; in pcap_open_dead()
|
D | pcap-dlpi.c | 460 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()
|
D | gencode.c | 357 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/ |
D | tcpdump.c | 687 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()
|
D | print-cnfp.c | 116 snaplen -= 24; in cnfp_print() 119 snaplen -= 16; in cnfp_print()
|
D | interface.h | 369 #define snaplen gndo->ndo_snaplen macro
|
D | print-icmp.c | 582 snaplen = snapend - bp; in icmp_print()
|
/external/qemu/ |
D | tcpdump.c | 52 uint32_t snaplen; in pcap_write_header() member 63 h.snaplen = PCAP_SNAPLEN; in pcap_write_header()
|
D | net.c | 1935 uint32_t snaplen; member 2006 hdr.snaplen = s->pcap_caplen; in net_dump_init()
|