Changeset 8bf672d in mainline for uspace/srv/inet/addrobj.c
- Timestamp:
- 2012-03-30T17:42:11Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 66a272f8
- Parents:
- 3b3c689
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/inet/addrobj.c
r3b3c689 r8bf672d 46 46 #include "inet.h" 47 47 #include "inet_link.h" 48 #include "inet_util.h" 48 49 49 50 static FIBRIL_MUTEX_INITIALIZE(addr_list_lock); 50 51 static LIST_INITIALIZE(addr_list); 51 52 static sysarg_t addr_id = 0; 52 53 static uint32_t inet_netmask(int bits)54 {55 assert(bits >= 1);56 assert(bits < 32);57 58 return BIT_RANGE(uint32_t, 31, 31 - (bits - 1));59 }60 53 61 54 inet_addrobj_t *inet_addrobj_new(void) … … 162 155 } 163 156 164 /** Find address object matching address @a addr.157 /** Find address object with the given ID. 165 158 * 166 159 * @param id Address object ID … … 188 181 } 189 182 190 /** Send datagram to directly reachable destination*/191 int inet_addrobj_send_dgram(inet_addrobj_t *addr, inet_ dgram_t *dgram,192 uint8_t proto, uint8_t ttl, int df)183 /** Send datagram from address object */ 184 int inet_addrobj_send_dgram(inet_addrobj_t *addr, inet_addr_t *ldest, 185 inet_dgram_t *dgram, uint8_t proto, uint8_t ttl, int df) 193 186 { 194 187 inet_addr_t lsrc_addr;
Note:
See TracChangeset
for help on using the changeset viewer.