diff options
author | Russ Dill | 2002-10-14 21:41:28 +0000 |
---|---|---|
committer | Russ Dill | 2002-10-14 21:41:28 +0000 |
commit | 61fb48930f45aa536584b2047f9e703186e8f69f (patch) | |
tree | e3b93e0a694be81939f8c4762553c43ffdb9b10b /networking/udhcp/arpping.h | |
parent | 9060a7315980bb05f42eab76b88746d43e138188 (diff) | |
download | busybox-61fb48930f45aa536584b2047f9e703186e8f69f.zip busybox-61fb48930f45aa536584b2047f9e703186e8f69f.tar.gz |
added full udhcp integration
Diffstat (limited to 'networking/udhcp/arpping.h')
-rw-r--r-- | networking/udhcp/arpping.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/networking/udhcp/arpping.h b/networking/udhcp/arpping.h new file mode 100644 index 0000000..92b828d --- /dev/null +++ b/networking/udhcp/arpping.h @@ -0,0 +1,30 @@ +/* + * arpping .h + */ + +#ifndef ARPPING_H +#define ARPPING_H + +#include <netinet/if_ether.h> +#include <net/if_arp.h> +#include <net/if.h> +#include <netinet/in.h> + +struct arpMsg { + struct ethhdr ethhdr; /* Ethernet header */ + u_short htype; /* hardware type (must be ARPHRD_ETHER) */ + u_short ptype; /* protocol type (must be ETH_P_IP) */ + u_char hlen; /* hardware address length (must be 6) */ + u_char plen; /* protocol address length (must be 4) */ + u_short operation; /* ARP opcode */ + u_char sHaddr[6]; /* sender's hardware address */ + u_char sInaddr[4]; /* sender's IP address */ + u_char tHaddr[6]; /* target's hardware address */ + u_char tInaddr[4]; /* target's IP address */ + u_char pad[18]; /* pad for min. Ethernet payload (60 bytes) */ +}; + +/* function prototypes */ +int arpping(u_int32_t yiaddr, u_int32_t ip, unsigned char *arp, char *interface); + +#endif |