Bug 161578 - incorrect names in SOL_IP sockopt decoding
incorrect names in SOL_IP sockopt decoding
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: strace (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Roland McGrath
Brian Brock
:
Depends On: 162449 162450
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-24 11:49 EDT by Ulrich Drepper
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-07-04 19:34:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
Fix for the long<->int mixup (440 bytes, patch)
2005-06-24 11:49 EDT, Ulrich Drepper
no flags Details | Diff
Fix for option strings (404 bytes, patch)
2005-06-24 11:51 EDT, Ulrich Drepper
no flags Details | Diff
Path for add more IPv6 option decoding (502 bytes, patch)
2005-06-25 03:48 EDT, Ulrich Drepper
no flags Details | Diff

  None (edit)
Description Ulrich Drepper 2005-06-24 11:49:37 EDT
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):
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.
Comment 1 Ulrich Drepper 2005-06-24 11:49:37 EDT
Created attachment 115939 [details]
Fix for the long<->int mixup
Comment 2 Ulrich Drepper 2005-06-24 11:51:23 EDT
Created attachment 115940 [details]
Fix for option strings
Comment 3 Ulrich Drepper 2005-06-25 03:48:27 EDT
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.
Comment 4 Roland McGrath 2005-07-04 19:34:46 EDT
Fixed upstream.  Please file separate bugs for separate issues.
Please include ChangeLog entries with patches.

Note You need to log in before you can comment on or make changes to this bug.