Ignore:
File:
1 edited

Legend:

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

    r7af0cc5 r347768d  
    3838#include <inet/inet.h>
    3939#include <sys/types.h>
    40 #include <types/inetcfg.h>
     40
     41/** Network address */
     42typedef 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 */
     50typedef 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 */
     60typedef 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 */
     68typedef 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;
    4176
    4277extern int inetcfg_init(void);
     
    4883extern int inetcfg_get_link_list(sysarg_t **, size_t *);
    4984extern int inetcfg_get_sroute_list(sysarg_t **, size_t *);
    50 extern int inetcfg_link_add(sysarg_t);
    5185extern int inetcfg_link_get(sysarg_t, inet_link_info_t *);
    52 extern int inetcfg_link_remove(sysarg_t);
    5386extern int inetcfg_sroute_get(sysarg_t, inet_sroute_info_t *);
    5487extern int inetcfg_sroute_get_id(const char *, sysarg_t *);
Note: See TracChangeset for help on using the changeset viewer.