Changeset 2989c7e in mainline for uspace/lib/nettl
- Timestamp:
 - 2015-05-25T21:04:33Z (10 years ago)
 - Branches:
 - lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
 - Children:
 - ab6326bc
 - Parents:
 - 58e9dec
 - Location:
 - uspace/lib/nettl
 - Files:
 - 
      
- 4 added
 - 1 moved
 
- 
          
  Makefile (added)
 - 
          
  include/nettl/amap.h (added)
 - 
          
  include/nettl/portrng.h (moved) (moved from uspace/srv/net/udp/ucall.h ) (1 diff)
 - 
          
  src/amap.c (added)
 - 
          
  src/portrng.c (added)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
uspace/lib/nettl/include/nettl/portrng.h
r58e9dec r2989c7e 27 27 */ 28 28 29 /** @addtogroup udp29 /** @addtogroup libnettl 30 30 * @{ 31 31 */ 32 /** @file UDP user calls 32 /** 33 * @file Port range allocator. 33 34 */ 34 35 35 #ifndef UCALL_H36 #define UCALL_H36 #ifndef LIBNETTL_PORTRNG_H_ 37 #define LIBNETTL_PORTRNG_H_ 37 38 38 #include <ipc/loc.h> 39 #include <sys/types.h> 40 #include "udp_type.h" 39 #include <stdint.h> 41 40 42 extern udp_error_t udp_uc_create(udp_assoc_t **); 43 extern void udp_uc_set_iplink(udp_assoc_t *, service_id_t); 44 extern udp_error_t udp_uc_set_remote(udp_assoc_t *, inet_ep_t *); 45 extern udp_error_t udp_uc_set_local(udp_assoc_t *, inet_ep_t *); 46 extern udp_error_t udp_uc_set_local_port(udp_assoc_t *, uint16_t); 47 extern udp_error_t udp_uc_send(udp_assoc_t *, inet_ep_t *, void *, size_t, 48 xflags_t); 49 extern udp_error_t udp_uc_receive(udp_assoc_t *, void *, size_t, size_t *, 50 xflags_t *, inet_ep_t *); 51 extern void udp_uc_status(udp_assoc_t *, udp_assoc_status_t *); 52 extern void udp_uc_destroy(udp_assoc_t *); 53 extern void udp_uc_reset(udp_assoc_t *); 41 typedef struct { 42 } portrng_t; 43 44 typedef enum { 45 pf_allow_system = 0x1 46 } portrng_flags_t; 47 48 extern int portrng_create(portrng_t **); 49 extern void portrng_destroy(portrng_t *); 50 extern int portrng_alloc_specific(portrng_t *, uint16_t, void *, 51 portrng_flags_t); 52 extern int portrng_alloc_dynamic(portrng_t *, void *, uint16_t *); 53 extern void portrng_free_port(portrng_t *, uint16_t); 54 54 55 55 #endif  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  