Changeset 8bf672d in mainline for uspace/srv/inet/addrobj.c


Ignore:
Timestamp:
2012-03-30T17:42:11Z (13 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/addrobj.c

    r3b3c689 r8bf672d  
    4646#include "inet.h"
    4747#include "inet_link.h"
     48#include "inet_util.h"
    4849
    4950static FIBRIL_MUTEX_INITIALIZE(addr_list_lock);
    5051static LIST_INITIALIZE(addr_list);
    5152static 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 }
    6053
    6154inet_addrobj_t *inet_addrobj_new(void)
     
    162155}
    163156
    164 /** Find address object matching address @a addr.
     157/** Find address object with the given ID.
    165158 *
    166159 * @param id    Address object ID
     
    188181}
    189182
    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 */
     184int 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)
    193186{
    194187        inet_addr_t lsrc_addr;
Note: See TracChangeset for help on using the changeset viewer.