|
From: Terry S. <ter...@gm...> - 2008-01-17 00:07:37
|
Hi Tom, Yes, you are correct. That code is an attempt to remove the BPF header, which on the 32-bit systems I've tested is 18 bytes, including 32-bit versions of FreeBSD. I never quite understood how the BPF layer worked with regards to that, but it sounds like there's a difference in the header on 64-bit systems? I'm happy to look into this for you if you want, or if you have a patch or some knowledge that could help us determine what's going on that would be great too. - Terry On Jan 16, 2008 5:01 PM, Tom Judge <to...@to...> wrote: > Hi, > > I have a quick question about the bpf framer's read_lldp function. > Could someone please explain why 18 bytes are trimmed from the begining > of the frame that is read? > > The reason that I ask is I am trying to get openlldp to work on a > FreeBSD 6.2 amd64 system (plugged into the same switch as a i386 system) > And the amd64 system seems to be printing/receiving gibberish. > > After having a quick skim over the bpf documentation/source it would > seem that the function is trying to drop the bpf_hdr off the beginning > of the packet. Is this a correct assumption? > > Thanks > > Tom > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Openlldp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openlldp-users > |