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

# ip.h File Reference

## Detailed Description

Definition in file ip.h.

`#include "net.h"`
`#include "arp.h"`
`#include <stdint.h>`

Go to the source code of this file.

## Defines
#define | IP_TIME_TO_LIVE 128
| default Time-To-Live (TTL) value to use in IP headers
## Functions
void | ipSetConfig (uint32_t myIp, uint32_t netmask, uint32_t gatewayIp)
ipConfig * | ipGetConfig (void)
void | ipPrintConfig (struct ipConfig *config)
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.