Red Hat Bugzilla – Bug 161578
incorrect names in SOL_IP sockopt decoding
Last modified: 2007-11-30 17:11:08 EST
Description of problem:
There are two problems with setsockopt decoding:
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
2. two SOL_IP parameters have the wrong output string.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.run code using setsockopt on 64bit platform
setsockopt(3, SOL_IP, IP_RECRECVTTL, , 4) = 0
setsockopt(3, SOL_IP, IP_RECVTTL, , 4) = 0
I'll attach two patches.
Created attachment 115939 [details]
Fix for the long<->int mixup
Created attachment 115940 [details]
Fix for option strings
Created attachment 115969 [details]
Path for add more IPv6 option decoding
One more setsockopt problem: some IPv6 options are not support. The patch adds
the necessary support.
Fixed upstream. Please file separate bugs for separate issues.
Please include ChangeLog entries with patches.