root/include/linux/sock_ioctl.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   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,destroy:1;
  20 };
  21 
  22 #define SIOCSARP        0x2501
  23 #define SIOCGARP        0x2502
  24 #define SIOCDARP        0x2503
  25 
  26 /*
  27  * ARP ioctl request
  28  */
  29 struct arpreq {
  30         struct  sockaddr arp_pa;                /* protocol address */
  31         struct  sockaddr arp_ha;                /* hardware address */
  32         int     arp_flags;                      /* flags */
  33 };
  34 
  35 #define ATF_COM         0x02
  36 #define ATF_PERM        0x04
  37 #define ATF_PUBL        0x08
  38 #define ATF_USETRAILERS 0x10
  39 
  40 #endif

/* [previous][next][first][last][top][bottom][index][help] */