Changeset 8e1da2b6 in rtems


Ignore:
Timestamp:
Oct 15, 2007, 6:53:08 AM (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.8
Children:
d9a8aa0
Parents:
a38723dd
Message:

Add if_nameindex (from FreeBSD).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/net/if.h

    ra38723dd r8e1da2b6  
    279279#endif /* __BSD_VISIBLE */
    280280
     281#ifndef _KERNEL
     282struct if_nameindex {
     283    unsigned int    if_index;   /* 1, 2, ... */
     284    char        *if_name;   /* null terminated name: "le0", ... */
     285};
     286
     287__BEGIN_DECLS
     288void             if_freenameindex(struct if_nameindex *);
     289char            *if_indextoname(unsigned int, char *);
     290struct if_nameindex *if_nameindex(void);
     291__END_DECLS
     292#endif
     293
    281294#ifdef _KERNEL
    282295
Note: See TracChangeset for help on using the changeset viewer.