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 _LINUX_SOCKIOS_H |
| 8 | #define _LINUX_SOCKIOS_H |
Christopher Ferris | aeddbcf | 2019-07-08 12:45:46 -0700 | [diff] [blame] | 9 | #include <asm/bitsperlong.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 10 | #include <asm/sockios.h> |
| 11 | #define SIOCINQ FIONREAD |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 12 | #define SIOCOUTQ TIOCOUTQ |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 13 | #define SOCK_IOC_TYPE 0x89 |
Christopher Ferris | aeddbcf | 2019-07-08 12:45:46 -0700 | [diff] [blame] | 14 | #define SIOCGSTAMP_NEW _IOR(SOCK_IOC_TYPE, 0x06, long long[2]) |
| 15 | #define SIOCGSTAMPNS_NEW _IOR(SOCK_IOC_TYPE, 0x07, long long[2]) |
| 16 | #if __BITS_PER_LONG == 64 || defined(__x86_64__) && defined(__ILP32__) |
| 17 | #define SIOCGSTAMP SIOCGSTAMP_OLD |
| 18 | #define SIOCGSTAMPNS SIOCGSTAMPNS_OLD |
| 19 | #else |
| 20 | #define SIOCGSTAMP ((sizeof(struct timeval)) == 8 ? SIOCGSTAMP_OLD : SIOCGSTAMP_NEW) |
| 21 | #define SIOCGSTAMPNS ((sizeof(struct timespec)) == 8 ? SIOCGSTAMPNS_OLD : SIOCGSTAMPNS_NEW) |
| 22 | #endif |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define SIOCADDRT 0x890B |
| 24 | #define SIOCDELRT 0x890C |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 25 | #define SIOCRTMSG 0x890D |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 26 | #define SIOCGIFNAME 0x8910 |
| 27 | #define SIOCSIFLINK 0x8911 |
| 28 | #define SIOCGIFCONF 0x8912 |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 29 | #define SIOCGIFFLAGS 0x8913 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 30 | #define SIOCSIFFLAGS 0x8914 |
| 31 | #define SIOCGIFADDR 0x8915 |
| 32 | #define SIOCSIFADDR 0x8916 |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 33 | #define SIOCGIFDSTADDR 0x8917 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 34 | #define SIOCSIFDSTADDR 0x8918 |
| 35 | #define SIOCGIFBRDADDR 0x8919 |
| 36 | #define SIOCSIFBRDADDR 0x891a |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 37 | #define SIOCGIFNETMASK 0x891b |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 38 | #define SIOCSIFNETMASK 0x891c |
| 39 | #define SIOCGIFMETRIC 0x891d |
| 40 | #define SIOCSIFMETRIC 0x891e |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 41 | #define SIOCGIFMEM 0x891f |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 42 | #define SIOCSIFMEM 0x8920 |
| 43 | #define SIOCGIFMTU 0x8921 |
| 44 | #define SIOCSIFMTU 0x8922 |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 45 | #define SIOCSIFNAME 0x8923 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 46 | #define SIOCSIFHWADDR 0x8924 |
| 47 | #define SIOCGIFENCAP 0x8925 |
| 48 | #define SIOCSIFENCAP 0x8926 |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 49 | #define SIOCGIFHWADDR 0x8927 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 50 | #define SIOCGIFSLAVE 0x8929 |
| 51 | #define SIOCSIFSLAVE 0x8930 |
| 52 | #define SIOCADDMULTI 0x8931 |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 53 | #define SIOCDELMULTI 0x8932 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 54 | #define SIOCGIFINDEX 0x8933 |
| 55 | #define SIOGIFINDEX SIOCGIFINDEX |
| 56 | #define SIOCSIFPFLAGS 0x8934 |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 57 | #define SIOCGIFPFLAGS 0x8935 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 58 | #define SIOCDIFADDR 0x8936 |
| 59 | #define SIOCSIFHWBROADCAST 0x8937 |
| 60 | #define SIOCGIFCOUNT 0x8938 |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 61 | #define SIOCGIFBR 0x8940 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 62 | #define SIOCSIFBR 0x8941 |
| 63 | #define SIOCGIFTXQLEN 0x8942 |
| 64 | #define SIOCSIFTXQLEN 0x8943 |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 65 | #define SIOCETHTOOL 0x8946 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 66 | #define SIOCGMIIPHY 0x8947 |
| 67 | #define SIOCGMIIREG 0x8948 |
| 68 | #define SIOCSMIIREG 0x8949 |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 69 | #define SIOCWANDEV 0x894A |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 70 | #define SIOCOUTQNSD 0x894B |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 71 | #define SIOCGSKNS 0x894C |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 72 | #define SIOCDARP 0x8953 |
| 73 | #define SIOCGARP 0x8954 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 74 | #define SIOCSARP 0x8955 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 75 | #define SIOCDRARP 0x8960 |
| 76 | #define SIOCGRARP 0x8961 |
| 77 | #define SIOCSRARP 0x8962 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 78 | #define SIOCGIFMAP 0x8970 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 79 | #define SIOCSIFMAP 0x8971 |
| 80 | #define SIOCADDDLCI 0x8980 |
| 81 | #define SIOCDELDLCI 0x8981 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 82 | #define SIOCGIFVLAN 0x8982 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 83 | #define SIOCSIFVLAN 0x8983 |
| 84 | #define SIOCBONDENSLAVE 0x8990 |
| 85 | #define SIOCBONDRELEASE 0x8991 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 86 | #define SIOCBONDSETHWADDR 0x8992 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 87 | #define SIOCBONDSLAVEINFOQUERY 0x8993 |
| 88 | #define SIOCBONDINFOQUERY 0x8994 |
| 89 | #define SIOCBONDCHANGEACTIVE 0x8995 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 90 | #define SIOCBRADDBR 0x89a0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 91 | #define SIOCBRDELBR 0x89a1 |
| 92 | #define SIOCBRADDIF 0x89a2 |
| 93 | #define SIOCBRDELIF 0x89a3 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 94 | #define SIOCSHWTSTAMP 0x89b0 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 95 | #define SIOCGHWTSTAMP 0x89b1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 96 | #define SIOCDEVPRIVATE 0x89F0 |
| 97 | #define SIOCPROTOPRIVATE 0x89E0 |
| 98 | #endif |