Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#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:
Blocking:

Description

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
conditions.

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.

Release:
RTEMS-4.5 and CVS pre-4.6

Attachments (1)

routing_bug (2.3 KB) - added by mikes on 12/03/06 at 13:31:12.
routing_bug

Download all attachments as: .zip

Change History (2)

comment:1 Changed on 02/06/03 at 16:15:17 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 12/03/06 at 13:31:12 by mikes

Attachment: routing_bug added

routing_bug

Note: See TracTickets for help on using tickets.