lkml.org 
[lkml]   [1999]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRE: Token Ring layer clobbers first byte of saddr
Giuliano Procida writes:
> This line uses a test for a variable (rii_p) that is not always set when the
> byte is clobbered. However, I don't know much about this. In any case, this
> cosmetic change should be made:

rii_p is an automatic variable initialized in its declaration. As
such it is initialized each time tr_add_rif_info is entered. (K&R 2E,
section 2.4, v. 5)

> th->saddr[0]&=0x7f to th->saddr[0] &= ~TR_RII (line 323 again)

That's fine.

> Well, not mine. I get 10:40 as the first two bytes of each destination MAC
> address and everything thereon is two bytes out. Perhaps this is a driver
> difference. Could you possibly let me know which patch and tcpdump version
> you use? Thanks.

tcpdump 3.4a6 and the patch at:

ftp://ftp.cts.com/users/crash/p/pnorton/tcpdump-3.4a6.token-ring.patch.gz

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.022 / U:1.984 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site