IP ignoring packets from virtual net device driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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


- --
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)

iD8DBQFDTmfX/eih+gEb7pQRAkXqAKCaf7cjtS0AbXJBEk5tSAiywR4OgwCfcACr
+Uf3W1lBBfGq5UepS+BXjFg=
=qFap
-----END PGP SIGNATURE-----

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux