blob: 695c1cd88f2aca5b9efd27a22274c4cf4079e180 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPI_LINUX_NETDEVICE_H
8#define _UAPI_LINUX_NETDEVICE_H
9#include <linux/if.h>
10#include <linux/if_ether.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070011#include <linux/if_packet.h>
12#include <linux/if_link.h>
13#define MAX_ADDR_LEN 32
14#define INIT_NETDEV_GROUP 0
Christopher Ferris82d75042015-01-26 10:57:07 -080015#define NET_NAME_UNKNOWN 0
16#define NET_NAME_ENUM 1
17#define NET_NAME_PREDICTABLE 2
18#define NET_NAME_USER 3
Christopher Ferris82d75042015-01-26 10:57:07 -080019#define NET_NAME_RENAMED 4
Ben Cheng655a7c02013-10-16 16:09:24 -070020enum {
Tao Baod7db5942015-01-28 10:07:51 -080021 IF_PORT_UNKNOWN = 0,
22 IF_PORT_10BASE2,
Tao Baod7db5942015-01-28 10:07:51 -080023 IF_PORT_10BASET,
24 IF_PORT_AUI,
25 IF_PORT_100BASET,
26 IF_PORT_100BASETX,
Tao Baod7db5942015-01-28 10:07:51 -080027 IF_PORT_100BASEFX
Ben Cheng655a7c02013-10-16 16:09:24 -070028};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070029#define NET_ADDR_PERM 0
30#define NET_ADDR_RANDOM 1
Christopher Ferris82d75042015-01-26 10:57:07 -080031#define NET_ADDR_STOLEN 2
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070032#define NET_ADDR_SET 3
Nick Kralevicha67e4de2013-01-14 11:28:26 -080033#endif