forked from Imagelibrary/rtems
Make self-contained.
This commit is contained in:
@@ -44,6 +44,8 @@
|
|||||||
#ifndef _NET_BPF_H_
|
#ifndef _NET_BPF_H_
|
||||||
#define _NET_BPF_H_
|
#define _NET_BPF_H_
|
||||||
|
|
||||||
|
#include <sys/time.h> /* struct timeval */
|
||||||
|
|
||||||
/* BSD style release date */
|
/* BSD style release date */
|
||||||
#define BPF_RELEASE 199606
|
#define BPF_RELEASE 199606
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,7 @@
|
|||||||
#define __BSD_VISIBLE 1
|
#define __BSD_VISIBLE 1
|
||||||
#endif
|
#endif
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <sys/socket.h> /* struct sockaddr */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _KERNEL
|
#ifdef _KERNEL
|
||||||
|
|||||||
@@ -26,6 +26,9 @@
|
|||||||
#ifndef _IF_PPP_H_
|
#ifndef _IF_PPP_H_
|
||||||
#define _IF_PPP_H_
|
#define _IF_PPP_H_
|
||||||
|
|
||||||
|
#include <net/ppp_defs.h> /* NPmode */
|
||||||
|
#include <net/if.h> /* IFNAMSIZ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Packet sizes
|
* Packet sizes
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -42,17 +42,23 @@
|
|||||||
* $FreeBSD: src/sys/net/if_pppvar.h,v 1.26 2006/12/05 18:54:21 ume Exp $
|
* $FreeBSD: src/sys/net/if_pppvar.h,v 1.26 2006/12/05 18:54:21 ume Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef _NET_IF_PPPVAR_H_
|
#ifndef _NET_IF_PPPVAR_H_
|
||||||
#define _NET_IF_PPPVAR_H_
|
#define _NET_IF_PPPVAR_H_
|
||||||
|
|
||||||
|
#include <net/if_var.h> /* struct ifnet */
|
||||||
|
#include <net/ppp_defs.h> /* struct pppstat */
|
||||||
|
#include <rtems/rtems/types.h> /* rtems_id */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
struct proc;
|
||||||
* $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Supported network protocols. These values are used for
|
* Supported network protocols. These values are used for
|
||||||
* indexing sc_npmode.
|
* indexing sc_npmode.
|
||||||
|
|||||||
@@ -37,6 +37,9 @@
|
|||||||
#ifndef _NET_IF_VAR_H_
|
#ifndef _NET_IF_VAR_H_
|
||||||
#define _NET_IF_VAR_H_
|
#define _NET_IF_VAR_H_
|
||||||
|
|
||||||
|
#include <net/if.h> /* struct if_data */
|
||||||
|
#include <sys/ioccom.h> /* ioctl_command_t */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Structures defining a network interface, providing a packet
|
* Structures defining a network interface, providing a packet
|
||||||
* transport mechanism (ala level 0 of the PUP protocols).
|
* transport mechanism (ala level 0 of the PUP protocols).
|
||||||
|
|||||||
@@ -37,6 +37,8 @@
|
|||||||
#ifndef _NET_RAW_CB_H_
|
#ifndef _NET_RAW_CB_H_
|
||||||
#define _NET_RAW_CB_H_
|
#define _NET_RAW_CB_H_
|
||||||
|
|
||||||
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#include <sys/queue.h>
|
#include <sys/queue.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -36,6 +36,10 @@
|
|||||||
#ifndef _NET_SLCOMPRESS_H_
|
#ifndef _NET_SLCOMPRESS_H_
|
||||||
#define _NET_SLCOMPRESS_H_
|
#define _NET_SLCOMPRESS_H_
|
||||||
|
|
||||||
|
#include <netinet/ip.h> /* struct ip */
|
||||||
|
|
||||||
|
struct mbuf;
|
||||||
|
|
||||||
#define MAX_STATES 16 /* must be > 2 and < 256 */
|
#define MAX_STATES 16 /* must be > 2 and < 256 */
|
||||||
#define MAX_HDR 128
|
#define MAX_HDR 128
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,8 @@
|
|||||||
#ifndef _NETINET_ICMP_VAR_H_
|
#ifndef _NETINET_ICMP_VAR_H_
|
||||||
#define _NETINET_ICMP_VAR_H_
|
#define _NETINET_ICMP_VAR_H_
|
||||||
|
|
||||||
|
#include <netinet/ip_icmp.h> /* ICMP_MAXTYPE */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Variables related to this implementation
|
* Variables related to this implementation
|
||||||
* of the internet control message protocol.
|
* of the internet control message protocol.
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
#ifndef _NETINET_IF_ETHER_H_
|
#ifndef _NETINET_IF_ETHER_H_
|
||||||
#define _NETINET_IF_ETHER_H_
|
#define _NETINET_IF_ETHER_H_
|
||||||
|
|
||||||
|
#include <netinet/in.h> /* struct in_addr */
|
||||||
#include <net/ethernet.h>
|
#include <net/ethernet.h>
|
||||||
#include <net/if_arp.h>
|
#include <net/if_arp.h>
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,8 @@
|
|||||||
#ifndef _NETINET_IGMP_H_
|
#ifndef _NETINET_IGMP_H_
|
||||||
#define _NETINET_IGMP_H_
|
#define _NETINET_IGMP_H_
|
||||||
|
|
||||||
|
#include <netinet/in.h> /* struct in_addr */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Internet Group Management Protocol (IGMP) definitions.
|
* Internet Group Management Protocol (IGMP) definitions.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -38,6 +38,8 @@
|
|||||||
#define _NETINET_IN_PCB_H_
|
#define _NETINET_IN_PCB_H_
|
||||||
|
|
||||||
#include <sys/queue.h>
|
#include <sys/queue.h>
|
||||||
|
#include <netinet/in.h> /* struct in_addr */
|
||||||
|
#include <net/route.h> /* struct route */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Common structure pcb for internet protocol implementation.
|
* Common structure pcb for internet protocol implementation.
|
||||||
|
|||||||
@@ -35,6 +35,9 @@
|
|||||||
#define _NETINET_IN_VAR_H_
|
#define _NETINET_IN_VAR_H_
|
||||||
|
|
||||||
#include <sys/queue.h>
|
#include <sys/queue.h>
|
||||||
|
#include <net/if_var.h> /* struct ifaddr */
|
||||||
|
#include <netinet/in.h> /* struct in_addr */
|
||||||
|
|
||||||
#if !defined(__rtems__)
|
#if !defined(__rtems__)
|
||||||
#include <sys/fnv_hash.h>
|
#include <sys/fnv_hash.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -38,6 +38,8 @@
|
|||||||
#define _NETINET_IP_H_
|
#define _NETINET_IP_H_
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
#include <netinet/in.h> /* struct in_addr */
|
||||||
|
#include <netinet/in_systm.h> /* n_long */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Definitions for internet protocol version 4.
|
* Definitions for internet protocol version 4.
|
||||||
|
|||||||
@@ -17,7 +17,9 @@
|
|||||||
#ifndef _IP_FW_H
|
#ifndef _IP_FW_H
|
||||||
#define _IP_FW_H
|
#define _IP_FW_H
|
||||||
|
|
||||||
|
#include <sys/queue.h> /* LIST_ENTRY */
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
|
#include <netinet/in.h> /* struct in_addr */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This union structure identifies an interface, either explicitly
|
* This union structure identifies an interface, either explicitly
|
||||||
|
|||||||
@@ -37,6 +37,9 @@
|
|||||||
#ifndef _NETINET_IP_ICMP_H_
|
#ifndef _NETINET_IP_ICMP_H_
|
||||||
#define _NETINET_IP_ICMP_H_
|
#define _NETINET_IP_ICMP_H_
|
||||||
|
|
||||||
|
#include <netinet/in.h> /* struct in_addr */
|
||||||
|
#include <netinet/ip.h> /* struct ip */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Interface Control Message Protocol Definitions.
|
* Interface Control Message Protocol Definitions.
|
||||||
* Per RFC 792, September 1981.
|
* Per RFC 792, September 1981.
|
||||||
|
|||||||
@@ -41,6 +41,9 @@
|
|||||||
#ifndef _NETINET_IP_MROUTE_H_
|
#ifndef _NETINET_IP_MROUTE_H_
|
||||||
#define _NETINET_IP_MROUTE_H_
|
#define _NETINET_IP_MROUTE_H_
|
||||||
|
|
||||||
|
#include <netinet/in.h> /* struct in_addr */
|
||||||
|
#include <net/route.h> /* struct route */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Definitions for IP multicast forwarding.
|
* Definitions for IP multicast forwarding.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -37,6 +37,8 @@
|
|||||||
#ifndef _NETINET_IP_VAR_H_
|
#ifndef _NETINET_IP_VAR_H_
|
||||||
#define _NETINET_IP_VAR_H_
|
#define _NETINET_IP_VAR_H_
|
||||||
|
|
||||||
|
#include <netinet/in.h> /* struct in_addr */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Overlay for ip header used by other protocols (tcp, udp).
|
* Overlay for ip header used by other protocols (tcp, udp).
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
|
#include <machine/endian.h> /* BYTE_ORDER */
|
||||||
|
|
||||||
typedef u_int32_t tcp_seq;
|
typedef u_int32_t tcp_seq;
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,9 @@
|
|||||||
#ifndef _NETINET_TCP_DEBUG_H_
|
#ifndef _NETINET_TCP_DEBUG_H_
|
||||||
#define _NETINET_TCP_DEBUG_H_
|
#define _NETINET_TCP_DEBUG_H_
|
||||||
|
|
||||||
|
#include <netinet/tcpip.h> /* struct tcpiphdr */
|
||||||
|
#include <netinet/tcp_var.h> /* struct tcpcb */
|
||||||
|
|
||||||
struct tcp_debug {
|
struct tcp_debug {
|
||||||
uint32_t td_time; /* network format */
|
uint32_t td_time; /* network format */
|
||||||
short td_act;
|
short td_act;
|
||||||
|
|||||||
@@ -37,6 +37,10 @@
|
|||||||
#ifndef _NETINET_TCPIP_H_
|
#ifndef _NETINET_TCPIP_H_
|
||||||
#define _NETINET_TCPIP_H_
|
#define _NETINET_TCPIP_H_
|
||||||
|
|
||||||
|
#ifdef __BSD_VISIBLE
|
||||||
|
#include <netinet/tcp.h> /* struct tcphdr */
|
||||||
|
#include <netinet/ip_var.h> /* struct ipovly */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Tcp+ip header, after ip options removed.
|
* Tcp+ip header, after ip options removed.
|
||||||
*/
|
*/
|
||||||
@@ -61,5 +65,6 @@ struct tcpiphdr {
|
|||||||
#define ti_win ti_t.th_win
|
#define ti_win ti_t.th_win
|
||||||
#define ti_sum ti_t.th_sum
|
#define ti_sum ti_t.th_sum
|
||||||
#define ti_urp ti_t.th_urp
|
#define ti_urp ti_t.th_urp
|
||||||
|
#endif /* __BSD_VISIBLE */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -37,6 +37,9 @@
|
|||||||
#ifndef _NETINET_UDP_VAR_H_
|
#ifndef _NETINET_UDP_VAR_H_
|
||||||
#define _NETINET_UDP_VAR_H_
|
#define _NETINET_UDP_VAR_H_
|
||||||
|
|
||||||
|
#include <netinet/ip_var.h> /* struct ipovly */
|
||||||
|
#include <netinet/udp.h> /* struct udphdr */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* UDP kernel structures and variables.
|
* UDP kernel structures and variables.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user