Changeset e767dbf in mainline for uspace/srv/inet/inet.c
- Timestamp:
- 2012-02-09T22:57:05Z (11 years ago)
- Branches:
- lfn, master, serial
- Children:
- 1493811
- Parents:
- ceba4bed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/inet/inet.c
rceba4bed re767dbf 101 101 } 102 102 103 static int inet_send(inet_client_t *client, inet_dgram_t *dgram, 104 uint8_t ttl, int df) 103 static int inet_route_packet(inet_dgram_t *dgram, uint8_t ttl, int df) 105 104 { 106 105 inet_addrobj_t *addr; 107 106 108 addr = inet_addrobj_find(&dgram->dest );107 addr = inet_addrobj_find(&dgram->dest, iaf_net); 109 108 if (addr != NULL) { 110 109 /* Destination is directly accessible */ … … 115 114 log_msg(LVL_DEBUG, "inet_send: No route to destination."); 116 115 return ENOENT; 116 } 117 118 static int inet_send(inet_client_t *client, inet_dgram_t *dgram, 119 uint8_t ttl, int df) 120 { 121 return inet_route_packet(dgram, ttl, df); 117 122 } 118 123 … … 255 260 } 256 261 262 int inet_recv_packet(inet_dgram_t *dgram, uint8_t ttl, int df) 263 { 264 return inet_route_packet(dgram, ttl, df); 265 } 266 257 267 int main(int argc, char *argv[]) 258 268 {
Note: See TracChangeset
for help on using the changeset viewer.