Description of problem: In IPv6, snmp trap packet does not send from specified interface assigned by clientaddr option in snmp.conf Version-Release number of selected component (if applicable): net-snmp-5.8-6.el8 How reproducible: Always Steps to Reproduce: 1. Prepare two nics for the server. 2. Assign IPv6 address to two NICs. 3. Assigned clientaddr to /etc/snmp/snmp.conf ~~~ clientaddr 2001:db4::101 ~~~ 4. Send snmp trap to another server. 5. Check source address in the packet. Actual results: The source address is not the assigned address. Expected results: The source address is the assigned address in clientaddr option. Additional info: Wrong condition in file snmplib/transports/snmpUDPIPv6Domain.c function netsnmp_udp6_transport: if(!netsnmp_sockaddr_in6_2(&client_addr, client_socket, NULL)) because netsnmp_sockaddr_in6_2 function returns 0 if an error and 1 if successfully resolved as we can see in snmplib/transports/snmpIPv6BaseDomain.c
net-snmp-5.8-6.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-3ae06fb0a4
net-snmp-5.8-6.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-3ae06fb0a4
net-snmp-5.8-6.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.