root/include/linux/sock_ioctl.h

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

INCLUDED FROM


   1 #ifndef _LINUX_SOCK_IOCTL_H
   2 #define _LINUX_SOCK_IOCTL_H
   3 
   4 #define MAX_IP_NAME 20
   5 /* some ioctl.  Their values are not special. */
   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  * ARP ioctl request
  23  */
  24 struct arpreq {
  25         struct  sockaddr arp_pa;                /* protocol address */
  26         struct  sockaddr arp_ha;                /* hardware address */
  27         int     arp_flags;                      /* 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

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