Changeset a1e2df13 in mainline for uspace/srv/net/inetsrv
- Timestamp:
- 2012-11-11T21:31:03Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 25eec4ef
- Parents:
- 141a20d (diff), d1538a1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace/srv/net/inetsrv
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/addrobj.c
r141a20d ra1e2df13 59 59 60 60 if (addr == NULL) { 61 log_msg(L VL_ERROR, "Failed allocating address object. "61 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed allocating address object. " 62 62 "Out of memory."); 63 63 return NULL; … … 114 114 uint32_t mask; 115 115 116 log_msg(L VL_DEBUG, "inet_addrobj_find(%x)", (unsigned)addr->ipv4);116 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find(%x)", (unsigned)addr->ipv4); 117 117 118 118 fibril_mutex_lock(&addr_list_lock); … … 125 125 if ((naddr->naddr.ipv4 & mask) == (addr->ipv4 & mask)) { 126 126 fibril_mutex_unlock(&addr_list_lock); 127 log_msg(L VL_DEBUG, "inet_addrobj_find: found %p",127 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find: found %p", 128 128 naddr); 129 129 return naddr; … … 131 131 } 132 132 133 log_msg(L VL_DEBUG, "inet_addrobj_find: Not found");133 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find: Not found"); 134 134 fibril_mutex_unlock(&addr_list_lock); 135 135 … … 147 147 assert(fibril_mutex_is_locked(&addr_list_lock)); 148 148 149 log_msg(L VL_DEBUG, "inet_addrobj_find_by_name_locked('%s', '%s')",149 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find_by_name_locked('%s', '%s')", 150 150 name, ilink->svc_name); 151 151 … … 155 155 156 156 if (naddr->ilink == ilink && str_cmp(naddr->name, name) == 0) { 157 log_msg(L VL_DEBUG, "inet_addrobj_find_by_name_locked: found %p",157 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find_by_name_locked: found %p", 158 158 naddr); 159 159 return naddr; … … 161 161 } 162 162 163 log_msg(L VL_DEBUG, "inet_addrobj_find_by_name_locked: Not found");163 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find_by_name_locked: Not found"); 164 164 165 165 return NULL; … … 177 177 inet_addrobj_t *aobj; 178 178 179 log_msg(L VL_DEBUG, "inet_addrobj_find_by_name('%s', '%s')",179 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find_by_name('%s', '%s')", 180 180 name, ilink->svc_name); 181 181 … … 194 194 inet_addrobj_t *inet_addrobj_get_by_id(sysarg_t id) 195 195 { 196 log_msg(L VL_DEBUG, "inet_addrobj_get_by_id(%zu)", (size_t)id);196 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_get_by_id(%zu)", (size_t)id); 197 197 198 198 fibril_mutex_lock(&addr_list_lock); -
uspace/srv/net/inetsrv/icmp.c
r141a20d ra1e2df13 57 57 uint8_t type; 58 58 59 log_msg(L VL_DEBUG, "icmp_recv()");59 log_msg(LOG_DEFAULT, LVL_DEBUG, "icmp_recv()"); 60 60 61 61 if (dgram->size < 1) … … 84 84 int rc; 85 85 86 log_msg(L VL_DEBUG, "icmp_recv_echo_request()");86 log_msg(LOG_DEFAULT, LVL_DEBUG, "icmp_recv_echo_request()"); 87 87 88 88 if (dgram->size < sizeof(icmp_echo_t)) … … 124 124 uint16_t ident; 125 125 126 log_msg(L VL_DEBUG, "icmp_recv_echo_reply()");126 log_msg(LOG_DEFAULT, LVL_DEBUG, "icmp_recv_echo_reply()"); 127 127 128 128 if (dgram->size < sizeof(icmp_echo_t)) -
uspace/srv/net/inetsrv/inet_link.c
r141a20d ra1e2df13 64 64 int rc; 65 65 66 log_msg(L VL_DEBUG, "inet_iplink_recv()");66 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_iplink_recv()"); 67 67 rc = inet_pdu_decode(sdu->data, sdu->size, &packet); 68 68 if (rc != EOK) { 69 log_msg(L VL_DEBUG, "failed decoding PDU");69 log_msg(LOG_DEFAULT, LVL_DEBUG, "failed decoding PDU"); 70 70 return rc; 71 71 } 72 72 73 log_msg(L VL_DEBUG, "call inet_recv_packet()");73 log_msg(LOG_DEFAULT, LVL_DEBUG, "call inet_recv_packet()"); 74 74 rc = inet_recv_packet(&packet); 75 log_msg(L VL_DEBUG, "call inet_recv_packet -> %d", rc);75 log_msg(LOG_DEFAULT, LVL_DEBUG, "call inet_recv_packet -> %d", rc); 76 76 free(packet.data); 77 77 … … 91 91 rc = loc_category_get_id("iplink", &iplink_cat, IPC_FLAG_BLOCKING); 92 92 if (rc != EOK) { 93 log_msg(L VL_ERROR, "Failed resolving category 'iplink'.");93 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed resolving category 'iplink'."); 94 94 fibril_mutex_unlock(&inet_discovery_lock); 95 95 return ENOENT; … … 98 98 rc = loc_category_get_svcs(iplink_cat, &svcs, &count); 99 99 if (rc != EOK) { 100 log_msg(L VL_ERROR, "Failed getting list of IP links.");100 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed getting list of IP links."); 101 101 fibril_mutex_unlock(&inet_discovery_lock); 102 102 return EIO; … … 116 116 117 117 if (!already_known) { 118 log_msg(L VL_DEBUG, "Found IP link '%lu'",118 log_msg(LOG_DEFAULT, LVL_DEBUG, "Found IP link '%lu'", 119 119 (unsigned long) svcs[i]); 120 120 rc = inet_link_open(svcs[i]); 121 121 if (rc != EOK) 122 log_msg(L VL_ERROR, "Could not open IP link.");122 log_msg(LOG_DEFAULT, LVL_ERROR, "Could not open IP link."); 123 123 } 124 124 } … … 133 133 134 134 if (ilink == NULL) { 135 log_msg(L VL_ERROR, "Failed allocating link structure. "135 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed allocating link structure. " 136 136 "Out of memory."); 137 137 return NULL; … … 156 156 int rc; 157 157 158 log_msg(L VL_DEBUG, "inet_link_open()");158 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_link_open()"); 159 159 ilink = inet_link_new(); 160 160 if (ilink == NULL) … … 166 166 rc = loc_service_get_name(sid, &ilink->svc_name); 167 167 if (rc != EOK) { 168 log_msg(L VL_ERROR, "Failed getting service name.");168 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed getting service name."); 169 169 goto error; 170 170 } … … 172 172 ilink->sess = loc_service_connect(EXCHANGE_SERIALIZE, sid, 0); 173 173 if (ilink->sess == NULL) { 174 log_msg(L VL_ERROR, "Failed connecting '%s'", ilink->svc_name);174 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed connecting '%s'", ilink->svc_name); 175 175 goto error; 176 176 } … … 178 178 rc = iplink_open(ilink->sess, &inet_iplink_ev_ops, &ilink->iplink); 179 179 if (rc != EOK) { 180 log_msg(L VL_ERROR, "Failed opening IP link '%s'",180 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed opening IP link '%s'", 181 181 ilink->svc_name); 182 182 goto error; … … 185 185 rc = iplink_get_mtu(ilink->iplink, &ilink->def_mtu); 186 186 if (rc != EOK) { 187 log_msg(L VL_ERROR, "Failed determinning MTU of link '%s'",187 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed determinning MTU of link '%s'", 188 188 ilink->svc_name); 189 189 goto error; 190 190 } 191 191 192 log_msg(L VL_DEBUG, "Opened IP link '%s'", ilink->svc_name);192 log_msg(LOG_DEFAULT, LVL_DEBUG, "Opened IP link '%s'", ilink->svc_name); 193 193 list_append(&ilink->link_list, &inet_link_list); 194 194 … … 209 209 rc = inet_addrobj_add(addr); 210 210 if (rc != EOK) { 211 log_msg(L VL_ERROR, "Failed setting IP address on internet link.");211 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed setting IP address on internet link."); 212 212 inet_addrobj_delete(addr); 213 213 /* XXX Roll back */ … … 218 218 rc = iplink_addr_add(ilink->iplink, &iaddr); 219 219 if (rc != EOK) { 220 log_msg(L VL_ERROR, "Failed setting IP address on internet link.");220 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed setting IP address on internet link."); 221 221 inet_addrobj_remove(addr); 222 222 inet_addrobj_delete(addr); … … 245 245 rc = loc_register_cat_change_cb(inet_link_cat_change_cb); 246 246 if (rc != EOK) { 247 log_msg(L VL_ERROR, "Failed registering callback for IP link "247 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering callback for IP link " 248 248 "discovery (%d).", rc); 249 249 return rc; -
uspace/srv/net/inetsrv/inetcfg.c
r141a20d ra1e2df13 61 61 ilink = inet_link_get_by_id(link_id); 62 62 if (ilink == NULL) { 63 log_msg(L VL_DEBUG, "Link %lu not found.",63 log_msg(LOG_DEFAULT, LVL_DEBUG, "Link %lu not found.", 64 64 (unsigned long) link_id); 65 65 return ENOENT; … … 77 77 rc = inet_addrobj_add(addr); 78 78 if (rc != EOK) { 79 log_msg(L VL_DEBUG, "Duplicate address name '%s'.", addr->name);79 log_msg(LOG_DEFAULT, LVL_DEBUG, "Duplicate address name '%s'.", addr->name); 80 80 inet_addrobj_delete(addr); 81 81 return rc; … … 85 85 rc = iplink_addr_add(ilink->iplink, &iaddr); 86 86 if (rc != EOK) { 87 log_msg(L VL_ERROR, "Failed setting IP address on internet link.");87 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed setting IP address on internet link."); 88 88 inet_addrobj_remove(addr); 89 89 inet_addrobj_delete(addr); … … 130 130 ilink = inet_link_get_by_id(link_id); 131 131 if (ilink == NULL) { 132 log_msg(L VL_DEBUG, "Link %zu not found.", (size_t) link_id);132 log_msg(LOG_DEFAULT, LVL_DEBUG, "Link %zu not found.", (size_t) link_id); 133 133 return ENOENT; 134 134 } … … 136 136 addr = inet_addrobj_find_by_name(name, ilink); 137 137 if (addr == NULL) { 138 log_msg(L VL_DEBUG, "Address '%s' not found.", name);138 log_msg(LOG_DEFAULT, LVL_DEBUG, "Address '%s' not found.", name); 139 139 return ENOENT; 140 140 } … … 228 228 sroute = inet_sroute_find_by_name(name); 229 229 if (sroute == NULL) { 230 log_msg(L VL_DEBUG, "Static route '%s' not found.", name);230 log_msg(LOG_DEFAULT, LVL_DEBUG, "Static route '%s' not found.", name); 231 231 return ENOENT; 232 232 } … … 245 245 int rc; 246 246 247 log_msg(L VL_DEBUG, "inetcfg_addr_create_static_srv()");247 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_addr_create_static_srv()"); 248 248 249 249 rc = async_data_write_accept((void **) &name, true, 0, LOC_NAME_MAXLEN, … … 269 269 int rc; 270 270 271 log_msg(L VL_DEBUG, "inetcfg_addr_delete_srv()");271 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_addr_delete_srv()"); 272 272 273 273 addr_id = IPC_GET_ARG1(*call); … … 287 287 288 288 addr_id = IPC_GET_ARG1(*call); 289 log_msg(L VL_DEBUG, "inetcfg_addr_get_srv()");289 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_addr_get_srv()"); 290 290 291 291 ainfo.naddr.ipv4 = 0; … … 321 321 int rc; 322 322 323 log_msg(L VL_DEBUG, "inetcfg_addr_get_id_srv()");323 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_addr_get_id_srv()"); 324 324 325 325 link_id = IPC_GET_ARG1(*call); … … 348 348 int rc; 349 349 350 log_msg(L VL_DEBUG, "inetcfg_get_addr_list_srv()");350 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_get_addr_list_srv()"); 351 351 352 352 if (!async_data_read_receive(&rcallid, &max_size)) { … … 382 382 int rc; 383 383 384 log_msg(L VL_DEBUG, "inetcfg_get_link_list_srv()");384 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_get_link_list_srv()"); 385 385 386 386 if (!async_data_read_receive(&rcallid, &max_size)) { … … 415 415 int rc; 416 416 417 log_msg(L VL_DEBUG, "inetcfg_get_sroute_list_srv()");417 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_get_sroute_list_srv()"); 418 418 419 419 if (!async_data_read_receive(&rcallid, &max_size)) { … … 449 449 450 450 link_id = IPC_GET_ARG1(*call); 451 log_msg(L VL_DEBUG, "inetcfg_link_get_srv()");451 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_link_get_srv()"); 452 452 453 453 linfo.name = NULL; … … 482 482 int rc; 483 483 484 log_msg(L VL_DEBUG, "inetcfg_sroute_create_srv()");484 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_sroute_create_srv()"); 485 485 486 486 rc = async_data_write_accept((void **) &name, true, 0, LOC_NAME_MAXLEN, … … 506 506 int rc; 507 507 508 log_msg(L VL_DEBUG, "inetcfg_sroute_delete_srv()");508 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_sroute_delete_srv()"); 509 509 510 510 sroute_id = IPC_GET_ARG1(*call); … … 524 524 525 525 sroute_id = IPC_GET_ARG1(*call); 526 log_msg(L VL_DEBUG, "inetcfg_sroute_get_srv()");526 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_sroute_get_srv()"); 527 527 528 528 srinfo.dest.ipv4 = 0; … … 557 557 int rc; 558 558 559 log_msg(L VL_DEBUG, "inetcfg_sroute_get_id_srv()");559 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_sroute_get_id_srv()"); 560 560 561 561 rc = async_data_write_accept((void **) &name, true, 0, LOC_NAME_MAXLEN, … … 574 574 void inet_cfg_conn(ipc_callid_t iid, ipc_call_t *icall, void *arg) 575 575 { 576 log_msg(L VL_DEBUG, "inet_cfg_conn()");576 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_cfg_conn()"); 577 577 578 578 /* Accept the connection */ -
uspace/srv/net/inetsrv/inetping.c
r141a20d ra1e2df13 76 76 client = inetping_client_find(ident); 77 77 if (client == NULL) { 78 log_msg(L VL_DEBUG, "Unknown ICMP ident. Dropping.");78 log_msg(LOG_DEFAULT, LVL_DEBUG, "Unknown ICMP ident. Dropping."); 79 79 return ENOENT; 80 80 } … … 107 107 int rc; 108 108 109 log_msg(L VL_DEBUG, "inetping_send_srv()");109 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetping_send_srv()"); 110 110 111 111 rc = async_data_write_accept((void **) &sdu.data, false, 0, 0, 0, … … 133 133 int rc; 134 134 135 log_msg(L VL_DEBUG, "inetping_get_srcaddr_srv()");135 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetping_get_srcaddr_srv()"); 136 136 137 137 remote.ipv4 = IPC_GET_ARG1(*call); … … 192 192 int rc; 193 193 194 log_msg(L VL_DEBUG, "inetping_conn()");194 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetping_conn()"); 195 195 196 196 /* Accept the connection */ -
uspace/srv/net/inetsrv/inetsrv.c
r141a20d ra1e2df13 66 66 static int inet_init(void) 67 67 { 68 log_msg(L VL_DEBUG, "inet_init()");68 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_init()"); 69 69 70 70 async_set_client_connection(inet_client_conn); … … 72 72 int rc = loc_server_register(NAME); 73 73 if (rc != EOK) { 74 log_msg(L VL_ERROR, "Failed registering server (%d).", rc);74 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server (%d).", rc); 75 75 return EEXIST; 76 76 } … … 80 80 INET_PORT_DEFAULT); 81 81 if (rc != EOK) { 82 log_msg(L VL_ERROR, "Failed registering service (%d).", rc);82 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc); 83 83 return EEXIST; 84 84 } … … 87 87 INET_PORT_CFG); 88 88 if (rc != EOK) { 89 log_msg(L VL_ERROR, "Failed registering service (%d).", rc);89 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc); 90 90 return EEXIST; 91 91 } … … 94 94 INET_PORT_PING); 95 95 if (rc != EOK) { 96 log_msg(L VL_ERROR, "Failed registering service (%d).", rc);96 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc); 97 97 return EEXIST; 98 98 } … … 108 108 ipc_call_t *call) 109 109 { 110 log_msg(L VL_DEBUG, "inet_callback_create_srv()");110 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_callback_create_srv()"); 111 111 112 112 async_sess_t *sess = async_callback_receive(EXCHANGE_SERIALIZE); … … 143 143 144 144 if (dir->aobj == NULL) { 145 log_msg(L VL_DEBUG, "inet_send: No route to destination.");145 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_send: No route to destination."); 146 146 return ENOENT; 147 147 } … … 194 194 int rc; 195 195 196 log_msg(L VL_DEBUG, "inet_get_srcaddr_srv()");196 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_get_srcaddr_srv()"); 197 197 198 198 remote.ipv4 = IPC_GET_ARG1(*call); … … 212 212 int rc; 213 213 214 log_msg(L VL_DEBUG, "inet_send_srv()");214 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_send_srv()"); 215 215 216 216 dgram.src.ipv4 = IPC_GET_ARG1(*call); … … 238 238 239 239 proto = IPC_GET_ARG1(*call); 240 log_msg(L VL_DEBUG, "inet_set_proto_srv(%lu)", (unsigned long) proto);240 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_set_proto_srv(%lu)", (unsigned long) proto); 241 241 242 242 if (proto > UINT8_MAX) { … … 272 272 inet_client_t client; 273 273 274 log_msg(L VL_DEBUG, "inet_default_conn()");274 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_default_conn()"); 275 275 276 276 /* Accept the connection */ … … 378 378 inet_client_t *client; 379 379 380 log_msg(L VL_DEBUG, "inet_recv_dgram_local()");380 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_recv_dgram_local()"); 381 381 382 382 /* ICMP messages are handled internally */ … … 386 386 client = inet_client_find(proto); 387 387 if (client == NULL) { 388 log_msg(L VL_DEBUG, "No client found for protocol 0x%" PRIx8,388 log_msg(LOG_DEFAULT, LVL_DEBUG, "No client found for protocol 0x%" PRIx8, 389 389 proto); 390 390 return ENOENT; … … 428 428 printf(NAME ": HelenOS Internet Protocol service\n"); 429 429 430 if (log_init(NAME , LVL_WARN) != EOK) {430 if (log_init(NAME) != EOK) { 431 431 printf(NAME ": Failed to initialize logging.\n"); 432 432 return 1; -
uspace/srv/net/inetsrv/pdu.c
r141a20d ra1e2df13 204 204 uint16_t foff; 205 205 206 log_msg(L VL_DEBUG, "inet_pdu_decode()");206 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_pdu_decode()"); 207 207 208 208 if (size < sizeof(ip_header_t)) { 209 log_msg(L VL_DEBUG, "PDU too short (%zu)", size);209 log_msg(LOG_DEFAULT, LVL_DEBUG, "PDU too short (%zu)", size); 210 210 return EINVAL; 211 211 } … … 216 216 hdr->ver_ihl); 217 217 if (version != 4) { 218 log_msg(L VL_DEBUG, "Version (%d) != 4", version);218 log_msg(LOG_DEFAULT, LVL_DEBUG, "Version (%d) != 4", version); 219 219 return EINVAL; 220 220 } … … 222 222 tot_len = uint16_t_be2host(hdr->tot_len); 223 223 if (tot_len < sizeof(ip_header_t)) { 224 log_msg(L VL_DEBUG, "Total Length too small (%zu)", tot_len);224 log_msg(LOG_DEFAULT, LVL_DEBUG, "Total Length too small (%zu)", tot_len); 225 225 return EINVAL; 226 226 } 227 227 228 228 if (tot_len > size) { 229 log_msg(L VL_DEBUG, "Total Length = %zu > PDU size = %zu",229 log_msg(LOG_DEFAULT, LVL_DEBUG, "Total Length = %zu > PDU size = %zu", 230 230 tot_len, size); 231 231 return EINVAL; … … 256 256 packet->data = calloc(packet->size, 1); 257 257 if (packet->data == NULL) { 258 log_msg(L VL_WARN, "Out of memory.");258 log_msg(LOG_DEFAULT, LVL_WARN, "Out of memory."); 259 259 return ENOMEM; 260 260 } -
uspace/srv/net/inetsrv/reass.c
r141a20d ra1e2df13 86 86 int rc; 87 87 88 log_msg(L VL_DEBUG, "inet_reass_queue_packet()");88 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_reass_queue_packet()"); 89 89 90 90 fibril_mutex_lock(&reass_dgram_map_lock); … … 95 95 /* Only happens when we are out of memory */ 96 96 fibril_mutex_unlock(&reass_dgram_map_lock); 97 log_msg(L VL_DEBUG, "Allocation failed, packet dropped.");97 log_msg(LOG_DEFAULT, LVL_DEBUG, "Allocation failed, packet dropped."); 98 98 return ENOMEM; 99 99 } -
uspace/srv/net/inetsrv/sroute.c
r141a20d ra1e2df13 57 57 58 58 if (sroute == NULL) { 59 log_msg(L VL_ERROR, "Failed allocating static route object. "59 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed allocating static route object. " 60 60 "Out of memory."); 61 61 return NULL; … … 100 100 inet_sroute_t *best; 101 101 102 log_msg(L VL_DEBUG, "inet_sroute_find(%x)", (unsigned)addr->ipv4);102 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_sroute_find(%x)", (unsigned)addr->ipv4); 103 103 104 104 fibril_mutex_lock(&sroute_list_lock); … … 117 117 if ((sroute->dest.ipv4 & mask) == (addr->ipv4 & mask)) { 118 118 fibril_mutex_unlock(&sroute_list_lock); 119 log_msg(L VL_DEBUG, "inet_sroute_find: found %p",119 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_sroute_find: found %p", 120 120 sroute); 121 121 return sroute; … … 123 123 } 124 124 125 log_msg(L VL_DEBUG, "inet_sroute_find: Not found");125 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_sroute_find: Not found"); 126 126 fibril_mutex_unlock(&sroute_list_lock); 127 127 … … 136 136 inet_sroute_t *inet_sroute_find_by_name(const char *name) 137 137 { 138 log_msg(L VL_DEBUG, "inet_sroute_find_by_name('%s')",138 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_sroute_find_by_name('%s')", 139 139 name); 140 140 … … 147 147 if (str_cmp(sroute->name, name) == 0) { 148 148 fibril_mutex_unlock(&sroute_list_lock); 149 log_msg(L VL_DEBUG, "inet_sroute_find_by_name: found %p",149 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_sroute_find_by_name: found %p", 150 150 sroute); 151 151 return sroute; … … 153 153 } 154 154 155 log_msg(L VL_DEBUG, "inet_sroute_find_by_name: Not found");155 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_sroute_find_by_name: Not found"); 156 156 fibril_mutex_unlock(&sroute_list_lock); 157 157 … … 166 166 inet_sroute_t *inet_sroute_get_by_id(sysarg_t id) 167 167 { 168 log_msg(L VL_DEBUG, "inet_sroute_get_by_id(%zu)", (size_t)id);168 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_sroute_get_by_id(%zu)", (size_t)id); 169 169 170 170 fibril_mutex_lock(&sroute_list_lock);
Note:
See TracChangeset
for help on using the changeset viewer.