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