mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
Add if_nameindex (from FreeBSD).
This commit is contained in:
@@ -278,6 +278,19 @@ struct ifconf {
|
||||
};
|
||||
#endif /* __BSD_VISIBLE */
|
||||
|
||||
#ifndef _KERNEL
|
||||
struct if_nameindex {
|
||||
unsigned int if_index; /* 1, 2, ... */
|
||||
char *if_name; /* null terminated name: "le0", ... */
|
||||
};
|
||||
|
||||
__BEGIN_DECLS
|
||||
void if_freenameindex(struct if_nameindex *);
|
||||
char *if_indextoname(unsigned int, char *);
|
||||
struct if_nameindex *if_nameindex(void);
|
||||
__END_DECLS
|
||||
#endif
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
/* XXX - this should go away soon. */
|
||||
|
||||
Reference in New Issue
Block a user