[tkined] problem: binary data and the udp send

From: Dmitry Izosimov (shadow@ccl.ru)
Date: Thu Apr 27 2000 - 10:27:14 MET DST


Hello!

It seems like Tnm udp command cuts messages at zero value.

Here is my code:

set msg [binary format H2H2H2 01 00 01]
set broadcast [udp open 68]
udp send $broadcast 195.222.130.75 67 $msg

Using tcpdump I found that only first byte (01) is sent to network:

tcpdump -s 600 -x -l src 192.168.1.1 and udp port 68

17:00:23.061397 myhost.bootpc > ourrouter.bootps: [|bootp]
                         4500 001d e6bc 0000 4011 07c5 c3de 8246
                         c3de 824b 0044 0043 0009 7206 01
                                                           ^^^ there is no
00 01 here

My Tcl is 8.0.3 on Linux. Scotty is last 3.0.0 snapshot. I checked for
possible problem in "binary" command - it looks to be OK.

Any suggestions?

Tnanks in advance.
Dmitry Izosimoiv
mailto:shadow@ccl.ru

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.



This archive was generated by hypermail 2b29 : Mon Jan 08 2001 - 15:27:42 MET