Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2015-05-28T15:31:10Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
8d48c7e
Parents:
2989c7e
Message:

Simple implementation of amap and portrng.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/nettl/include/nettl/amap.h

    r2989c7e rab6326bc  
    3737#define LIBNETTL_AMAP_H_
    3838
     39#include <adt/list.h>
    3940#include <inet/endpoint.h>
    4041#include <nettl/portrng.h>
     
    4344/** Port range for (remote endpoint, local address) */
    4445typedef struct {
     46        /** Link to amap_t.repla */
     47        link_t lamap;
    4548        /** Remote endpoint */
    4649        inet_ep_t rep;
     
    5356/** Port range for local address */
    5457typedef struct {
     58        /** Link to amap_t.laddr */
     59        link_t lamap;
    5560        /** Local address */
    5661        inet_addr_t laddr;
     
    6166/** Port range for local link */
    6267typedef struct {
     68        /** Link to amap_t.llink */
     69        link_t lamap;
    6370        /** Local link ID */
    6471        service_id_t llink;
     
    7582        /** Local links */
    7683        list_t llink; /* of amap_llink_t */
     84        /** Nothing specified (listen on all local adresses) */
     85        portrng_t *unspec;
    7786} amap_t;
    7887
Note: See TracChangeset for help on using the changeset viewer.