• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/tools/tools/netmap/

Lines Matching refs:packet

31  * Example program to show how to build a multithreaded packet
247 /* compact timestamp to fit into 60 byte packet. (enough to obtain RTT) */
268 int frags; /* fragments per packet */
763 /* Check the payload of the packet for errors (use it for debug).
764 * Look for consecutive ascii representations of the size of the packet.
773 /* get the length in ASCII of the length of the packet. */
794 * Fill a packet with some payload.
795 * We create a UDP packet so the payload starts at
1005 * initialize one packet and prepare for the next one.
1027 const unsigned char *packet;
1029 /* Read a packet from a PCAP file if asked. */
1035 if (pcap_next_ex(file, &header, &packet) < 0)
1036 D("failed to read packet from %s",
1040 bcopy(packet, (unsigned char *)targ->frame, header->caplen);
1098 /* Magic: taken from sbin/dhclient/packet.c */
1294 * Send a packet, and wait for a response.
1827 /* unbounded wait for the first packet. */
2071 * packet. */
2169 /* unbounded wait for the first packet. */
2270 RD(1, "%s: packet too small (len=%u)", __func__,
2347 if (size < 60) /* correct for min packet size */
2431 " Packet transmission rate. Not setting the packet transmission rate tells pkt-gen to transmit\n"
2436 " -X Dump payload of each packet transmitted or received.\n"
2442 " Load the packet to be transmitted from a pcap file rather than constructing it within\n"
2452 " Send multi-slot packets, each one with num_frags fragments. A multi-slot packet is repre-\n"
2458 " In multi-slot mode, frag_size specifies the size of each fragment, if smaller than the packet\n"
2474 " of CRC and 20 bytes of framing to each packet.\n"