Skip to content

Commit 9336f16

Browse files
committed
Better to use SIOCGIFNAME_ETH instead of SIOCGIFNAME
1 parent 7e26e9f commit 9336f16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/sockios.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@
4747
#define SIOCADDRT (('S' << 8) | 30) /* add routing table entry */
4848
#define SIOCDELRT (('S' << 8) | 31) /* delete routing table entry */
4949

50-
#define SIOCGIFINDEX (('S' << 8) | 32)
51-
#define SIOGIFINDEX SIOCGIFINDEX
50+
/* network devices calls */
51+
#define SIOCGIFNAME_ETH (('S' << 8) | 32) /* return the name of the interface */
52+
#define SIOCGIFINDEX (('S' << 8) | 33) /* retrieve the interface index */
5253

5354
/* ARP cache control calls */
5455
#define SIOCDARP (('S' << 8) | 40) /* delete ARP table entry */

0 commit comments

Comments
 (0)