Changeset 8bf672d in mainline for uspace/srv/inet/inet.h


Ignore:
Timestamp:
2012-03-30T17:42:11Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
66a272f8
Parents:
3b3c689
Message:

Static route configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/inet/inet.h

    r3b3c689 r8bf672d  
    9090} inet_link_info_t;
    9191
     92/** Static route info */
     93typedef struct {
     94        /** Destination network address */
     95        inet_naddr_t dest;
     96        /** Router address */
     97        inet_addr_t router;
     98        /** Static route name */
     99        char *name;
     100} inet_sroute_info_t;
     101
    92102typedef struct {
    93103        inet_addr_t src;
     
    125135} inet_addrobj_t;
    126136
     137/** Static route configuration */
     138typedef struct {
     139        link_t sroute_list;
     140        sysarg_t id;
     141        /** Destination network */
     142        inet_naddr_t dest;
     143        /** Router via which to route packets */
     144        inet_addr_t router;
     145        char *name;
     146} inet_sroute_t;
     147
     148typedef enum {
     149        /** Destination is on this network node */
     150        dt_local,
     151        /** Destination is directly reachable */
     152        dt_direct,
     153        /** Destination is behind a router */
     154        dt_router
     155} inet_dir_type_t;
     156
     157/** Direction (next hop) to a destination */
     158typedef struct {
     159        /** Route type */
     160        inet_dir_type_t dtype;
     161        /** Address object (direction) */
     162        inet_addrobj_t *aobj;
     163        /** Local destination address */
     164        inet_addr_t ldest;
     165} inet_dir_t;
     166
    127167typedef struct {
    128168        inet_addr_t src;
Note: See TracChangeset for help on using the changeset viewer.