Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
629 giacomo 1
#ifndef __IF__
2
#define __IF__
3
 
4
#include <linux/compatib.h>
5
 
6
/* Standard interface flags. */
7
#define IFF_UP          0x1             /* interface is up              */
8
#define IFF_BROADCAST   0x2             /* broadcast address valid      */
9
#define IFF_DEBUG       0x4             /* turn on debugging            */
10
#define IFF_LOOPBACK    0x8             /* is a loopback net            */
11
#define IFF_POINTOPOINT 0x10            /* interface is has p-p link    */
12
#define IFF_NOTRAILERS  0x20            /* avoid use of trailers        */
13
#define IFF_RUNNING     0x40            /* resources allocated          */
14
#define IFF_NOARP       0x80            /* no ARP protocol              */
15
#define IFF_PROMISC     0x100           /* receive all packets          */
16
/* Not supported */
17
#define IFF_ALLMULTI    0x200           /* receive all multicast packets*/
18
 
19
#define IFF_MASTER      0x400           /* master of a load balancer    */
20
#define IFF_SLAVE       0x800           /* slave of a load balancer     */
21
 
22
#define IFF_MULTICAST   0x1000          /* Supports multicast           */
23
 
24
 
25
struct ifmap
26
{
27
        unsigned long mem_start;
28
        unsigned long mem_end;
29
        unsigned short base_addr;
30
        unsigned char irq;
31
        unsigned char dma;
32
        unsigned char port;
33
        /* 3 bytes spare */
34
};
35
 
36
struct ifreq
37
{
38
  char *ifr_data;
39
};
40
 
41
#endif