aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2020-10-14 09:22:54 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-11 11:52:46 +0200
commitb8e36b9251f938a32958cdfb7adac59c04a4a5ee (patch)
tree6879bb72a5d2fb0b3cce6b522be570204c62f7c9
parent3f0cc70c136b2e16ec9b6f5ca4355ef5326210f9 (diff)
downloadnewlib-b8e36b9251f938a32958cdfb7adac59c04a4a5ee.zip
newlib-b8e36b9251f938a32958cdfb7adac59c04a4a5ee.tar.gz
newlib-b8e36b9251f938a32958cdfb7adac59c04a4a5ee.tar.bz2
Implement SIOCGIFALIAS.
It is lightweight way to check if an IPv4 address exists. Submitted by: Roy Marples Reviewed by: gnn, melifaro MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D26636
-rw-r--r--newlib/libc/sys/rtems/include/sys/sockio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/sys/rtems/include/sys/sockio.h b/newlib/libc/sys/rtems/include/sys/sockio.h
index 03502d7..93b8af2 100644
--- a/newlib/libc/sys/rtems/include/sys/sockio.h
+++ b/newlib/libc/sys/rtems/include/sys/sockio.h
@@ -84,6 +84,7 @@
#define SIOCGIFDESCR _IOWR('i', 42, struct ifreq) /* get ifnet descr */
#define SIOCAIFADDR _IOW('i', 43, struct ifaliasreq)/* add/chg IF alias */
#define SIOCGIFDATA _IOW('i', 44, struct ifreq) /* get if_data */
+#define SIOCGIFALIAS _IOWR('i', 45, struct ifaliasreq)/* get IF alias */
#define SIOCADDMULTI _IOW('i', 49, struct ifreq) /* add m'cast addr */
#define SIOCDELMULTI _IOW('i', 50, struct ifreq) /* del m'cast addr */