XINU
Data Structures | Macros | Variables
udp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  udpentry
 

Macros

#define UDP_ANYIF   -2 /* Register an endpoint for any */
 
#define UDP_DHCP_CPORT   68 /* Port number for DHCP client */
 
#define UDP_DHCP_SPORT   67 /* Port number for DHCP server */
 
#define UDP_FREE   0 /* Entry is unused */
 
#define UDP_HDR_LEN   8 /* Bytes in a UDP header */
 
#define UDP_QSIZ   8 /* Packets enqueued per endpoint*/
 
#define UDP_RECV   2 /* Entry has a process waiting */
 
#define UDP_SLOTS   6 /* Number of open UDP endpoints */
 
#define UDP_USED   1 /* Entry is being used */
 

Variables

struct udpentry udptab []
 

Macro Definition Documentation

◆ UDP_ANYIF

#define UDP_ANYIF   -2 /* Register an endpoint for any */

Definition at line 15 of file udp.h.

◆ UDP_DHCP_CPORT

#define UDP_DHCP_CPORT   68 /* Port number for DHCP client */

Definition at line 6 of file udp.h.

Referenced by getlocalip().

◆ UDP_DHCP_SPORT

#define UDP_DHCP_SPORT   67 /* Port number for DHCP server */

Definition at line 7 of file udp.h.

Referenced by getlocalip().

◆ UDP_FREE

#define UDP_FREE   0 /* Entry is unused */

Definition at line 11 of file udp.h.

Referenced by udp_in(), udp_init(), udp_register(), udp_release(), udp_send(), udp_sendto(), and xsh_udpdump().

◆ UDP_HDR_LEN

#define UDP_HDR_LEN   8 /* Bytes in a UDP header */

Definition at line 18 of file udp.h.

Referenced by pdump(), pdumph(), udp_recv(), udp_recvaddr(), udp_send(), and udp_sendto().

◆ UDP_QSIZ

#define UDP_QSIZ   8 /* Packets enqueued per endpoint*/

Definition at line 4 of file udp.h.

Referenced by net_init(), udp_in(), udp_recv(), udp_recvaddr(), and udp_release().

◆ UDP_RECV

#define UDP_RECV   2 /* Entry has a process waiting */

Definition at line 13 of file udp.h.

Referenced by udp_in(), udp_recv(), and udp_recvaddr().

◆ UDP_SLOTS

#define UDP_SLOTS   6 /* Number of open UDP endpoints */

◆ UDP_USED

#define UDP_USED   1 /* Entry is being used */

Definition at line 12 of file udp.h.

Referenced by udp_in(), udp_recv(), udp_recvaddr(), and udp_register().

Variable Documentation

◆ udptab

struct udpentry udptab[]