Bug 544291 - Symbolic input of 16-bit fields argument are byte-swapped on little-endian machines.
Summary: Symbolic input of 16-bit fields argument are byte-swapped on little-endian ma...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: arptables_jf
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jiri Skala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-04 13:57 UTC by Patrick Monnerat
Modified: 2014-11-09 22:32 UTC (History)
2 users (show)

Fixed In Version: arptables_jf-0.0.8-18.fc12
Clone Of:
Environment:
Last Closed: 2010-04-13 01:57:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch fixing the bug (1.34 KB, patch)
2009-12-04 13:57 UTC, Patrick Monnerat
no flags Details | Diff

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.


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