Skip to content

Commit

Permalink
fea: Add some extra debugging for errors seen on ARM.
Browse files Browse the repository at this point in the history
User reported logs with this error:

[ 2011/10/05 20:24:38.507315  ERROR xorp_fea:8042 FEA fea/data_plane/io/io_ip_socket.cc:1697 proto_socket_read ] proto_socket_read() failed: RX packet size from 192.168.11.11 to 224.0.0.13 with 54 bytes instead of hdr+datalen=20+13824=13844

Interestingly, pimd on his system reported similar issues, so maybe it's an OS issue.
Anyway, try to gather some additional info to track this down.

Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Oct 5, 2011
1 parent 52ea68a commit 6f43389
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xorp/fea/data_plane/io/io_ip_socket.cc
Expand Up @@ -1689,12 +1689,13 @@ IoIpSocket::proto_socket_read(XorpFd fd, IoEventType type)
if (is_datalen_error) {
XLOG_ERROR("proto_socket_read() failed: "
"RX packet size from %s to %s with %d bytes instead of "
"hdr+datalen=%u+%u=%u",
"hdr+datalen=%u+%u=%u, ip_len: %i ip_len_host: %i",
cstring(src_address), cstring(dst_address),
XORP_INT_CAST(nbytes),
XORP_UINT_CAST(ip_hdr_len),
XORP_UINT_CAST(ip_data_len),
XORP_UINT_CAST(ip_hdr_len + ip_data_len));
XORP_UINT_CAST(ip_hdr_len + ip_data_len),
(int)(ip4.ip_len()), (int)(ip4.ip_len_host()));
return; // Error
}

Expand Down

0 comments on commit 6f43389

Please sign in to comment.