ndhc/ndhc/dhcpmsg.h
2010-12-24 10:01:12 -05:00

16 lines
535 B
C

#ifndef CLIENTPACKET_H_
#define CLIENTPACKET_H_
#include <stdint.h>
uint32_t random_xid(void);
int send_discover(uint32_t xid, uint32_t requested);
int send_selecting(uint32_t xid, uint32_t server, uint32_t requested);
int send_renew(uint32_t xid, uint32_t server, uint32_t ciaddr);
int send_renew(uint32_t xid, uint32_t server, uint32_t ciaddr);
int send_decline(uint32_t xid, uint32_t server, uint32_t requested);
int send_release(uint32_t server, uint32_t ciaddr);
int get_raw_packet(struct dhcpMessage *payload, int fd);
#endif