|
From: Mike S. <ms...@nz...> - 2008-06-09 22:45:27
|
Hi Terry OK, Progress here Using the Xcode build version ..... xcode2.4/OpenLLDP/build/Debug/OpenLLDP -i en0 My switch is seeing the Mac sh lldp nei LLDP neighbour information Port 1: remoteIndex timeMark chassisId sysName ------------------------------------------------------------------------------- 1 35239362 00-17-f2-c2-4e-35 PB15-Leo.local. And the LLDP from the switch is being processed, but still fails.... Looks like offset issues with stepping through the parameters in the packet... [STATE] [TIMER] (en0 with MSAP: 00 00 cd 27 be 72 70 6f 72 74 31 ) rxInfoTTL: 0 [STATE] [TIMER] (en0) tooManyNeighborsTimer: 0 [INT] en0 is readable! [INT] (en0) Raw BPF Frame with BPF header: [INT] BPF Header Length: 18 000 | 28 b0 4d 48 f9 92 09 00 7f 00 00 00 7f 00 00 00 | (.MH............ 010 | 12 00 01 80 c2 00 00 0e 00 00 cd 27 be 72 88 cc | ...........'.r.. 020 | 02 07 04 00 00 cd 27 be 72 04 06 05 70 6f 72 74 | ......'.r...port 030 | 31 06 02 00 78 08 05 70 6f 72 74 31 0a 00 0c 39 | 1...x..port1...9 040 | 78 39 30 30 2d 32 34 58 54 20 41 54 2d 39 39 32 | x900-24XT AT-992 050 | 34 54 73 69 2c 20 76 65 72 73 69 6f 6e 20 33 2e | 4Tsi, version 3. 060 | 32 2e 31 2d 30 33 2c 20 62 75 69 6c 74 20 32 32 | 2.1-03, built 22 070 | 2d 4d 61 79 2d 32 30 30 38 0e 04 00 14 00 14 10 | -May-2008....... 080 | 0e 07 06 00 00 cd 27 be 72 01 00 00 00 00 00 00 | ......'.r....... 090 | 00 | . [INT] (en0) Raw BPF Frame without BPF header: 000 | 01 80 c2 00 00 0e 00 00 cd 27 be 72 88 cc 02 07 | .........'.r.... 010 | 04 00 00 cd 27 be 72 04 06 05 70 6f 72 74 31 06 | ....'.r...port1. 020 | 02 00 78 08 05 70 6f 72 74 31 0a 00 0c 39 78 39 | ..x..port1...9x9 030 | 30 30 2d 32 34 58 54 20 41 54 2d 39 39 32 34 54 | 00-24XT AT-9924T 040 | 73 69 2c 20 76 65 72 73 69 6f 6e 20 33 2e 32 2e | si, version 3.2. 050 | 31 2d 30 33 2c 20 62 75 69 6c 74 20 32 32 2d 4d | 1-03, built 22-M 060 | 61 79 2d 32 30 30 38 0e 04 00 14 00 14 10 0e 07 | ay-2008......... 070 | 06 00 00 cd 27 be 72 01 00 00 00 00 00 00 00 | ....'.r........ [INT] Got an LLDP frame 127 bytes long on en0! Running RX state machine for en0 [STATE] [en0] RX_WAIT_FOR_FRAME -> DELETE_INFO [STATE] [en0] DELETE_INFO -> RX_FRAME [STATE] [ERROR] Illegal Transition: [en0] DELETE_INFO -> RX_FRAME [INT] (en0) Processing Frame: 000 | 01 80 c2 00 00 0e 00 00 cd 27 be 72 88 cc 02 07 | .........'.r.... 010 | 04 00 00 cd 27 be 72 04 06 05 70 6f 72 74 31 06 | ....'.r...port1. 020 | 02 00 78 08 05 70 6f 72 74 31 0a 00 0c 39 78 39 | ..x..port1...9x9 030 | 30 30 2d 32 34 58 54 20 41 54 2d 39 39 32 34 54 | 00-24XT AT-9924T 040 | 73 69 2c 20 76 65 72 73 69 6f 6e 20 33 2e 32 2e | si, version 3.2. 050 | 31 2d 30 33 2c 20 62 75 69 6c 74 20 32 32 2d 4d | 1-03, built 22-M 060 | 61 79 2d 32 30 30 38 0e 04 00 14 00 14 10 0e 07 | ay-2008......... 070 | 06 00 00 cd 27 be 72 01 00 00 00 00 00 00 00 | ....'.r........ [INT] LLPDU Dst: 01 80 c2 00 00 0e [INT] LLPDU Src: 00 00 cd 27 be 72 [INT] LLPDU Ethertype: 88cc [TLV] Processing TLV #: 1 Copying TLV1 for MSAP Processing... [TLV] Processing TLV #: 2 [TLV] Setting temp->next to 1004E0 Copying TLV2 for MSAP Processing... [MSAP] MSAP TLV1 Length: 7 [MSAP] MSAP TLV2 Length: 6 [MSAP] MSAP is 11 bytes: 00 00 cd 27 be 72 70 6f 72 74 31 000 | 00 00 cd 27 be 72 70 6f 72 74 31 | ...'.rport1 [TLV] Processing TLV #: 3 [TLV] Setting temp->next to 1004C0 [TLV] Processing TLV #: 4 [TLV] Setting temp->next to 100530 [TLV] Processing TLV #: 5 [ERROR] Unable to malloc buffer in rxProcessFrame() at line: 237! [TLV] We have a(n) 11 byte MSAP! [MSAP] Setting rxInfoTTL to: 120 [MSAP] MSAP Length: B [MSAP] MSAP Cache Hit on en0 [MSAP] MSAP cache: 100300 [MSAP] MSAP ID: 00 00 cd 27 be 72 70 6f 72 74 31 [MSAP] MSAP Length: B [MSAP] MSAP Next: 0 [TLV] Destroy TLV List [TLV] Entering Destroy loop [TLV] current = 100560 [TLV] current->next = 100420 [TLV] Freeing TLV Info String. [TLV] Freeing TLV. [TLV] Freeing TLV List Node. [TLV] current = 100420 [TLV] current->next = 100400 [TLV] Freeing TLV Info String. [TLV] Freeing TLV. [TLV] Freeing TLV List Node. [TLV] current = 100400 [TLV] current->next = 100470 [TLV] Freeing TLV Info String. [TLV] Freeing TLV. [TLV] Freeing TLV List Node. [TLV] current = 100470 [TLV] current->next = 0 [TLV] Freeing TLV Info String. [TLV] Freeing TLV. [TLV] Freeing TLV List Node. Decrementing RX Timers Displaying RX Timers [STATE] [TIMER] (en0 with MSAP: 00 00 cd 27 be 72 70 6f 72 74 31 ) rxInfoTTL: 0 [STATE] [TIMER] (en0) tooManyNeighborsTimer: 0 [STATE] en0 -> TX_IDLE [STATE] [TIMER] (en0) txTTL: 120 [STATE] [TIMER] (en0) txTTR: 19 [STATE] [TIMER] (en0) txDelayWhile: 0 [STATE] [TIMER] (en0) txShutdownWhile: 0 Running RX state machine for en0 [STATE] [en0] RX_FRAME -> UPDATE_INFO Decrementing RX Timers Displaying RX Timers [STATE] [TIMER] (en0 with MSAP: 00 00 cd 27 be 72 70 6f 72 74 31 Anything else I can do to help (given that I am a network geek, but not a programer...) Once I get it building and working (and you can do another drop from CVS), I want to add a port for it to MacPorts. < http://www.macports.org/ > Cheers Mike On Jun 9, 2008, at 3:00 PM, Terry Simons wrote: > Hi Mike, > > CVS is definitely what you want to be using for Leopard. > > Check that build out and see if you notice any problems. The CVS > tree is pretty stable, but there are still a few bugs lurking. I've > been extremely busy the past several months, so I haven't had much > time to really devote to the project, but I think if we can get some > testing done on CVS and people think it looks good we'll do another > drop. > > Also, check out lldpneighbors (which is new in CVS). It lets you > see who is connected to you. > > I might possibly be able to push a drop out this next weekend. Let > me know if you see any major issues. > > - Terry > > On Sun, Jun 8, 2008 at 3:15 PM, Mike Savory <ms...@nz...> wrote: > Hi > > Trying to build on a OSX Leopard 10.5.3 Intel Core 2 Duo (64 bit) > Seems to be a disagreement in the BPF code, tried > ./configure --enable-generic-framer > to no effect... > > Pulled the code from cvs at SF and it seems to compile/run..... > > Both the src with ./configure; make > and the xcode project (With Xcode 3.1) > > > $ sudo ./src/lldpd -i en1 > /tmp/lldpd.sock:15 > Using interface en1 > Skipping interface lo0 (not en1) > Skipping interface gif0 (not en1) > Skipping interface stf0 (not en1) > Skipping interface en0 (not en1) > Skipping interface fw0 (not en1) > ioctl[SIOC{ADD/DEL}MULTI]: Device not configured > BIOCGBLEN: 4096 > en1 MAC: 00:17:F2:E6:75:75 > en1 IP: 10.0.1.2 > en1 MTU: 4096 > Skipping interface en2 (not en1) > Skipping interface en3 (not en1) > sysinfo.machine: i386 > sysinfo.sysname: Darwin > sysinfo.release: 9.3.0 > lldp_systemdesc: i386/Darwin 9.3.0 > lldp_systemname: PB15-Leo.local. > Running RX state machine for en1 > Decrementing RX Timers > Displaying RX Timers > Running RX state machine for en1 > Decrementing RX Timers > Displaying RX Timers > Running RX state machine for en1 > Decrementing RX Timers > Displaying RX Timers > ^C[AYBABTU] We Get Signal! > [CLEAN] en1 (6) > > > Will test it on some LLDP devices tomorrow, when is the next release > planned.... > > > > Regards > > Mike > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Openlldp-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openlldp-users > |