diff options
author | Mike Frysinger | 2006-03-23 23:44:29 +0000 |
---|---|---|
committer | Mike Frysinger | 2006-03-23 23:44:29 +0000 |
commit | 787140df3992ccc3ebdc09f6d2dcb584f580f49f (patch) | |
tree | 666fdb071676c676f52bdc204f6df801b17e7196 /networking/udhcp/packet.h | |
parent | e0fe93759339a9e043cd0489f5bfabd59b5fcb78 (diff) | |
download | busybox-787140df3992ccc3ebdc09f6d2dcb584f580f49f.zip busybox-787140df3992ccc3ebdc09f6d2dcb584f580f49f.tar.gz |
remove in place of external link
Diffstat (limited to 'networking/udhcp/packet.h')
-rw-r--r-- | networking/udhcp/packet.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/networking/udhcp/packet.h b/networking/udhcp/packet.h deleted file mode 100644 index f5859e8..0000000 --- a/networking/udhcp/packet.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef _PACKET_H -#define _PACKET_H - -#include <netinet/udp.h> -#include <netinet/ip.h> - -struct dhcpMessage { - uint8_t op; - uint8_t htype; - uint8_t hlen; - uint8_t hops; - uint32_t xid; - uint16_t secs; - uint16_t flags; - uint32_t ciaddr; - uint32_t yiaddr; - uint32_t siaddr; - uint32_t giaddr; - uint8_t chaddr[16]; - uint8_t sname[64]; - uint8_t file[128]; - uint32_t cookie; - uint8_t options[308]; /* 312 - cookie */ -}; - -struct udp_dhcp_packet { - struct iphdr ip; - struct udphdr udp; - struct dhcpMessage data; -}; - -void init_header(struct dhcpMessage *packet, char type); -int get_packet(struct dhcpMessage *packet, int fd); -uint16_t checksum(void *addr, int count); -int raw_packet(struct dhcpMessage *payload, uint32_t source_ip, int source_port, - uint32_t dest_ip, int dest_port, uint8_t *dest_arp, int ifindex); -int kernel_packet(struct dhcpMessage *payload, uint32_t source_ip, int source_port, - uint32_t dest_ip, int dest_port); - - -#endif |