⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 if.h

📁 南京航空航天大学开发的一个类Unix和Linux的操作系统,好不好看看就知道了,
💻 H
字号:
/* * INET		An implementation of the TCP/IP protocol suite for the LINUX *		operating system.  INET is implemented using the  BSD Socket *		interface as the means of communication with the user level. * *		Global definitions for the INET interface module. * * Version:	@(#)if.h	1.0.2	04/18/93 * * Authors:	Original taken from Berkeley UNIX 4.3, (c) UCB 1982-1988 *		Ross Biro, <bir7@leland.Stanford.Edu> *		Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> * *		This program is free software; you can redistribute it and/or *		modify it under the terms of the GNU General Public License *		as published by the Free Software Foundation; either version *		2 of the License, or (at your option) any later version. */#ifndef _LINUX_IF_H#define _LINUX_IF_H/* Standard interface flags. */#define	IFF_UP		0x1		/* interface is up		*/#define	IFF_BROADCAST	0x2		/* broadcast address valid	*/#define	IFF_DEBUG	0x4		/* turn on debugging		*/#define	IFF_LOOPBACK	0x8		/* is a loopback net		*/#define	IFF_POINTOPOINT	0x10		/* interface is has p-p link	*/#define	IFF_NOTRAILERS	0x20		/* avoid use of trailers	*/#define	IFF_RUNNING	0x40		/* resources allocated		*/#define	IFF_NOARP	0x80		/* no ARP protocol		*/#define	IFF_PROMISC	0x100		/* receive all packets		*//* Not supported */#define	IFF_ALLMULTI	0x200		/* receive all multicast packets*/#define IFF_MASTER	0x400		/* master of a load balancer 	*/#define IFF_SLAVE	0x800		/* slave of a load balancer	*/#define IFF_MULTICAST	0x1000		/* Supports multicast		*//* * The ifaddr structure contains information about one address * of an interface.  They are maintained by the different address * families, are allocated and attached when an address is set, * and are linked together so all addresses for an interface can * be located. */#define IFHWADDRLEN	6#define	IFNAMSIZ	16struct ifreq_t {	char name[IFNAMSIZ];	union {		sockaddr_t addr;		sockaddr_t dstaddr;		sockaddr_t broadaddr;		sockaddr_t netmask;		sockaddr_t hwaddr; /* mac address */		short flags;		int metric;		int mtu;		char data[0];	} u;};/* * Structure used in SIOCGIFCONF request. * Used to retrieve interface configuration * for machine (useful for programs which * must know all networks accessible). */struct ifconf_t {	int buflen;	union {		char *buf;		ifreq_t *ifreq;	} u;};#endif /* _LINUX_IF_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -