+++ This bug was initially created as a clone of Bug #161578 +++ Description of problem: 1. the numerical parameter pointed to by the fourth parameter is handled as a long, not int. This leads to incorrect output on 64bit archs Version-Release number of selected component (if applicable): 4.5.12-1 How reproducible: always Steps to Reproduce: 1.run code using setsockopt on 64bit platform 2. 3. Actual results: setsockopt(3, SOL_IP, IP_RECRECVTTL, [4294967297], 4) = 0 Expected results: setsockopt(3, SOL_IP, IP_RECVTTL, [1], 4) = 0 Additional info: I'll attach two patches.
Fixed upstream.