Menu

#204 Enable limited UDP broadcast support

closed
None
2
2012-11-08
2003-03-10
No

I realize that the whole idea of doing SNMP broadcast
may be anathema to many, but this was a real need on a
real project so we spent some time to figure it out for
use with async SNMP

This patch enables the setting of UDP broadcast on an
SNMP session. The equipment I'm talking to initially
has no IP address, and this is the only way of
performing configuration that suits our purposes (these
are JetDirect-like print servers). The code itself is
pretty self-contained, but it's likely that somebody
else will pick another value for the "next" flag in the
SNMP_FLAGS_xxx series unless this gets picked up by the
main team. It's also likely that my hack is sub-optimal.

If nothing else, it would be helpful if the
SNMP_FLAGS_UDP_BROADCAST value could at least be
entered as a placeholder.

We did some digging to extend broadcast support to the
cmdline tools, but this was much more work: we'd have
had to change the whole workings to use async, and this
looked like a really bad idea.

-- Steve

Discussion

  • Stephen J. Friedl

    patch for UDP broadcast

     
  • Stephen J. Friedl

    Logged In: YES
    user_id=730166

    While using NET-SNMP on a Sun, it seems that the patch
    required a bit more than the change for Linux. Uploading a
    patch for 5.0.8 that we're using now in production code.

     
  • Stephen J. Friedl

     
  • Thomas Anders

    Thomas Anders - 2005-08-29

    Logged In: YES
    user_id=848638

    Can you resubmit this against CVS MAIN?

     
  • Thomas Anders

    Thomas Anders - 2006-01-12

    Logged In: YES
    user_id=848638

    Without having looked at the patch yet: Has this been tested
    with SNMPv3? SNMPv3 discovery may need special attention.
    And again: we'd need a patch against CVS MAIN to consider
    adding this functionality.

     
  • David Peer

    David Peer - 2006-01-15

    Logged In: YES
    user_id=1310219

    did you tried it on v 3?
    I couldn't find in the snmp_session struct the field:
    sess_template.callback = asynch_response

     
  • David Peer

    David Peer - 2006-01-16

    Logged In: YES
    user_id=1310219

    in version 5.3 i didn't find any async_response handler.
    what can i do? ( beside writing my own handler )

     
  • Thomas Anders

    Thomas Anders - 2006-01-16

    Logged In: YES
    user_id=848638

    According to yesterday's IRC talk, Stephen is looking into
    updating this patch for CVS MAIN (5.4.dev).

     
  • Wayne F. Tackabury

    Logged In: YES
    user_id=189900
    Originator: NO

    Did this ever get carried forward in the 5.4 dev branch or on any subsequent release?

     
  • Thomas Anders

    Thomas Anders - 2007-10-05

    Logged In: YES
    user_id=848638
    Originator: NO

    Not yet. Feel free to update the patch accordingly.

     
  • Wes Hardaker

    Wes Hardaker - 2008-09-11

    I've modified it to bring it up to spec with the trunk line and applied it.

     

Log in to post a comment.