Blame include/uapi/linux/netdevice.h

Packit Service 3880ab
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
Packit Service 3880ab
/*
Packit Service 3880ab
 * INET		An implementation of the TCP/IP protocol suite for the LINUX
Packit Service 3880ab
 *		operating system.  INET is implemented using the  BSD Socket
Packit Service 3880ab
 *		interface as the means of communication with the user level.
Packit Service 3880ab
 *
Packit Service 3880ab
 *		Definitions for the Interfaces handler.
Packit Service 3880ab
 *
Packit Service 3880ab
 * Version:	@(#)dev.h	1.0.10	08/12/93
Packit Service 3880ab
 *
Packit Service 3880ab
 * Authors:	Ross Biro
Packit Service 3880ab
 *		Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
Packit Service 3880ab
 *		Corey Minyard <wf-rch!minyard@relay.EU.net>
Packit Service 3880ab
 *		Donald J. Becker, <becker@cesdis.gsfc.nasa.gov>
Packit Service 3880ab
 *		Alan Cox, <alan@lxorguk.ukuu.org.uk>
Packit Service 3880ab
 *		Bjorn Ekwall. <bj0rn@blox.se>
Packit Service 3880ab
 *              Pekka Riikonen <priikone@poseidon.pspt.fi>
Packit Service 3880ab
 *
Packit Service 3880ab
 *		This program is free software; you can redistribute it and/or
Packit Service 3880ab
 *		modify it under the terms of the GNU General Public License
Packit Service 3880ab
 *		as published by the Free Software Foundation; either version
Packit Service 3880ab
 *		2 of the License, or (at your option) any later version.
Packit Service 3880ab
 *
Packit Service 3880ab
 *		Moved to /usr/include/linux for NET3
Packit Service 3880ab
 */
Packit Service 3880ab
#ifndef _LINUX_NETDEVICE_H
Packit Service 3880ab
#define _LINUX_NETDEVICE_H
Packit Service 3880ab
Packit Service 3880ab
#include <linux/if.h>
Packit Service 3880ab
#include <linux/if_ether.h>
Packit Service 3880ab
#include <linux/if_packet.h>
Packit Service 3880ab
#include <linux/if_link.h>
Packit Service 3880ab
Packit Service 3880ab
Packit Service 3880ab
#define MAX_ADDR_LEN	32		/* Largest hardware address length */
Packit Service 3880ab
Packit Service 3880ab
/* Initial net device group. All devices belong to group 0 by default. */
Packit Service 3880ab
#define INIT_NETDEV_GROUP	0
Packit Service 3880ab
Packit Service 3880ab
Packit Service 3880ab
/* interface name assignment types (sysfs name_assign_type attribute) */
Packit Service 3880ab
#define NET_NAME_UNKNOWN	0	/* unknown origin (not exposed to userspace) */
Packit Service 3880ab
#define NET_NAME_ENUM		1	/* enumerated by kernel */
Packit Service 3880ab
#define NET_NAME_PREDICTABLE	2	/* predictably named by the kernel */
Packit Service 3880ab
#define NET_NAME_USER		3	/* provided by user-space */
Packit Service 3880ab
#define NET_NAME_RENAMED	4	/* renamed by user-space */
Packit Service 3880ab
Packit Service 3880ab
/* Media selection options. */
Packit Service 3880ab
enum {
Packit Service 3880ab
        IF_PORT_UNKNOWN = 0,
Packit Service 3880ab
        IF_PORT_10BASE2,
Packit Service 3880ab
        IF_PORT_10BASET,
Packit Service 3880ab
        IF_PORT_AUI,
Packit Service 3880ab
        IF_PORT_100BASET,
Packit Service 3880ab
        IF_PORT_100BASETX,
Packit Service 3880ab
        IF_PORT_100BASEFX
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/* hardware address assignment types */
Packit Service 3880ab
#define NET_ADDR_PERM		0	/* address is permanent (default) */
Packit Service 3880ab
#define NET_ADDR_RANDOM		1	/* address is generated randomly */
Packit Service 3880ab
#define NET_ADDR_STOLEN		2	/* address is stolen from other device */
Packit Service 3880ab
#define NET_ADDR_SET		3	/* address is set using
Packit Service 3880ab
					 * dev_set_mac_address() */
Packit Service 3880ab
Packit Service 3880ab
#endif /* _LINUX_NETDEVICE_H */