ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

ip.h File Reference
#include "lwip/opt.h"
#include "lwip/def.h"
#include "lwip/pbuf.h"
#include "lwip/ip_addr.h"
#include "lwip/err.h"
#include "lwip/netif.h"

Go to the source code of this file.

Data Structures

struct  ip_pcb
struct  ip_hdr

Defines

#define IP_OPTIONS_SEND   LWIP_IGMP
#define IP_HLEN   20
#define IP_PROTO_ICMP   1
#define IP_PROTO_IGMP   2
#define IP_PROTO_UDP   17
#define IP_PROTO_UDPLITE   136
#define IP_PROTO_TCP   6
#define IP_HDRINCL   NULL
#define IP_PCB_ADDRHINT
#define IP_PCB
#define SOF_ACCEPTCONN   (u8_t)0x02U /* socket has had listen() */
#define SOF_REUSEADDR   (u8_t)0x04U /* allow local address reuse */
#define SOF_KEEPALIVE   (u8_t)0x08U /* keep connections alive */
#define SOF_BROADCAST   (u8_t)0x20U /* permit to send and to receive broadcast messages (see IP_SOF_BROADCAST option) */
#define SOF_LINGER   (u8_t)0x80U /* linger on close if data present */
#define SOF_INHERITED   (SOF_REUSEADDR|SOF_KEEPALIVE|SOF_LINGER/*|SOF_DEBUG|SOF_DONTROUTE|SOF_OOBINLINE*/)
#define IP_RF   0x8000U /* reserved fragment flag */
#define IP_DF   0x4000U /* dont fragment flag */
#define IP_MF   0x2000U /* more fragments flag */
#define IP_OFFMASK   0x1fffU /* mask for fragmenting bits */
#define IPH_V(hdr)   (ntohs((hdr)->_v_hl_tos) >> 12)
#define IPH_HL(hdr)   ((ntohs((hdr)->_v_hl_tos) >> 8) & 0x0f)
#define IPH_TOS(hdr)   (ntohs((hdr)->_v_hl_tos) & 0xff)
#define IPH_LEN(hdr)   ((hdr)->_len)
#define IPH_ID(hdr)   ((hdr)->_id)
#define IPH_OFFSET(hdr)   ((hdr)->_offset)
#define IPH_TTL(hdr)   ((hdr)->_ttl)
#define IPH_PROTO(hdr)   ((hdr)->_proto)
#define IPH_CHKSUM(hdr)   ((hdr)->_chksum)
#define IPH_VHLTOS_SET(hdr, v, hl, tos)   (hdr)->_v_hl_tos = (htons(((v) << 12) | ((hl) << 8) | (tos)))
#define IPH_LEN_SET(hdr, len)   (hdr)->_len = (len)
#define IPH_ID_SET(hdr, id)   (hdr)->_id = (id)
#define IPH_OFFSET_SET(hdr, off)   (hdr)->_offset = (off)
#define IPH_TTL_SET(hdr, ttl)   (hdr)->_ttl = (u8_t)(ttl)
#define IPH_PROTO_SET(hdr, proto)   (hdr)->_proto = (u8_t)(proto)
#define IPH_CHKSUM_SET(hdr, chksum)   (hdr)->_chksum = (chksum)
#define ip_init()   /* Compatibility define, not init needed. */
#define ip_current_netif()   (current_netif)
#define ip_current_header()   (current_header)
#define ip_current_src_addr()   (&current_iphdr_src)
#define ip_current_dest_addr()   (&current_iphdr_dest)
#define ip_debug_print(p)

Functions

struct netifip_route (ip_addr_t *dest)
err_t ip_input (struct pbuf *p, struct netif *inp)
err_t ip_output (struct pbuf *p, ip_addr_t *src, ip_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto)
err_t ip_output_if (struct pbuf *p, ip_addr_t *src, ip_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif)

Variables

PACK_STRUCT_BEGIN struct ip_hdr PACK_STRUCT_STRUCT
struct netifcurrent_netif
struct ip_hdrcurrent_header
ip_addr_t current_iphdr_src
ip_addr_t current_iphdr_dest

Generated on Sun May 27 2012 05:10:10 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.