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

# ip.c File Reference

## Detailed Description

Definition in file ip.c.

`#include <inttypes.h>`
`#include "global.h"`
`#include "rprintf.h"`
`#include "net.h"`
`#include "nic.h"`
`#include "arp.h"`
`#include "ip.h"`

Go to the source code of this file.

## Functions
void | ipSetConfig (uint32_t myIp, uint32_t netmask, uint32_t gatewayIp)
ipConfig * | ipGetConfig (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.
void | ipPrintConfig (struct ipConfig *config)
## Variables
ipConfig | IpMyConfig
| Local IP address/config structure.