aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/arpping.h
diff options
context:
space:
mode:
authorRuss Dill <Russ.Dill@asu.edu>2002-10-14 21:41:28 +0000
committerRuss Dill <Russ.Dill@asu.edu>2002-10-14 21:41:28 +0000
commit61fb48930f45aa536584b2047f9e703186e8f69f (patch)
treee3b93e0a694be81939f8c4762553c43ffdb9b10b /networking/udhcp/arpping.h
parent9060a7315980bb05f42eab76b88746d43e138188 (diff)
downloadbusybox-w32-61fb48930f45aa536584b2047f9e703186e8f69f.tar.gz
busybox-w32-61fb48930f45aa536584b2047f9e703186e8f69f.tar.bz2
busybox-w32-61fb48930f45aa536584b2047f9e703186e8f69f.zip
added full udhcp integration
Diffstat (limited to 'networking/udhcp/arpping.h')
-rw-r--r--networking/udhcp/arpping.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/networking/udhcp/arpping.h b/networking/udhcp/arpping.h
new file mode 100644
index 000000000..92b828db5
--- /dev/null
+++ b/networking/udhcp/arpping.h
@@ -0,0 +1,30 @@
1/*
2 * arpping .h
3 */
4
5#ifndef ARPPING_H
6#define ARPPING_H
7
8#include <netinet/if_ether.h>
9#include <net/if_arp.h>
10#include <net/if.h>
11#include <netinet/in.h>
12
13struct arpMsg {
14 struct ethhdr ethhdr; /* Ethernet header */
15 u_short htype; /* hardware type (must be ARPHRD_ETHER) */
16 u_short ptype; /* protocol type (must be ETH_P_IP) */
17 u_char hlen; /* hardware address length (must be 6) */
18 u_char plen; /* protocol address length (must be 4) */
19 u_short operation; /* ARP opcode */
20 u_char sHaddr[6]; /* sender's hardware address */
21 u_char sInaddr[4]; /* sender's IP address */
22 u_char tHaddr[6]; /* target's hardware address */
23 u_char tInaddr[4]; /* target's IP address */
24 u_char pad[18]; /* pad for min. Ethernet payload (60 bytes) */
25};
26
27/* function prototypes */
28int arpping(u_int32_t yiaddr, u_int32_t ip, unsigned char *arp, char *interface);
29
30#endif