[tkined] problem: udp send broadcast

From: Dmitry Izosimov (shadow@ccl.ru)
Date: Fri Apr 21 2000 - 11:13:18 MET DST


Hello,

I it is necessary to send broadcast message on 67 ports As this do?
Say that not correctly?

but writes mistake:
udp send to host "255.255.255.255" port "67" failed: permission denied
    while executing
"udp send $broadcast 255.255.255.255 67 $msg"
    (file "dhcp" line 48)

############
package require Tnm 3.0
namespace import Tnm::*

# GLOBAL CONSTANTS
set DHCP_SERVER_PORT 67
set DHCP_CLIENT_PORT 68

# GLOBAL VARIABLES
set Server_hostname "255.255.255.255"

# create UDP socket
     set broadcast [udp open $DHCP_CLIENT_PORT]

udp send $broadcast $Server_hostname $DHCP_SERVER_PORT "hello"
############
  
  

σ ΥΧΑΦΕΞΙΕΝ, 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