Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 2001 09:44:35 -0800 (PST)
From:      david@inty.net
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/24723: Bug in SKIP - packet length not set correctly
Message-ID:  <200101291744.f0THiZ097107@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         24723
>Category:       ports
>Synopsis:       Bug in SKIP - packet length not set correctly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 29 09:50:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     David Hedley
>Release:        3.x 4.x
>Organization:
Intelligent Network Technology Ltd
>Environment:
FreeBSD bill.inty.net 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Mon Mar 20 22:50:22 GMT 2000 root@monster.cdrom.com:/usr/src/sys/compile/GENERIC  i386

>Description:

The packet length in the mbuf output from skip is still set to the size of the unencrypted packet and not the encrypted packet. Any ethernet driver which relies on this length (e.g. if_rl.c) will output truncated packets
>How-To-Repeat:

Run skip through a Realtek 8139 card, you will see truncated packets being output
>Fix:

Apply the following patch (against 4.0-RELEASE)

*** skip_es.c.orig      Mon Jan 29 17:39:49 2001
--- skip_es.c   Mon Jan 29 17:40:14 2001
***************
*** 2314,2319 ****
--- 2314,2321 ----
  
        skip_ipsum(hptr);
  
+       m->m_pkthdr.len = m->m_len;
+ 
        (*skip_if->if_output)(skip_if->ifp, m, dst, rtp);
        RTFREE(rtp);
  }


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101291744.f0THiZ097107>