Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/inet/inetcfg.h

    r347768d r7af0cc5  
    3838#include <inet/inet.h>
    3939#include <sys/types.h>
    40 
    41 /** Network address */
    42 typedef struct {
    43         /** Address */
    44         uint32_t ipv4;
    45         /** Number of valid bits in @c ipv4 */
    46         int bits;
    47 } inet_naddr_t;
    48 
    49 /** Address object info */
    50 typedef struct {
    51         /** Network address */
    52         inet_naddr_t naddr;
    53         /** Link service ID */
    54         sysarg_t ilink;
    55         /** Address object name */
    56         char *name;
    57 } inet_addr_info_t;
    58 
    59 /** IP link info */
    60 typedef struct {
    61         /** Link service name */
    62         char *name;
    63         /** Default MTU */
    64         size_t def_mtu;
    65 } inet_link_info_t;
    66 
    67 /** Static route info */
    68 typedef struct {
    69         /** Destination network address */
    70         inet_naddr_t dest;
    71         /** Router address */
    72         inet_addr_t router;
    73         /** Static route name */
    74         char *name;
    75 } inet_sroute_info_t;
     40#include <types/inetcfg.h>
    7641
    7742extern int inetcfg_init(void);
     
    8348extern int inetcfg_get_link_list(sysarg_t **, size_t *);
    8449extern int inetcfg_get_sroute_list(sysarg_t **, size_t *);
     50extern int inetcfg_link_add(sysarg_t);
    8551extern int inetcfg_link_get(sysarg_t, inet_link_info_t *);
     52extern int inetcfg_link_remove(sysarg_t);
    8653extern int inetcfg_sroute_get(sysarg_t, inet_sroute_info_t *);
    8754extern int inetcfg_sroute_get_id(const char *, sysarg_t *);
Note: See TracChangeset for help on using the changeset viewer.