From 9336f169fc9ab9cfdaa4ad8dd2619b167f6a8e16 Mon Sep 17 00:00:00 2001 From: Medour Mehdi Date: Wed, 14 Aug 2024 17:43:31 +0200 Subject: [PATCH] Better to use SIOCGIFNAME_ETH instead of SIOCGIFNAME --- include/sockios.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/sockios.h b/include/sockios.h index 45b2e04..19e600b 100644 --- a/include/sockios.h +++ b/include/sockios.h @@ -47,8 +47,9 @@ #define SIOCADDRT (('S' << 8) | 30) /* add routing table entry */ #define SIOCDELRT (('S' << 8) | 31) /* delete routing table entry */ -#define SIOCGIFINDEX (('S' << 8) | 32) -#define SIOGIFINDEX SIOCGIFINDEX +/* network devices calls */ +#define SIOCGIFNAME_ETH (('S' << 8) | 32) /* return the name of the interface */ +#define SIOCGIFINDEX (('S' << 8) | 33) /* retrieve the interface index */ /* ARP cache control calls */ #define SIOCDARP (('S' << 8) | 40) /* delete ARP table entry */