patch: use correct ip alias src address for udp replies

Lars Ellenberg <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
FYI,
bug:
http://sourceforge.net/tracker/index.php?func=detail&aid=1509949&group_id=12694&atid=112694

patch:
http://sourceforge.net/tracker/index.php?func=detail&atid=312694&aid=1509943&group_id=12694

the patch is against current sarge version (5.2.2),
needs slight tweaks for the 5.0.9 version,
and should work as is with 5.3.x (untested).

it will fall back to the previous behaviour if at compile time
IP_PKTINFO is not defined/available.

motivation:

you have some cluster, and a virtual ip alias that may migrate between
various machines. if you monitor that ip, you currently get replies back
originating from the respective primary ip... if there is some firewall
involved, you won't get those replies at all. if your client is "smart"
enought, if will ignore those replies, so you don't get them either.

with this patch the udp response packets originate from the very ip you
sent the request to, so the firewall and clients are happy, and your
monitoring works again.

cheers,

-- 
: Lars Ellenberg                                  Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :


_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.