Home
last modified time | relevance | path

Searched refs:packets (Results 1 – 25 of 253) sorted by relevance

1234567891011

/freebsd-12.1/share/examples/ipfilter/
H A Drules.txt3 # block all incoming TCP packets on le0 from host "foo" to any destination.
17 # block all inbound packets.
21 # pass through packets to and from localhost.
38 # block all outbound packets.
42 # allow any packets destined for localhost out.
60 # block all ICMP packets.
69 # allow packets coming from foo to bar through.
114 # log all inbound TCP packets with the SYN flag (only) set
145 # block any inbound UDP packets destined for these subnets.
158 # block any inbound ICMP packets destined for these subnets.
[all …]
H A Dexamples.txt18 [Image] Logging packets to network devices
20 Authenticating packets
21 Pre-authenticating packets
31 # setup default to block all packets.
81 # block all incoming ICMP packets
87 # allow all IP packets in which are protocol 4
245 on packets which have the ACK bit set. The ACK bit is only set in packets
291 # block all ICMP packets.
389 will follow the ack/sequence numbers of packets and only allow packets
471 Logging packets to the network
[all …]
H A Dexample.147 # block any inbound packets on le0 which are fragmented and "too short" to
9 # packets which can be missing the flags/ports (depending on which part
14 # log all inbound TCP packets with the SYN flag (only) set
25 # block and log any inbound UDP packets on le0 which are going to port 2049
30 # quickly allow any packets to/from a particular pair of hosts
45 # block any inbound UDP packets destined for these subnets.
51 # block any inbound TCP packets with only the SYN flag set that are
58 # block any inbound ICMP packets destined for these subnets.
/freebsd-12.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/
H A Dtst.system.d.out5 1 packets transmitted, 1 packets received, 0.0% packet loss
10 1 packets transmitted, 1 packets received, 0.0% packet loss
15 1 packets transmitted, 1 packets received, 0.0% packet loss
/freebsd-12.1/tools/tools/mctest/
H A Dmctest.cc158 timeval packets[number]; in sink() local
193 gettimeofday(&packets[ntohl(*(int *)packet)], 0); in sink()
202 cout << "sec: " << packets[i].tv_sec << " usec: " << in sink()
203 packets[i].tv_usec << endl; in sink()
205 timersub(&packets[i+1], &packets[i], &result); in sink()
357 char *packets[number]; in source() local
359 packets[i] = new char[pkt_size]; in source()
360 *(int *)packets[i] = htonl(i); in source()
370 args[i].packets = received[i]; in source()
384 if (sendto(sock, (void *)packets[i], pkt_size, 0, in source()
[all …]
/freebsd-12.1/sbin/pfctl/
H A Dpfctl_qstats.c344 (unsigned long long)cur.data.cbq_stats.xmit_cnt.packets,
346 (unsigned long long)cur.data.cbq_stats.drop_cnt.packets,
368 cur.data.codel_stats.stats.drop_cnt.packets,
387 (unsigned long long)cur.data.priq_stats.xmitcnt.packets,
389 (unsigned long long)cur.data.priq_stats.dropcnt.packets,
407 (unsigned long long)cur.data.hfsc_stats.xmit_cnt.packets,
472 p = qs->data.cbq_stats.xmit_cnt.packets;
476 p = qs->data.priq_stats.xmitcnt.packets;
480 p = qs->data.hfsc_stats.xmit_cnt.packets;
484 p = qs->data.fairq_stats.xmit_cnt.packets;
[all …]
H A Dpf_print_state.c314 u_int64_t packets[2]; in print_state() local
330 bcopy(s->packets[0], &packets[0], sizeof(u_int64_t)); in print_state()
331 bcopy(s->packets[1], &packets[1], sizeof(u_int64_t)); in print_state()
335 (uintmax_t )be64toh(packets[0]), in print_state()
336 (uintmax_t )be64toh(packets[1]), in print_state()
/freebsd-12.1/contrib/ipfilter/rules/
H A Dexample.sr6 # block any inbound packets on le0 which are fragmented and "too short" to
8 # packets which can be missing the flags/ports (depending on which part
13 # log all inbound TCP packets with the SYN flag (only) set
24 # block and log any inbound UDP packets on le0 which are going to port 2049
29 # quickly allow any packets to/from a particular pair of hosts
44 # block any inbound UDP packets destined for these subnets.
50 # block any inbound TCP packets with only the SYN flag set that are
57 # block any inbound ICMP packets destined for these subnets.
H A Dexample.54 # allow packets coming from foo to bar through.
8 # allow any TCP packets from the same subnet as foo is on through to host
13 # allow in UDP packets which are NOT from port 53 and are destined for
22 # allow packets through which have a non-standard IP header length (ie there
H A Dexample.32 # block all inbound packets.
6 # pass through packets to and from localhost.
23 # block all outbound packets.
27 # allow any packets destined for localhost out.
H A Dexample.132 # Log all short TCP packets to qe3, with 10.3.3.3 as the intended
11 # Route all UDP packets through transparently.
15 # Route all ICMP packets to network 10 out through le1, to 10.3.3.1
H A Dfirewall4 Step 1 - Block out "bad" IP packets.
9 a) blocks all packets which might belong to an IP Spoofing attack;
10 b) blocks all packets with IP options;
11 c) blocks all packets which have a length which is too short for
/freebsd-12.1/sys/netgraph/
H A Dng_source.c393 uint64_t packets; in ng_source_rcvmsg() local
400 packets = *(uint64_t *)msg->data; in ng_source_rcvmsg()
696 sc->packets = packets; in ng_source_start()
730 int packets; in ng_source_intr() local
744 packets = sc->snd_queue.ifq_len; in ng_source_intr()
757 if (packets > maxpkt) in ng_source_intr()
758 packets = maxpkt; in ng_source_intr()
761 ng_source_send(sc, packets, NULL); in ng_source_intr()
762 if (sc->packets == 0) in ng_source_intr()
784 tosend = sc->packets; in ng_source_send()
[all …]
/freebsd-12.1/contrib/netbsd-tests/kernel/
H A Dt_pty.c48 static size_t packets = 2; variable
79 for (i = 0; i < packets; i++) { in run()
254 if (total != buffer_size * packets) in child_spawn()
256 "Lost data %zu != %zu\n", total, buffer_size * packets); in child_spawn()
284 packets = (size_t)atoi(optarg); in parse_args()
302 if (packets < 1 || packets > 100) in parse_args()
/freebsd-12.1/usr.sbin/bsnmpd/modules/snmp_pf/
H A DBEGEMOT-PF-MIB.txt124 "Number of packets that matched a filter rule."
132 "Number of packets with bad offset."
140 "Number of fragmented packets."
148 "Number of short packets."
156 "Number of normalized packets."
164 "Number of packets dropped due to memory limitations."
351 "State if both hosts have sent packets."
393 "State if both hosts have sent packets."
1252 "Maximum number of packets in the queue."
1336 "The number of incoming packets matched by the rule."
[all …]
/freebsd-12.1/contrib/libpcap/
H A DREADME.linux1 In order for libpcap to be able to capture packets on a Linux system,
48 executed in the kernel, so that packets that don't pass the filter won't
49 be copied from the kernel to the program, rather than having all packets
52 Copying packets from the kernel to the program consumes a significant
54 capturing packets if a filter has been specified that discards a
55 significant number of packets. (If no filter is specified, it makes no
99 ps_recv Number of packets that were accepted by the pcap filter
104 ps_recv Number of packets that were accepted by the pcap filter
105 ps_drop Number of packets that had passed filtering but were not
107 This is useful because these are packets you are interested in
H A DREADME.tru6434 In order to capture all packets on a network, you may want to allow
36 mode, so that tcpdump can see packets sent by the host on which it's
37 running as well as packets received by that host, and to put the
38 interface into "promiscuous" mode, so that tcpdump can see packets on
/freebsd-12.1/crypto/openssh/regress/misc/kexfuzz/
H A DREADME3 To use it, you first set it to count packets in each direction:
29 Limitations: kexfuzz can't change the ordering of packets at
30 present. It is limited to replacing individual packets with
32 insertion, deletion on replacement of packets too.
/freebsd-12.1/contrib/ipfilter/
H A DREADME8 filtering to packets going in and out of them. This package has been
35 discriminate between packets as they are on the 'wire', before they
39 generating tiny fragmented IP packets to generate a TCP packet which
41 on these types of packets is possible, but under the more general case
42 of the packets being "short". ICMP and UDP packets which are too small
44 asked. When filtering on fragmented packets, the last fragment will get
45 through for TCP/UDP/ICMP packets.
71 on all packets.
/freebsd-12.1/contrib/libxo/tests/core/saved/
H A Dtest_02.T.out21 1010 packets here/there/everywhere
22 1010 packets here/there/everywhere
35 V1/V2 packets: 10
/freebsd-12.1/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_port.c156 u64 packets, bytes; in mlx4_en_fold_software_stats() local
162 packets = 0; in mlx4_en_fold_software_stats()
167 packets += READ_ONCE(ring->packets); in mlx4_en_fold_software_stats()
170 priv->pkstats.rx_packets = packets; in mlx4_en_fold_software_stats()
173 packets = 0; in mlx4_en_fold_software_stats()
178 packets += READ_ONCE(ring->packets); in mlx4_en_fold_software_stats()
181 priv->pkstats.tx_packets = packets; in mlx4_en_fold_software_stats()
451 priv->pkstats.rx_packets += priv->rx_ring[i]->packets; in mlx4_en_get_vport_stats()
465 priv->pkstats.tx_packets += ring->packets; in mlx4_en_get_vport_stats()
/freebsd-12.1/sys/dev/mlx5/mlx5_core/
H A Dmlx5_vport.c1629 vc->received_errors.packets = in mlx5_get_vport_counters()
1631 out, received_errors.packets); in mlx5_get_vport_counters()
1635 vc->transmit_errors.packets = in mlx5_get_vport_counters()
1637 out, transmit_errors.packets); in mlx5_get_vport_counters()
1641 vc->received_ib_unicast.packets = in mlx5_get_vport_counters()
1647 vc->transmitted_ib_unicast.packets = in mlx5_get_vport_counters()
1653 vc->received_ib_multicast.packets = in mlx5_get_vport_counters()
1665 vc->received_eth_broadcast.packets = in mlx5_get_vport_counters()
1680 vc->received_eth_unicast.packets = in mlx5_get_vport_counters()
1686 vc->transmitted_eth_unicast.packets = in mlx5_get_vport_counters()
[all …]
/freebsd-12.1/usr.sbin/flowctl/
H A Dflowctl.c296 fle->packets); in flow_cache_print()
330 fle6->packets); in flow_cache_print6()
364 fle->packets, in flow_cache_print_verbose()
372 (u_int)(fle->bytes / fle->packets), in flow_cache_print_verbose()
407 fle6->packets, in flow_cache_print6_verbose()
415 (u_int)(fle6->bytes / fle6->packets), in flow_cache_print6_verbose()
/freebsd-12.1/sys/compat/linuxkpi/common/include/linux/
H A Dnet_dim.h340 u64 packets, in net_dim_sample() argument
345 s->pkt_ctr = packets; in net_dim_sample()
375 u64 packets, u64 bytes) in net_dim() argument
390 net_dim_sample(dim->event_ctr, packets, bytes, &end_sample); in net_dim()
400 net_dim_sample(dim->event_ctr, packets, bytes, &dim->start_sample); in net_dim()
/freebsd-12.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/
H A Dtst.ipv6localicmp.ksh.out4 1 packets transmitted, 1 packets received, 0.0% packet loss

1234567891011