Changes in uspace/lib/c/include/inet/inetcfg.h [347768d:7af0cc5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/inet/inetcfg.h
r347768d r7af0cc5 38 38 #include <inet/inet.h> 39 39 #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> 76 41 77 42 extern int inetcfg_init(void); … … 83 48 extern int inetcfg_get_link_list(sysarg_t **, size_t *); 84 49 extern int inetcfg_get_sroute_list(sysarg_t **, size_t *); 50 extern int inetcfg_link_add(sysarg_t); 85 51 extern int inetcfg_link_get(sysarg_t, inet_link_info_t *); 52 extern int inetcfg_link_remove(sysarg_t); 86 53 extern int inetcfg_sroute_get(sysarg_t, inet_sroute_info_t *); 87 54 extern int inetcfg_sroute_get_id(const char *, sysarg_t *);
Note:
See TracChangeset
for help on using the changeset viewer.