Changes in uspace/srv/net/udp/udp_inet.c [69a93df7:a2e3ee6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/udp_inet.c
r69a93df7 ra2e3ee6 61 61 udp_pdu_t *pdu; 62 62 63 log_msg(L VL_DEBUG, "udp_inet_ev_recv()");63 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_inet_ev_recv()"); 64 64 65 65 pdu = udp_pdu_new(); … … 67 67 pdu->data_size = dgram->size; 68 68 69 pdu->src.ipv4 = dgram->src.ipv4; 70 pdu->dest.ipv4 = dgram->dest.ipv4; 71 log_msg(LVL_DEBUG, "src: 0x%08x, dest: 0x%08x", 72 pdu->src.ipv4, pdu->dest.ipv4); 69 pdu->src = dgram->src; 70 pdu->dest = dgram->dest; 73 71 74 72 udp_received_pdu(pdu); … … 84 82 inet_dgram_t dgram; 85 83 86 log_msg(L VL_DEBUG, "udp_transmit_pdu()");84 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_transmit_pdu()"); 87 85 88 dgram.src .ipv4 = pdu->src.ipv4;89 dgram.dest .ipv4 = pdu->dest.ipv4;86 dgram.src = pdu->src; 87 dgram.dest = pdu->dest; 90 88 dgram.tos = 0; 91 89 dgram.data = pdu->data; … … 94 92 rc = inet_send(&dgram, INET_TTL_MAX, 0); 95 93 if (rc != EOK) 96 log_msg(L VL_ERROR, "Failed to transmit PDU.");94 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed to transmit PDU."); 97 95 98 96 return rc; … … 105 103 udp_sockpair_t rident; 106 104 107 log_msg(L VL_DEBUG, "udp_received_pdu()");105 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_received_pdu()"); 108 106 109 107 if (udp_pdu_decode(pdu, &rident, &dmsg) != EOK) { 110 log_msg(L VL_WARN, "Not enough memory. PDU dropped.");108 log_msg(LOG_DEFAULT, LVL_WARN, "Not enough memory. PDU dropped."); 111 109 return; 112 110 } … … 124 122 int rc; 125 123 126 log_msg(L VL_DEBUG, "udp_inet_init()");124 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_inet_init()"); 127 125 128 126 rc = inet_init(IP_PROTO_UDP, &udp_inet_ev_ops); 129 127 if (rc != EOK) { 130 log_msg(L VL_ERROR, "Failed connecting to internet service.");128 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed connecting to internet service."); 131 129 return ENOENT; 132 130 }
Note:
See TracChangeset
for help on using the changeset viewer.