From: Bill Paul <[EMAIL PROTECTED]>
> We need version information! How recent is your version of -current!
> What's the rcsid from if_aue.c! Details please!

 * $FreeBSD: src/sys/dev/usb/if_aue.c,v 1.5 2000/01/10 23:12:50 wpaul Exp $
 
> Print out the contents of the mbuf!! Show is what it thinks the real
> length is!

I replaced binary data to "...data..." which may confuse mail agent.
I don't know this is enough or not.  Please let me know if you want
more information.  I'll update if_aue.c to v1.6 and try without IPFW.


(kgdb) up 11
#11 0xc021b7af in aue_encap (sc=0xc0828600, m=0xc05d4e00, idx=0)
    at ../../dev/usb/if_aue.c:1107
l1107           m_copydata(m, 0, m->m_pkthdr.len, c->aue_buf + 2);
(kgdb) list
1102    
1103            /*
1104             * Copy the mbuf data into a contiguous buffer, leaving two
1105             * bytes at the beginning to hold the frame length.
1106             */
1107            m_copydata(m, 0, m->m_pkthdr.len, c->aue_buf + 2);
1108            c->aue_mbuf = m;
1109    
1110            /*
1111             * XXX I don't understand why, but transfers that
(kgdb) print *m
$1 = {m_hdr = {mh_next = 0xc05ac100, mh_nextpkt = 0x0, 
    mh_data = 0xc05d4e22 "", mh_len = 54, mh_type = 2, mh_flags = 2}, M_dat = {
    MH = {MH_pkthdr = {rcvif = 0x0, len = 1514, header = 0x280602bc "\""}, 
      MH_dat = {MH_ext = {
          ext_buf = 0x30005000 <Address 0x30005000 out of bounds>, 
          ext_free = 0x311a0043, ext_size = 1629896704, ext_ref = 0x8c710}, 
        MH_databuf = "...data...", '\000' <repeats 41 times>}}, 
    M_databuf = "...data...", '\000' <repeats 41 times>}}
(kgdb) print *m->m_hdr.mh_next
$2 = {m_hdr = {mh_next = 0x0, mh_nextpkt = 0x0, 
    mh_data = 0xc05cd800 "...data..."..., 
    mh_len = 284, mh_type = 1, mh_flags = 1}, M_dat = {MH = {MH_pkthdr = {
        rcvif = 0xc0828600, len = 60, header = 0x280602bc "\""}, MH_dat = {
        MH_ext = {
          ext_buf = 0xc05cd800 "...data..."..., 
          ext_free = 0, ext_size = 2048, ext_ref = 0}, 
        MH_databuf = "...data..."}}, 
    M_databuf = "...data..."}}
(kgdb)


Jun Kuriyama // [EMAIL PROTECTED]
            // [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to