1 #ifndef _LINUX_SOCK_IOCTL_H
2 #define _LINUX_SOCK_IOCTL_H
3
4 #define MAX_IP_NAME 20
5
6 #define IP_SET_DEV 0x2401
7
8 struct ip_config
9 {
10 char name[MAX_IP_NAME];
11 unsigned long paddr;
12 unsigned long router;
13 unsigned long net;
14 unsigned long up:1,destroy:1;
15 };
16
17 #define SIOCSARP 0x2501
18 #define SIOCGARP 0x2502
19 #define SIOCDARP 0x2503
20
21
22
23
24 struct arpreq {
25 struct sockaddr arp_pa;
26 struct sockaddr arp_ha;
27 int arp_flags;
28 };
29
30 #define ATF_COM 0x02
31 #define ATF_PERM 0x04
32 #define ATF_PUBL 0x08
33 #define ATF_USETRAILERS 0x10
34
35 #endif