1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * INET An implementation of the TCP/IP protocol suite for the LINUX 4*4882a593Smuzhiyun * operating system. INET is implemented using the BSD Socket 5*4882a593Smuzhiyun * interface as the means of communication with the user level. 6*4882a593Smuzhiyun * 7*4882a593Smuzhiyun * Definitions for the Interfaces handler. 8*4882a593Smuzhiyun * 9*4882a593Smuzhiyun * Version: @(#)dev.h 1.0.10 08/12/93 10*4882a593Smuzhiyun * 11*4882a593Smuzhiyun * Authors: Ross Biro 12*4882a593Smuzhiyun * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> 13*4882a593Smuzhiyun * Corey Minyard <wf-rch!minyard@relay.EU.net> 14*4882a593Smuzhiyun * Donald J. Becker, <becker@cesdis.gsfc.nasa.gov> 15*4882a593Smuzhiyun * Alan Cox, <alan@lxorguk.ukuu.org.uk> 16*4882a593Smuzhiyun * Bjorn Ekwall. <bj0rn@blox.se> 17*4882a593Smuzhiyun * Pekka Riikonen <priikone@poseidon.pspt.fi> 18*4882a593Smuzhiyun * 19*4882a593Smuzhiyun * This program is free software; you can redistribute it and/or 20*4882a593Smuzhiyun * modify it under the terms of the GNU General Public License 21*4882a593Smuzhiyun * as published by the Free Software Foundation; either version 22*4882a593Smuzhiyun * 2 of the License, or (at your option) any later version. 23*4882a593Smuzhiyun * 24*4882a593Smuzhiyun * Moved to /usr/include/linux for NET3 25*4882a593Smuzhiyun */ 26*4882a593Smuzhiyun #ifndef _UAPI_LINUX_NETDEVICE_H 27*4882a593Smuzhiyun #define _UAPI_LINUX_NETDEVICE_H 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun #include <linux/if.h> 30*4882a593Smuzhiyun #include <linux/if_ether.h> 31*4882a593Smuzhiyun #include <linux/if_packet.h> 32*4882a593Smuzhiyun #include <linux/if_link.h> 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun #define MAX_ADDR_LEN 32 /* Largest hardware address length */ 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun /* Initial net device group. All devices belong to group 0 by default. */ 38*4882a593Smuzhiyun #define INIT_NETDEV_GROUP 0 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun /* interface name assignment types (sysfs name_assign_type attribute) */ 42*4882a593Smuzhiyun #define NET_NAME_UNKNOWN 0 /* unknown origin (not exposed to userspace) */ 43*4882a593Smuzhiyun #define NET_NAME_ENUM 1 /* enumerated by kernel */ 44*4882a593Smuzhiyun #define NET_NAME_PREDICTABLE 2 /* predictably named by the kernel */ 45*4882a593Smuzhiyun #define NET_NAME_USER 3 /* provided by user-space */ 46*4882a593Smuzhiyun #define NET_NAME_RENAMED 4 /* renamed by user-space */ 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun /* Media selection options. */ 49*4882a593Smuzhiyun enum { 50*4882a593Smuzhiyun IF_PORT_UNKNOWN = 0, 51*4882a593Smuzhiyun IF_PORT_10BASE2, 52*4882a593Smuzhiyun IF_PORT_10BASET, 53*4882a593Smuzhiyun IF_PORT_AUI, 54*4882a593Smuzhiyun IF_PORT_100BASET, 55*4882a593Smuzhiyun IF_PORT_100BASETX, 56*4882a593Smuzhiyun IF_PORT_100BASEFX 57*4882a593Smuzhiyun }; 58*4882a593Smuzhiyun 59*4882a593Smuzhiyun /* hardware address assignment types */ 60*4882a593Smuzhiyun #define NET_ADDR_PERM 0 /* address is permanent (default) */ 61*4882a593Smuzhiyun #define NET_ADDR_RANDOM 1 /* address is generated randomly */ 62*4882a593Smuzhiyun #define NET_ADDR_STOLEN 2 /* address is stolen from other device */ 63*4882a593Smuzhiyun #define NET_ADDR_SET 3 /* address is set using 64*4882a593Smuzhiyun * dev_set_mac_address() */ 65*4882a593Smuzhiyun 66*4882a593Smuzhiyun #endif /* _UAPI_LINUX_NETDEVICE_H */ 67