[SJF Logo]
Steve Friedl's Weblog

February 16, 2003
Patching NET-SNMP to allow UDP broadcasts

I'm writing some code that needs to configure a networking device via SNMP, and initially the device has no IP address. Though the unit supports DHCP, we can't use it, and we must use SNMP broadcasts to configure the device's IP address. We're using the excellent NET-SNMP toolkit, but it specifically does not support UDP broadcasts (which is done by setting the SO_BROADCAST option on the socket).

We've managed to hack the library to support this, and the changes were pretty straightforward. The patch file has the instructions, which are found here.

Posted by Steve at February 16, 2003 11:47 AM | TrackBack
Comments

Heh.

The patch is shorter than the docs for it. Gotta love that. :-)

Posted by: Jeremy Zawodny on February 16, 2003 03:35 PM
Post a comment
Name:


Email Address:


URL:


Comments:


Remember info?