-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi again, Looks like packets are being truncated on transmission; skb->len reports the right length (eg. 60), but the receiving end only gets 46 bytes, the Ethernet minimum. So, not IP after all =) Mike Tyson wrote: > Hi! > > I'm writing a layer 2.5 ad-hoc network driver, that sits between IP (and > friends) and physical device drivers. > > Although all looks good to me, I still can't ping across the link. > Outgoing packets look fine (and look like ARP requests like they > should), and the incoming packets on the other machine match, so > nothing's getting scrabled on the way through. Nevertheless, IP isn't > responding to the ARP requests, so nothing happens, apart from ping > saying 'Destination host unreachable'. > > The network device is initialised with ether_setup(). > > Debug statements look like: > > > Node A (ping source) > > (event.c:57) Waiting for packets > (event.c:98) Getting TX queue... > (queue.h:90) Dequeuing item 12 (at 12144); Queue head 13, tail 13, len 0 > (event.c:120) Got outgoing packet of len 42 > (tx.c:64) Got outgoing packet to 255.255.255, containing: ff ff ff ff > ff ff 00 00 00 19 94 c8 08 06 | 00 01 08 00 06 04 00 01 00 00 00 19 94 > c8 0a 00 00 02... > (event.c:125) Releasing TX queue... > > > Node B (ping destination) > > (event.c:57) Waiting for packets > (event.c:143) Getting RX queue... > (queue.h:90) Dequeuing item 24 (at 13168); Queue head 25, tail 25, len 0 > (event.c:165) Got incoming packet of len 46 > (sahnr.c:193) Got broadcast packet, id 21 > (common.c:56) Allocating 79 bytes of memory > (rx.c:113) Incoming packet contents: ff ff ff ff ff ff 00 00 00 19 94 > c8 08 06 | 00 01 08 00 06 04 00 01 00 00 00 19 94 c8 0a 00 00 02... > (event.c:177) Releasing RX queue... > > > > Is there something obvious that might be stopping IP from seeing the > incoming packets? Have I missed anything? I'm not sure how much detail > to include. > > Cheers =) > > Mike > > - -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/ - -- Mike Tyson <mike@xxxxxxxxxxx> M: (+61) 0407 754 124 W: http://mike.tyson.id.au B: http://mike.tyson.id.au/blog -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDTxjR/eih+gEb7pQRAti7AKCoe3gChu2P9ipAeGJAemSpOj0VagCg9reT fb2m93ZEerCfTsf+0I83Tms= =o/l7 -----END PGP SIGNATURE----- -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/