00001 #ifndef _CLIENTPACKET_H 00002 #define _CLIENTPACKET_H 00003 00004 unsigned long random_xid(void); 00005 int send_discover(unsigned long xid, unsigned long requested); 00006 int send_selecting(unsigned long xid, unsigned long server, unsigned long requested); 00007 int send_renew(unsigned long xid, unsigned long server, unsigned long ciaddr); 00008 int send_renew(unsigned long xid, unsigned long server, unsigned long ciaddr); 00009 int send_release(unsigned long server, unsigned long ciaddr); 00010 int get_raw_packet(struct dhcpMessage *payload, int fd); 00011 00012 #endif