1 /* ip.h */ 2 /* Contains the structures for communicating with the ip level of the 3 sockets. Currently just for configuration. */ 4 #ifndef _LINUX_SOCK_IOCTL_H 5 #define _LINUX_SOCK_IOCTL_H 6 7 #define MAX_IP_NAME 20 8 /* some ioctl. Their values are not special. */ 9 #define IP_SET_DEV 0x2401 10 #define IP_ADD_ROUTE 0x2402 11 #define IP_HANDOFF 0x2403 12 13 struct ip_config 14 { 15 char name[MAX_IP_NAME]; 16 unsigned long paddr; 17 unsigned long router; 18 unsigned long net; 19 unsigned long up:1; 20 }; 21 #endif