Skip to content

Commit

Permalink
Better to use SIOCGIFNAME_ETH instead of SIOCGIFNAME
Browse files Browse the repository at this point in the history
  • Loading branch information
MedourMehdi committed Aug 14, 2024
1 parent 7e26e9f commit 9336f16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/sockios.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 9336f16

Please sign in to comment.