Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _UAPI_LINUX_NETDEVICE_H |
| 8 | #define _UAPI_LINUX_NETDEVICE_H |
| 9 | #include <linux/if.h> |
| 10 | #include <linux/if_ether.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #include <linux/if_packet.h> |
| 12 | #include <linux/if_link.h> |
| 13 | #define MAX_ADDR_LEN 32 |
| 14 | #define INIT_NETDEV_GROUP 0 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 15 | #define NET_NAME_UNKNOWN 0 |
| 16 | #define NET_NAME_ENUM 1 |
| 17 | #define NET_NAME_PREDICTABLE 2 |
| 18 | #define NET_NAME_USER 3 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 19 | #define NET_NAME_RENAMED 4 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 20 | enum { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 21 | IF_PORT_UNKNOWN = 0, |
| 22 | IF_PORT_10BASE2, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | IF_PORT_10BASET, |
| 24 | IF_PORT_AUI, |
| 25 | IF_PORT_100BASET, |
| 26 | IF_PORT_100BASETX, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | IF_PORT_100BASEFX |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 28 | }; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 29 | #define NET_ADDR_PERM 0 |
| 30 | #define NET_ADDR_RANDOM 1 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 31 | #define NET_ADDR_STOLEN 2 |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 32 | #define NET_ADDR_SET 3 |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 33 | #endif |