|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
|
Thread Tools | Display Modes |
|
|||
Broadcast does not under FreeBSD
We need to write a Python app that uses limited broadcast to send messages in our closed network. However, we've discovered that although our code works fine under Linux it does not work under FreeBSD. This problem appears to be described in this article:
http://unix.derkeiler.com/Mailing-Li.../msg00067.html Is this problem still not resolved in FreeBSD 7.0? We essential that we find a way to send/receive broadcasts under FreeBSD, preferably in Python. Surely there must be a way to do this? Any suggestions would be greatly appreciated. |
|
|||
Broadcast does not work under FreeBSD
I meant "does not *work*" of course...
|
|
|||
I came across another lengthy discussion on this subject:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/99558 It appears some work has been done to correct this problem but if I understand the discussion correctly it still is not resolved, at least at the timeframe of this thread. In our case, we have systems with no IP identity of any kind--no IP address and no gateway, and they are connected by switches. There is no router in the network. They receive IP addresses through this special service that we've written that runs on one of the systems. All communication is done through limited broadcast. This works fine one our Linux and Windows boxes but not FreeBSD. It may very well be user error in our FreeBSD code. Has anyone managed to get limited broadcast to work under FreeBSD? Last edited by PeterSteele; 6th January 2009 at 02:37 PM. |
|
|||
You probably will get more response by asking on the freebsd-stable mailinglist or on freebsd-hackers. Especially if it used to work on FreeBSD 4.x and 5.xx
I wonder if there could be a sysctl variable you need to turn on. Unfortunately don't have a FreeBSD box available at this time. OpenBSD has a sysctl to enable directed broadcasts, which is not what you want Code:
$ sysctl -a | grep broad net.inet.ip.directed-broadcast=0
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Yeah, the hackers list is probably the best option. And I just checked the sysctl list and there is no such variable to enable broadcasts. Now that would have been a nice solution!
Thanks. |
|
|||
Using raw sockets maybe?
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Heartbeat and broadcast | stukov | Other BSD and UNIX/UNIX-like | 0 | 22nd October 2008 02:30 PM |