Changeset c0f3460 in mainline
- Timestamp:
- 2013-07-16T16:28:09Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fc4bf2a
- Parents:
- f4a27304
- Location:
- uspace/srv/net
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/icmp.c
rf4a27304 rc0f3460 153 153 return ENOMEM; 154 154 155 icmp_echo_t *request = (icmp_echo_t *) rdata;155 icmp_echo_t *request = (icmp_echo_t *) rdata; 156 156 157 157 request->type = ICMP_ECHO_REQUEST; -
uspace/srv/net/inetsrv/inet_std.h
rf4a27304 rc0f3460 90 90 }; 91 91 92 /** Bits in ip6_frag_header_t.offsmf */ 93 enum flags_offsmt_bits { 94 /** More fragments */ 95 OF_FLAG_M = 0, 96 /** Fragment offset, highest bit */ 97 OF_FRAGOFF_h = 15, 98 /** Fragment offset, lowest bit */ 99 OF_FRAGOFF_l = 3 100 }; 101 92 102 /** IPv6 Datagram header (fixed part) */ 93 103 typedef struct { … … 114 124 /** Reserved */ 115 125 uint8_t reserved; 116 /** Fragment Offset, Flags*/117 uint16_t foff_flags;126 /** Fragmentation offset, reserved and M flag */ 127 uint16_t offsmf; 118 128 /** Identification */ 119 129 uint32_t id; -
uspace/srv/net/tcp/conn.c
rf4a27304 rc0f3460 312 312 static bool tcp_socket_match(tcp_sock_t *sock, tcp_sock_t *patt) 313 313 { 314 log_msg(LOG_DEFAULT, LVL_DEBUG2, 315 "tcp_socket_match(sock=(%u), pat=(%u))", sock->port, patt->port); 316 314 317 if ((!inet_addr_is_any(&patt->addr)) && 315 318 (!inet_addr_compare(&patt->addr, &sock->addr))) … … 351 354 { 352 355 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_find_ref(%p)", sp); 356 357 log_msg(LOG_DEFAULT, LVL_DEBUG2, "compare conn (f:(%u), l:(%u))", 358 sp->foreign.port, sp->local.port); 353 359 354 360 fibril_mutex_lock(&conn_list_lock); … … 357 363 tcp_conn_t *conn = list_get_instance(link, tcp_conn_t, link); 358 364 tcp_sockpair_t *csp = &conn->ident; 365 366 log_msg(LOG_DEFAULT, LVL_DEBUG2, " - with (f:(%u), l:(%u))", 367 csp->foreign.port, csp->local.port); 359 368 360 369 if (tcp_sockpair_match(sp, csp)) { -
uspace/srv/net/tcp/tcp.c
rf4a27304 rc0f3460 54 54 #define NAME "tcp" 55 55 56 #define IP_PROTO_TCP 657 58 56 static int tcp_inet_ev_recv(inet_dgram_t *dgram); 59 57 static void tcp_received_pdu(tcp_pdu_t *pdu); -
uspace/srv/net/tcp/tqueue.c
rf4a27304 rc0f3460 282 282 void tcp_transmit_segment(tcp_sockpair_t *sp, tcp_segment_t *seg) 283 283 { 284 log_msg(LOG_DEFAULT, LVL_DEBUG, 285 "tcp_transmit_segment(f:(%u),l:(%u), %p)", 286 sp->local.port, sp->foreign.port, seg); 287 284 288 log_msg(LOG_DEFAULT, LVL_DEBUG, "SEG.SEQ=%" PRIu32 ", SEG.WND=%" PRIu32, 285 289 seg->seq, seg->wnd); -
uspace/srv/net/tcp/ucall.c
rf4a27304 rc0f3460 298 298 tcp_conn_t *conn; 299 299 300 log_msg(LOG_DEFAULT, LVL_DEBUG, 301 "tcp_as_segment_arrived(f:(%u), l:(%u))", 302 sp->foreign.port, sp->local.port); 303 300 304 conn = tcp_conn_find_ref(sp); 301 305 if (conn == NULL) { -
uspace/srv/net/udp/assoc.c
rf4a27304 rc0f3460 372 372 static bool udp_socket_match(udp_sock_t *sock, udp_sock_t *patt) 373 373 { 374 log_msg(LOG_DEFAULT, LVL_DEBUG, 375 "udp_socket_match(sock=(%u), pat=(%u))", sock->port, patt->port); 376 374 377 if ((!inet_addr_is_any(&patt->addr)) && 375 378 (!inet_addr_compare(&patt->addr, &sock->addr)))
Note:
See TracChangeset
for help on using the changeset viewer.