You've already forked gitified_old_clb_svn
24 lines
508 B
C
24 lines
508 B
C
#ifndef IPV4_H
|
|
#define IPV4_H
|
|
|
|
#include <inttypes.h>
|
|
|
|
void ipv4_init(const char *if_name);
|
|
void ipv4_poll(void);
|
|
|
|
/* Internal to IP stack: */
|
|
unsigned int ipv4_checksum(unsigned short *buf, int shorts);
|
|
|
|
void arp_init(const char *if_name);
|
|
void arp_poll(void);
|
|
|
|
extern int needIP;
|
|
void setIP(unsigned char *IP);
|
|
void getIP(unsigned char *IP);
|
|
|
|
int process_icmp(uint8_t * buf, int len);
|
|
int process_bootp(uint8_t * buf, int len); /* non-zero if IP was set */
|
|
int send_bootp(uint8_t * buf, int retry);
|
|
|
|
#endif
|