#342 closed defect (fixed)

Network Routing Bug

Reported by: mikes Owned by: Eric Norum
Priority: normal Milestone: 2
Component: network/legacy Version: 4.6
Severity: major Keywords:
Cc: bugs@…, joel.sherrill@… Blocked By:


I think I found a small bug in the RTEMS version of the function
m_copyback(). I am using the rtems-ss-20021118 snapshot.

The RTEMS version of the m_copyback is changing the m_len value of
the mbuf. I looked into the source from another BSD system and
the mbuf length is not changed inside this function.

The m_copyback function is only being used in the net/rtsock.c file.
So I think this problem is only visable under certain routing table

Below is my patch to fix the problem. The uipc_mbuf.c file is located
in the cpukit/libnetworking/kern directory. Please review and let
me know if you think this the correct fix.

RTEMS-4.5 and CVS pre-4.6

Attachments (1)

routing_bug (2.3 KB) - added by mikes on Dec 3, 2006 at 1:31:12 PM.

Download all attachments as: .zip

Change History (2)

comment:1 Changed on Feb 6, 2003 at 4:15:17 PM by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: open->closed
State-Changed-Why: patch applied. Just wanted to make sure this ended up in

GNATS just in case.

Changed on Dec 3, 2006 at 1:31:12 PM by mikes

Attachment: routing_bug added


Note: See TracTickets for help on using tickets.