
This commit adds a new TCP/IP service to MINIX 3. As its core, the service uses the lwIP TCP/IP stack for maintenance reasons. The service aims to be compatible with NetBSD userland, including its low-level network management utilities. It also aims to support modern features such as IPv6. In summary, the new LWIP service has support for the following main features: - TCP, UDP, RAW sockets with mostly standard BSD API semantics; - IPv6 support: host mode (complete) and router mode (partial); - most of the standard BSD API socket options (SO_); - all of the standard BSD API message flags (MSG_); - the most used protocol-specific socket and control options; - a default loopback interface and the ability to create one more; - configuration-free ethernet interfaces and driver tracking; - queuing and multiple concurrent requests to each ethernet driver; - standard ioctl(2)-based BSD interface management; - radix tree backed, destination-based routing; - routing sockets for standard BSD route reporting and management; - multicast traffic and multicast group membership tracking; - Berkeley Packet Filter (BPF) devices; - standard and custom sysctl(7) nodes for many internals; - a slab allocation based, hybrid static/dynamic memory pool model. Many of its modules come with fairly elaborate comments that cover many aspects of what is going on. The service is primarily a socket driver built on top of the libsockdriver library, but for BPF devices it is at the same time also a character driver. Change-Id: Ib0c02736234b21143915e5fcc0fda8fe408f046f
28 lines
1.0 KiB
C
28 lines
1.0 KiB
C
#ifndef MINIX_NET_LWIP_LLDATA_H
|
|
#define MINIX_NET_LWIP_LLDATA_H
|
|
|
|
struct rtsock_request;
|
|
|
|
typedef int lldata_arp_num_t; /* ARP table entry number */
|
|
typedef int lldata_ndp_num_t; /* NDP table entry number */
|
|
|
|
int lldata_arp_enum(lldata_arp_num_t * num);
|
|
void lldata_arp_get(lldata_arp_num_t num, struct sockaddr_in * addr,
|
|
struct sockaddr_dlx * gateway, struct ifdev ** ifdevp,
|
|
unsigned int * flagsp);
|
|
|
|
int lldata_ndp_find(struct ifdev * ifdev,
|
|
const struct sockaddr_in6 * addr, lldata_ndp_num_t * nump);
|
|
int lldata_ndp_enum(lldata_ndp_num_t * num);
|
|
void lldata_ndp_get(lldata_ndp_num_t num, struct sockaddr_in6 * addr,
|
|
struct sockaddr_dlx * gateway, struct ifdev ** ifdevp,
|
|
unsigned int * flagsp);
|
|
void lldata_ndp_get_info(lldata_ndp_num_t num, long * asked, int * isrouter,
|
|
int * state, int * expire);
|
|
|
|
int lldata_process(unsigned int type, const ip_addr_t * dst_addr,
|
|
const struct sockaddr * gateway, struct ifdev * ifdev,
|
|
unsigned int flags, const struct rtsock_request * rtr);
|
|
|
|
#endif /* !MINIX_NET_LWIP_LLDATA_H */
|