Changeset bd8bfc5a in mainline
- Timestamp:
- 2012-02-12T20:43:13Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fe4310f
- Parents:
- df15e5f
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/inet.c
rdf15e5f rbd8bfc5a 137 137 async_exch_t *exch = async_exchange_begin(inet_sess); 138 138 139 int rc = async_req_ 1_1(exch, INET_GET_SRCADDR, remote->ipv4,140 &local_addr);139 int rc = async_req_2_1(exch, INET_GET_SRCADDR, remote->ipv4, 140 tos, &local_addr); 141 141 async_exchange_end(exch); 142 142 -
uspace/srv/ethip/ethip_nic.c
rdf15e5f rbd8bfc5a 303 303 int ethip_nic_send(ethip_nic_t *nic, void *data, size_t size) 304 304 { 305 log_msg(LVL_DEBUG, "ethip_nic_send(size=%zu)", size); 305 306 return nic_send_frame(nic->sess, data, size); 306 307 } -
uspace/srv/inet/inet.c
rdf15e5f rbd8bfc5a 122 122 } 123 123 124 static int inet_get_srcaddr(inet_client_t *client, inet_addr_t *remote, 125 uint8_t tos, inet_addr_t *local) 126 { 127 inet_addrobj_t *addr; 128 129 addr = inet_addrobj_find(remote, iaf_net); 130 if (addr != NULL) { 131 /* Destination is directly accessible */ 132 local->ipv4 = addr->naddr.ipv4; 133 return EOK; 134 } 135 136 return ENOENT; 137 } 138 124 139 static void inet_get_srcaddr_srv(inet_client_t *client, ipc_callid_t callid, 125 140 ipc_call_t *call) 126 141 { 142 inet_addr_t remote; 143 uint8_t tos; 144 inet_addr_t local; 145 int rc; 146 127 147 log_msg(LVL_DEBUG, "inet_get_srcaddr_srv()"); 128 148 129 async_answer_0(callid, ENOTSUP); 149 remote.ipv4 = IPC_GET_ARG1(*call); 150 tos = IPC_GET_ARG2(*call); 151 local.ipv4 = 0; 152 153 rc = inet_get_srcaddr(client, &remote, tos, &local); 154 async_answer_1(callid, rc, local.ipv4); 130 155 } 131 156
Note:
See TracChangeset
for help on using the changeset viewer.