/freebsd/contrib/libpcap/ |
H A D | pcap-savefile.manfile.in | 20 .TH PCAP-SAVEFILE @MAN_FILE_FORMATS@ "16 Aug 2023" 22 pcap-savefile \- libpcap savefile format 33 start with a per-file header. The format of the per-file header is: 40 Magic number 50 Link-layer header type and additional information 54 The per-file header length is 24 octets. 56 All fields in the per-file header are in the byte order of the host 57 writing the file. Normally, the first field in the per-file header is a 58 4-byte magic number, with the value 0xa1b2c3d4. The magic number, when 65 values in the per-file and per-packet headers need to be byte-swapped. [all …]
|
H A D | sf-pcap.c | 21 * sf-pcap.c - libpcap-file-format-specific code from savefile.c 25 * Used to save the received packet headers, after filtering, to 33 #include <pcap-types.h> 46 #include "pcap-int.h" 47 #include "pcap-util.h" 49 #include "pcap-common.h" 52 #include "os-proto.h" 55 #include "sf-pcap.h" 75 * byte-swap some host-byte-order metadata. 105 * `struct timeval'; `struct timeval' has 32-bit tv_sec values on some [all …]
|
H A D | savefile.c | 21 * savefile.c - supports offline use of tcpdump 25 * Used to save the received packet headers, after filtering, to 33 #include <pcap-types.h> 46 #include "pcap-int.h" 49 #include "os-proto.h" 52 #include "sf-pcap.h" 53 #include "sf-pcapng.h" 54 #include "pcap-common.h" 67 * a HANDLE (which is OS-defined, not CRT-defined, and is part of the Win32 91 * it's in non-blocking mode. in sf_getnonblock() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | lqr.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 5 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 67 u_int32_t magic; member 77 struct hdlc *hdlc = &link2physical(lcp->fsm.link)->hdlc; in SendEchoReq() 80 echo.magic = htonl(lcp->want_magic); in SendEchoReq() 82 echo.sequence = htonl(hdlc->lqm.echo.seq_sent); in SendEchoReq() 83 fsm_Output(&lcp->fsm, CODE_ECHOREQ, hdlc->lqm.echo.seq_sent++, in SendEchoReq() 90 struct hdlc *hdlc = &link2physical(fp->link)->hdlc; in lqr_RecvEcho() [all …]
|
H A D | lcp.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 5 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 47 #define REJECTED(p, x) ((p)->his_reject & (1<<(x))) 51 u_int16_t his_mru; /* Peers maximum packet size */ 52 u_int16_t his_mrru; /* Peers maximum reassembled packet size (MP) */ 54 u_int32_t his_magic; /* Peers magic number */ 64 u_short want_mru; /* Our maximum packet size */ 65 u_short want_mrru; /* Our maximum reassembled packet size (MP) */ [all …]
|
/freebsd/contrib/unbound/libunbound/ |
H A D | unbound-event.h | 2 * unbound-event.h - unbound validating resolver public API with events 77 /** magic number to identify this version of the pluggable event api */ 112 * The magic number must be correct and the Virtual Method Table must be 116 /** magic must be UB_EVENT_MAGIC (0x44d74d78) */ 117 unsigned long magic; member 163 * The magic number must be correct and the Virtual Method Table must be 167 /** magic must be UB_EVENT_MAGIC (0x44d74d78) */ 168 unsigned long magic; member 232 * void callback(void* mydata, int rcode, void* packet, int packet_len, 237 * with packet: a buffer with DNS wireformat packet with the answer. [all …]
|
/freebsd/sys/dev/le/ |
H A D | lancereg.h | 3 /*- 4 * SPDX-License-Identifier: BSD-2-Clause 34 /*- 70 * - Am7990 Local Area Network Controller for Ethernet (LANCE) 71 * (and its descendent Am79c90 C-LANCE). 73 * - Am79c900 Integrated Local Area Communications Controller (ILACC) 75 * - Am79c960 PCnet-ISA Single-Chip Ethernet Controller for ISA 77 * - Am79c961 PCnet-ISA+ Jumperless Single-Chip Ethernet Controller 80 * - Am79c961A PCnet-ISA II Jumperless Full-Duplex Single-Chip 83 * - Am79c965A PCnet-32 Single-Chip 32-bit Ethernet Controller [all …]
|
/freebsd/libexec/bootpd/ |
H A D | bootp.h | 27 * This file specifies the "implementation-independent" BOOTP protocol 39 /* Overhead to fit a bootp message into an Ethernet packet. */ 43 unsigned char bp_op; /* packet opcode type */ 57 unsigned char bp_vend[BP_VEND_LEN]; /* vendor-specific area */ 58 /* note that bp_vend can be longer, extending to end of packet. */ 82 * Vendor magic cookie (v_magic) for CMU 87 * Vendor magic cookie (v_magic) for RFC1048 95 * the vendor (options) data area of the packet. 127 /* XXX - Add new tags here */ 135 char v_magic[4]; /* magic number */ [all …]
|
/freebsd/stand/i386/mbr/ |
H A D | mbr.S | 21 .set MAGIC,0xaa55 # Magic: bootable define 42 movw $main-EXEC+LOAD,%si # Source 44 movw $0x200-(main-start),%cx # Byte count 50 jmp main-LOAD+EXEC # To relocated code 94 movw $0x55aa,%bx # Magic 98 cmpw $0xaa55,%bx # Magic ok? 100 testb $0x1,%cl # Packet mode present? 108 pushw $0x10 # Packet length 122 cmpw $MAGIC,0x1fe(%bx) # Bootable? 151 .org PT_OFF-1,0x90 [all …]
|
/freebsd/sbin/ipf/ipfsync/ |
H A D | ipfsyncd.c | 30 #define R_IO_ERROR -1 55 int igmpfd = -1; 56 int nfd = -1; 57 int lfd = -1; 65 "Usage: %s [-d] [-p port] [-i address] -I <interface>\n", 106 while ((opt = getopt(argc, argv, "di:I:p:")) != -1) 140 case -1 : 167 if (lfd != -1) { 169 lfd = -1; 171 if (nfd != -1) { [all …]
|
/freebsd/tests/sys/netpfil/common/ |
H A D | pft_ping.py | 3 # SPDX-License-Identifier: BSD-2-Clause 107 for packet in sp.fragment6(ip6 / icmp, fragSize=send_frag_length): 108 packets.append(ether / packet) 114 icmp = sp.ICMP(type='echo-request') 117 for packet in sp.fragment(ip / icmp / raw, fragsize=send_frag_length): 118 packets.append(ether / packet) 121 for packet in packets: 122 sp.sendp(packet, iface=send_params['sendif'], verbose=False) 158 for packet in sp.fragment6(ip6 / udp / raw, fragSize=send_frag_length): 159 packets.append(ether / packet) [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/net/ |
H A D | fsl-tsec-phy.txt | 5 the definition of the PHY node in booting-without-of.txt for an example 9 - reg : Offset and length of the register set for the device, and optionally 14 - compatible : Should define the compatible device type for the 16 - "fsl,gianfar-tbi" 17 - "fsl,gianfar-mdio" 18 - "fsl,etsec2-tbi" 19 - "fsl,etsec2-mdio" 20 - "fsl,ucc-mdio" 21 - "fsl,fman-mdio" 23 - "gianfar" [all …]
|
H A D | macb.txt | 4 - compatible: Should be "cdns,[<chip>-]{macb|gem}" 5 Use "cdns,at91rm9200-emac" Atmel at91rm9200 SoC. 6 Use "cdns,at91sam9260-macb" for Atmel at91sam9 SoCs. 7 Use "cdns,sam9x60-macb" for Microchip sam9x60 SoC. 8 Use "cdns,np4-macb" for NP4 SoC devices. 9 Use "cdns,at32ap7000-macb" for other 10/100 usage or use the generic form: "cdns,macb". 10 Use "atmel,sama5d2-gem" for the GEM IP (10/100) available on Atmel sama5d2 SoCs. 11 Use "atmel,sama5d29-gem" for GEM XL IP (10/100) available on Atmel sama5d29 SoCs. 12 Use "atmel,sama5d3-macb" for the 10/100Mbit IP available on Atmel sama5d3 SoCs. 13 Use "atmel,sama5d3-gem" for the Gigabit IP available on Atmel sama5d3 SoCs. [all …]
|
H A D | cdns,macb.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Nicolas Ferre <nicolas.ferre@microchip.com> 11 - Claudiu Beznea <claudiu.beznea@microchip.com> 16 - items: 17 - enum: 18 - cdns,at91rm9200-emac # Atmel at91rm9200 SoC 19 - const: cdns,emac # Generic 21 - items: [all …]
|
H A D | fsl-fec.txt | 4 - compatible : Should be "fsl,<soc>-fec" 5 - reg : Address and length of the register set for the device 6 - interrupts : Should contain fec interrupt 7 - phy-mode : See ethernet.txt file in the same directory 10 - phy-supply : regulator that powers the Ethernet PHY. 11 - phy-handle : phandle to the PHY device connected to this device. 12 - fixed-link : Assume a fixed link. See fixed-link.txt in the same directory. 13 Use instead of phy-handle. 14 - fsl,num-tx-queues : The property is valid for enet-avb IP, which supports 17 - fsl,num-rx-queues : The property is valid for enet-avb IP, which supports [all …]
|
/freebsd/tools/tools/netmap/ |
H A D | nmreplay.c | 40 * includes a timestamp that determines when the packet should be sent out. 49 * --- Main functions of the program --- 56 * After reading a packet from the pcap file, the following information 59 * q->cur_pkt points to the buffer containing the packet 60 * q->cur_len packet length, excluding CRC 61 * q->cur_caplen available packet length (may be shorter than cur_len) 62 * q->cur_tt transmission time for the packet, computed from the trace. 66 * q->c_loss (set with the -L command line option) decides 67 * whether the packet should be dropped before even queuing. 69 * The function is supposed to set q->c_drop = 1 if the [all …]
|
/freebsd/libexec/bootpd/tools/bootptest/ |
H A D | bootptest.c | 2 * bootptest.c - Test out a bootp server. 6 * The packet printing routine is from the Berkeley "tcpdump" 7 * program with some enhancements I added. The print-bootp.c 16 * (See the copyright notice in print-bootp.c) 27 * 12/02/93 Released version 1.4 (with bootp-2.3.2) 37 char *usage = "bootptest [-h] server-name [vendor-data-template-file]"; 101 struct sockaddr_in sin_from; /* Packet source */ 109 char *sndbuf; /* Send packet buffer */ 110 char *rcvbuf; /* Receive packet buffer */ 116 * Vendor magic cookies for CMU and RFC1048 [all …]
|
/freebsd/stand/libsa/ |
H A D | bootp.h | 6 * This file specifies the "implementation-independent" BOOTP protocol 27 unsigned char bp_op; /* packet opcode type */ 46 unsigned char bp_vend[BOOTP_VENDSIZE]; /* vendor-specific area */ 60 * Vendor magic cookie (v_magic) for CMU 65 * Vendor magic cookie (v_magic) for RFC1048 73 * the vendor field of the packet. 129 unsigned char v_magic[4]; /* magic number */ 134 struct in_addr v_ins1, v_ins2; /* IEN-116 name servers */
|
/freebsd/stand/i386/boot0/ |
H A D | boot0.S | 38 * Note - this code uses many tricks to save space and fit in one sector. 54 * The area at offset 0x1b2 contains a magic string ('Drive '), also 59 * (called 'packet') or CHS mode, whether to force a drive number, 63 * made of four 16-byte entries each containing: 120 * MAGIC is the signature of a boot block. 128 .set B0_OFF,(B0_BASE-0x200) # Offset of boot0 data 130 .set MAGIC,0xaa55 # Magic: bootable define 151 .set USEPACKET, 0x80 # the 'packet' flag 154 .set _TICKS, (PRT_OFF - 0x200 - 2) # Timeout ticks 157 .set TLEN, (desc_ofs - bootable_ids) # size of bootable ids [all …]
|
/freebsd/stand/i386/boot2/ |
H A D | boot1.S | 32 .set FL_PACKET,0x80 # Packet mode 84 * %cx:%ax - long - LBA to read in 85 * %es:(%bx) - caddr_t - buffer to read data into 86 * %dl - byte - drive to read from 87 * %dh - byte - num sectors to read 93 * Setup an EDD disk packet and pass it to read 104 push $0x10 # Size of packet 105 mov %sp,%bp # Packet pointer 140 * FreeBSD slice. The second pass looks for the first non-active FreeBSD 193 mov $MEM_BTX+(NSECT-1)*SIZ_SEC,%cx # Byte [all …]
|
/freebsd/sys/dev/sume/ |
H A D | if_sume.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 8 * Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-11-C-0249 83 * Depending on the channel (0 if packet transaction, 1 if register transaction) 88 * (1) SUME received a packet on one of the interfaces. 89 * (2) SUME generates an interrupt vector, bit 00001 is set (channel 0 - new RX 91 * (3) We read the length of the incoming packet and the offset along with the 95 * - First 3*sizeof(uint32_t) bytes are: lower and upper 32 bits of physical 98 * - Data will start right after, at buf_addr+3*sizeof(uint32_t). The 106 * (6) SUME generates an interrupt vector, bit 00010 is set (channel 0 - [all …]
|
H A D | adapter.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 8 * Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-11-C-0249 43 #define SUME_LOCK(adapter) mtx_lock(&adapter->lock); 44 #define SUME_UNLOCK(adapter) mtx_unlock(&adapter->lock); 104 /* Module register data (packet counters, link status...) */ 124 #define SUME_INIT_RTAG -3 126 #define SUME_MIN_PKT_SIZE (ETHER_MIN_LEN - ETHER_CRC_LEN) 152 bus_addr_t buf_hw_addr; /* -- " -- mapped. */ 201 * sport - not used for RX. For TX, set to 0x02, 0x08, 0x20, 0x80, depending on [all …]
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | sereal | 2 #------------------------------------------------------------------------------ 4 # sereal: file(1) magic the Sereal binary serialization format 9 # https://github.com/Sereal/Sereal/blob/master/sereal_spec.pod#document-header-format 14 # we'll print out e.g. 0x30 instead of the more human-readable 22 >4 byte&0xF0 0x10 compressed with non-incremental Snappy) 26 0 string/b \=srl Sereal data packet 29 0 string/b \=\xF3rl Sereal data packet 32 0 string/b \=\xC3\xB3rl Sereal data packet, UTF-8 encoded
|
/freebsd/share/man/man4/ |
H A D | rl.4 | 15 .\" 4. Neither the name of the author nor the names of any co-contributors 41 .Bd -ragged -offset indent 49 .Bd -literal -offset indent 60 descriptor-based data transfer mechanism. 64 For transmission, there are only four outbound packet 67 Furthermore, outbound packet buffers must 85 .Bl -tag -width xxxxxxxxxxxxxxxxxxxx 100 .Ar full-duplex 102 .Ar half-duplex 109 .Ar full-duplex [all …]
|
/freebsd/stand/i386/zfsboot/ |
H A D | zfsldr.S | 60 * second pass looks for the first non-active FreeBSD slice if the 130 mov $(MEM_USR+2*SIZ_PAG)/16,%ax # Set %es:(-1) to point at 139 mov $COPY_BLK_SZ-1,%di # Adjust %es:%di to point at 154 * Use the zero-valued %cx as a timeout for embedded hardware which do not 172 jmp start+MEM_JMP-MEM_ORG # Start BTX 176 * Read a sector from the disk. Sets up an EDD packet on the stack 178 * always segment-aligned. 180 * %eax - int - LBA to read in relative to partition start 181 * %ebx - ptr - destination address 182 * %dl - byte - drive to read from [all …]
|