Subject: Re: Sending broadcast UDP packet
To: None <netbsd-users@netbsd.org>
From: Matthias Scheler <tron@zhadum.de>
List: netbsd-users
Date: 12/25/2003 19:44:55
In article <OFF17B9C88.A967C1C8-ON65256E07.0029F1E2@hss.hns.com>,
amitg@hss.hns.com writes:
> 5. Setting the destination address 0xffffffff.
Use the broadcast address of the specific interface instead.
"ifconfig <INTERFACE" will tell you what it is:
tron@lyssa:~>ifconfig wm0
wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
[...]
inet 192.168.25.4 netmask 0xffffff00 broadcast 192.168.25.255
^^^^^^^^^^^^^^
[...]
Kind regards
--
Matthias Scheler http://scheler.de/~matthias/