[Click] (no subject)
Marco Wenzel
marco.wenzel at stud.tu-ilmenau.de
Tue Oct 23 07:21:53 EDT 2007
Hi,
i've got a problem with the ToDevice element. The situation is as follows:
- receiving UDP packets with FromDevice
- strip the Ethernet header
- modify the IP header
- setting UDP and IP checksum
- encapsulate in ethernet header and send it to the network with ToDevice
This results in the following output (Print is placed in front of ToDevice):
udp_packet: 66 | ffffffff ffff0009 5b919367 08004500 00340000 40002211
4eb70a00 0003ffff ffff028e 028e0020 21130100 00010000 00d5c0a8 021e0000
00070a00 00020000 00d7
ToDevice(eth3) send: Message too long
The device is an WLAN PCMCIA card with the following configuration in ad-hoc
mode:
eth3 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:10.0.0.3 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
The error "Message too long" only occurs, when I try to send the modified UDP
packets. Every other packets are sent without any problems.
Has anyone an idea how to solve this problem? I don't know where I should search
for a mistake, because the packet generation seems to work correctly and as you
can see, the packet isn't too long to send it to the device.
Best regards,
Marco.
--
Dipl.-Ing. Marco Wenzel
Fachgebiet Kommunikationsnetze
Technische Universität Ilmenau
Tel.: +49 3677 69 1147
Raum: H2519
Web: http://www.tu-ilmenau.de/kn
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the click
mailing list