clientpacket.h 536 B

1234567891011121314
  1. #ifndef _CLIENTPACKET_H
  2. #define _CLIENTPACKET_H
  3. #include "packet.h"
  4. unsigned long random_xid(void);
  5. int send_discover(unsigned long xid, unsigned long requested);
  6. int send_selecting(unsigned long xid, unsigned long server, unsigned long requested);
  7. int send_renew(unsigned long xid, unsigned long server, unsigned long ciaddr);
  8. int send_renew(unsigned long xid, unsigned long server, unsigned long ciaddr);
  9. int send_release(unsigned long server, unsigned long ciaddr);
  10. int get_raw_packet(struct dhcpMessage *payload, int fd);
  11. #endif