Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

IP (Internet Protocol) Library (ip.c)
[Network Library]


Detailed Description

 #include "net/ip.h" 
Description
The IP (Internet Protocol) library provide support for sending IP and IP-related packets. It's not clear if additional features are needed or will be added, or even if this is the proper way to facilitate IP packet operations.


Defines

#define IP_TIME_TO_LIVE   128

Functions

void ipSetAddress (uint32_t myIp, uint32_t netmask, uint32_t gatewayIp)
uint32_t ipGetMyAddress (void)
void ipSend (uint32_t dstIp, uint8_t protocol, uint16_t len, uint8_t *data)
 Send an IP packet.
void udpSend (uint32_t dstIp, uint16_t dstPort, uint16_t len, uint8_t *data)
 Send a UDP/IP packet.


Function Documentation

uint32_t ipGetMyAddress void   ) 
 

Get our local IP address. Returns current IP address value.

Definition at line 35 of file ip.c.

void ipSetAddress uint32_t  myIp,
uint32_t  netmask,
uint32_t  gatewayIp
 

Set our IP address and rounting information. The myIp value will be used in the source field of IP packets.

Definition at line 28 of file ip.c.


Generated on Mon Aug 22 04:29:30 2005 for Procyon AVRlib by  doxygen 1.4.2