File: dev_struct.h

package info (click to toggle)
sing 1.1-13etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 2,480 kB
  • ctags: 2,092
  • sloc: ansic: 20,745; sh: 4,857; makefile: 718; yacc: 234; lex: 203
file content (25 lines) | stat: -rw-r--r-- 732 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/***********************************************************/
/* Network device structure.                               */
/***********************************************************/
/* $Id: dev_struct.h,v 1.1.1.1 2000/06/19 09:08:10 slay Exp $ */
/***********************************************************/
#ifndef __DEV_STRUCT_H__
#define __DEV_STRUCT_H__

#ifndef IFNAMSIZ
#define IFNAMSIZ 16
#endif

struct mi_ifaz {  char   name[IFNAMSIZ]; /* Iface name */
                  short  flags;         /* Iface flags */
                  int    mtu;           /* Iface mtu   */
                  struct sockaddr ip;   /* IP address  */
               };

#ifdef LINUX
#define LOOPB "lo"
#else
#define LOOPB "lo0"
#endif

#endif