Watt-32 tcp/ip  2.2 dev-rel.10
Functions
ip4_in.c File Reference

Go to the source code of this file.

Functions

int _ip4_handler (const in_Header *ip, BOOL broadcast)
 
int _chk_ip4_header (const in_Header *ip)
 
int _ip4_is_local_addr (DWORD ip)
 
int _ip4_is_loopback_addr (DWORD ip)
 
int _ip4_is_unique_addr (DWORD ip)
 
int _ip4_is_multihome_addr (DWORD ip)
 
int _ip4_is_ip_brdcast (const in_Header *ip)
 
int _ip4_is_multicast (DWORD ip)
 

Detailed Description

IPv4 input and address classifier functions.

Version

1.0 : Sep 18, 2001 : G. Vanem - moved from pctcp.c & ip_out.c

Definition in file ip4_in.c.

Function Documentation

int _ip4_handler ( const in_Header ip,
BOOL  broadcast 
)
Todo:
check for LSRR option and replace ip->source with actual source-address burried in option (ref. RFC-1122)
Todo:
handle compressed IP (use zlib)

Definition at line 34 of file ip4_in.c.

References _bsd_socket_hook(), _tcp_handler(), _udp_handler(), block_ip, icmp_handler(), and icmp_send_unreach().