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

/haiku-fatelf/src/bin/network/tcpdump/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-dag.c452 dag_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf) argument
566 /* set the card snap length to the specified snaplen parameter */
569 if (snaplen == 0 || snaplen > MAX_DAG_SNAPLEN) {
570 snaplen = MAX_DAG_SNAPLEN;
571 } else if (snaplen < MIN_DAG_SNAPLEN) {
572 snaplen = MIN_DAG_SNAPLEN;
575 snprintf(conf, 30, "varlen slen=%d", (snaplen + 3) & ~3);
623 handle->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.c731 sf_write_header(FILE *fp, int linktype, int thiszone, int snaplen) argument
740 hdr.snaplen = snaplen;
757 hp->snaplen = SWAPLONG(hp->snaplen);
923 p->snapshot = hdr.snaplen;
927 p->bufsize = hdr.snaplen;
930 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-win32.c393 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, argument
535 p->snapshot = snaplen;
590 p->snapshot = PacketSetSnapLen(p->adapter, snaplen);
H A Dpcap-bpf.c582 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, argument
602 return dag_open_live(device, snaplen, promisc, to_ms, ebuf);
622 p->snapshot = snaplen;
956 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.c752 pcap_open_dead(int linktype, int snaplen) argument
760 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.c346 static int snaplen; variable
368 snaplen = pcap_snapshot(p);
369 if (snaplen == 0) {
371 "snaplen of 0 rejects all packets");
383 root = gen_retblk(snaplen);
479 backpatch(p, gen_retblk(snaplen));
/haiku-fatelf/src/bin/network/tcpdump/
H A Dprint-cnfp.c116 snaplen -= 24;
119 snaplen -= 16;
H A Dtcpdump.c685 snaplen = strtol(optarg, &end, 0);
687 || snaplen < 0 || snaplen > 65535)
688 error("invalid snaplen %s", optarg);
689 else if (snaplen == 0)
690 snaplen = 65535;
886 pd = pcap_open_live(device, snaplen, !pflag, 1000, ebuf);
926 if (snaplen < i) {
927 warning("snaplen raised from %d to %d", snaplen,
[all...]
H A Dinterface.h364 #define snaplen gndo->ndo_snaplen macro
H A Dprint-icmp.c551 snaplen = snapend - bp;

Completed in 128 milliseconds