From: <no...@so...> - 2002-05-10 21:27:12
|
Patches item #550830, was opened at 2002-04-30 16:15 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=312694&aid=550830&group_id=12694 Category: None Group: None Status: Open >Resolution: Later >Priority: 4 Submitted By: Andrew Rucker Jones (arjones) Assigned to: Nobody/Anonymous (nobody) Summary: Fixes for libwrap Initial Comment: When compiled with tcp_wrappers support, net-snmp 5.0.pre3 doesn't work. The wrong argument was passed to hosts_ctl(), and no checking was done to see if the request was coming from a network family that tcp_wrappers supports (namely, TCP/IP[v6], UDP/IP[v6]). The patches included here fix both of those problems, and also accomodate the address formatting routines in snmpTCPIPv6Domain.c and snmpUDPIPv6Domain.c to conform to what appears to be the standard. While i was at it, i changed the cached addresses to really be the addresses and not the (nearly) entire socket information. To me, it doesn't make sense to key off of source port and network family. One possible problem with the patch is that i don't know exactly what a non-IPv6-enabled tcp_wrappers would do with an IPv6 address. Probably just reject it, and one would have to be foolish to use a non-IPv6-enabled tcp_wrappers on a network where one expects queries from IPv6 addresses. I mention the problem for completeness. :) As for testing. The best i can say is that it seems to work for me. I don't have net-snmp completely working yet anyway (but i hope that's just a configuration problem), so more thorough testing is impossible for me at the moment. (Lastly, sorry if i do a crummy job generating patches. I'm really new to that aspect.) ---------------------------------------------------------------------- >Comment By: Wes Hardaker (hardaker) Date: 2002-05-10 14:27 Message: Logged In: YES user_id=76242 will apply after 5.0.1 ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=312694&aid=550830&group_id=12694 |