Changeset 5572ad1 in mainline for uspace/srv
- Timestamp:
- 2012-08-23T21:50:46Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 276e44a
- Parents:
- ae827d0 (diff), db81577 (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
- Files:
-
- 6 edited
-
ethip/pdu.c (modified) (2 diffs)
-
tcp/conn.c (modified) (2 diffs)
-
tcp/segment.c (modified) (1 diff)
-
tcp/sock.c (modified) (3 diffs)
-
tcp/tqueue.c (modified) (1 diff)
-
udp/sock.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/ethip/pdu.c
rae827d0 r5572ad1 69 69 frame->size); 70 70 71 log_msg(LVL_DEBUG, "Encoding Ethernet frame src=%llx dest=%llx etype=%x", 72 frame->src, frame->dest, frame->etype_len); 71 log_msg(LVL_DEBUG, "Encoding Ethernet frame " 72 "src=%" PRIx64 " dest=%" PRIx64 " etype=%x", 73 frame->src.addr, frame->dest.addr, frame->etype_len); 73 74 log_msg(LVL_DEBUG, "Encoded Ethernet frame (%zu bytes)", size); 74 75 … … 104 105 frame->size); 105 106 106 log_msg(LVL_DEBUG, "Decoding Ethernet frame src=%llx dest=%llx etype=%x", 107 frame->src, frame->dest, frame->etype_len); 107 log_msg(LVL_DEBUG, "Decoding Ethernet frame " 108 "src=%" PRIx64 " dest=%" PRIx64 " etype=%x", 109 frame->src.addr, frame->dest.addr, frame->etype_len); 108 110 log_msg(LVL_DEBUG, "Decoded Ethernet frame payload (%zu bytes)", frame->size); 109 111 -
uspace/srv/net/tcp/conn.c
rae827d0 r5572ad1 999 999 } else { 1000 1000 log_msg(LVL_DEBUG, "%s: Nothing left in segment, dropping " 1001 "(xfer_size=%zu, SEG.LEN=% zu, seg->ctrl=%u)",1002 conn->name, xfer_size, seg->len, (unsigned )seg->ctrl);1001 "(xfer_size=%zu, SEG.LEN=%" PRIu32 ", seg->ctrl=%u)", 1002 conn->name, xfer_size, seg->len, (unsigned int) seg->ctrl); 1003 1003 /* Nothing left in segment */ 1004 1004 tcp_segment_delete(seg); … … 1146 1146 void tcp_conn_segment_arrived(tcp_conn_t *conn, tcp_segment_t *seg) 1147 1147 { 1148 log_msg(LVL_DEBUG, "% c: tcp_conn_segment_arrived(%p)",1148 log_msg(LVL_DEBUG, "%s: tcp_conn_segment_arrived(%p)", 1149 1149 conn->name, seg); 1150 1150 -
uspace/srv/net/tcp/segment.c
rae827d0 r5572ad1 250 250 log_msg(LVL_DEBUG2, "Segment dump:"); 251 251 log_msg(LVL_DEBUG2, " - ctrl = %u", (unsigned)seg->ctrl); 252 log_msg(LVL_DEBUG2, " - seq = % " PRIu32, seg->seq);253 log_msg(LVL_DEBUG2, " - ack = % " PRIu32, seg->ack);254 log_msg(LVL_DEBUG2, " - len = % " PRIu32, seg->len);255 log_msg(LVL_DEBUG2, " - wnd = % " PRIu32, seg->wnd);256 log_msg(LVL_DEBUG2, " - up = % " PRIu32, seg->up);252 log_msg(LVL_DEBUG2, " - seq = %" PRIu32, seg->seq); 253 log_msg(LVL_DEBUG2, " - ack = %" PRIu32, seg->ack); 254 log_msg(LVL_DEBUG2, " - len = %" PRIu32, seg->len); 255 log_msg(LVL_DEBUG2, " - wnd = %" PRIu32, seg->wnd); 256 log_msg(LVL_DEBUG2, " - up = %" PRIu32, seg->up); 257 257 } 258 258 -
uspace/srv/net/tcp/sock.c
rae827d0 r5572ad1 114 114 *rsock = NULL; 115 115 116 sock = calloc( sizeof(tcp_sockdata_t), 1);116 sock = calloc(1, sizeof(tcp_sockdata_t)); 117 117 if (sock == NULL) 118 118 return ENOMEM; … … 277 277 278 278 socket->backlog = backlog; 279 socket->lconn = calloc( sizeof(tcp_conn_t *), backlog);279 socket->lconn = calloc(backlog, sizeof(tcp_conn_t *)); 280 280 if (socket->lconn == NULL) { 281 281 fibril_mutex_unlock(&socket->lock); … … 293 293 for (i = 0; i < backlog; i++) { 294 294 295 lconn = calloc( sizeof(tcp_sock_lconn_t), 1);295 lconn = calloc(1, sizeof(tcp_sock_lconn_t)); 296 296 if (lconn == NULL) { 297 297 /* XXX Clean up */ -
uspace/srv/net/tcp/tqueue.c
rae827d0 r5572ad1 172 172 173 173 xfer_seqlen = min(snd_buf_seqlen, avail_wnd); 174 log_msg(LVL_DEBUG, "%s: snd_buf_seqlen = %zu, SND.WND = % zu, "174 log_msg(LVL_DEBUG, "%s: snd_buf_seqlen = %zu, SND.WND = %" PRIu32 ", " 175 175 "xfer_seqlen = %zu", conn->name, snd_buf_seqlen, conn->snd_wnd, 176 176 xfer_seqlen); -
uspace/srv/net/udp/sock.c
rae827d0 r5572ad1 104 104 105 105 log_msg(LVL_DEBUG, "udp_sock_socket()"); 106 sock = calloc( sizeof(udp_sockdata_t), 1);106 sock = calloc(1, sizeof(udp_sockdata_t)); 107 107 if (sock == NULL) { 108 108 async_answer_0(callid, ENOMEM);
Note:
See TracChangeset
for help on using the changeset viewer.
