Bug 544291

Summary: Symbolic input of 16-bit fields argument are byte-swapped on little-endian machines.
Product: [Fedora] Fedora Reporter: Patrick Monnerat <patrick>
Component: arptables_jfAssignee: Jiri Skala <jskala>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: aglotov, jskala
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: arptables_jf-0.0.8-18.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-13 01:57:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch fixing the bug none

Description Patrick Monnerat 2009-12-04 13:57:01 UTC
Created attachment 376084 [details]
Patch fixing the bug

Description of problem:
Specifying a 16-bit argument of the arptables command as a symbol stores its value in native order instead of network order.

Version-Release number of selected component (if applicable):
arptables_jf-0.0.8-16.fc12

How reproducible:
Always

Steps to Reproduce:
1. On a little-endian machine, log as root and issue command "arptables -A OUT -p Reply -j ACCEPT"
2. Issue command "arptables -L"
  
Actual results:
Chain OUT (policy ACCEPT)
target     source-ip            destination-ip       source-hw          destination-hw     hlen   op         hrd        pro       
ACCEPT     anywhere             anywhere             anywhere           anywhere           any    0200       any        any

Expected results:
Chain OUT (policy ACCEPT)
target     source-ip            destination-ip       source-hw          destination-hw     hlen   op         hrd        pro       
ACCEPT     anywhere             anywhere             anywhere           anywhere           any    Reply      any        any

Additional info: The attached patch fixes this bug. In addition, it also fixes a bug messing up a 16-bit masked value entry with the hexadecimal prefix like (for example) "0x56/FE".

Comment 1 Fedora Update System 2010-03-25 10:53:30 UTC
arptables_jf-0.0.8-17.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/arptables_jf-0.0.8-17.fc12

Comment 2 Jiri Skala 2010-03-25 11:08:29 UTC
correct version going to update arptables_jf-0.0.8-18.fc12

Comment 3 Fedora Update System 2010-03-25 22:41:15 UTC
arptables_jf-0.0.8-18.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update arptables_jf'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/arptables_jf-0.0.8-18.fc12

Comment 4 Fedora Update System 2010-04-13 01:57:21 UTC
arptables_jf-0.0.8-18.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.