Bug 544286

Summary: No way to mangle an hardware address
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:26 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:43:03 UTC
Created attachment 376081 [details]
Patch fixing the bug

Description of problem:
Any attempt to mangle an hardware address results in the error message:

arptables v0.0.8: no hln defined
Try `arptables -h' or 'arptables --help' for more information.

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

How reproducible:
Always

Steps to Reproduce:
1. Under root issue de command "arptables -A IN -a 6 -j mangle --mangle-hw-s 11:11:11:11:11:11"

Actual results:
arptables v0.0.8: no hln defined
Try `arptables -h' or 'arptables --help' for more information.

Expected results:
No error message and an entry added to the arptables.
Note that the above command will surely ruin your test machine accessibility throught the network !

Additional info:
This bug comes from the fact that the "mangle" extension parse procedure uses the hardware length (arhln field) from the structure before it is set.
The attached patch fixes this as a special case (but a more general case fix would probably be preferable).

Comment 1 Fedora Update System 2010-03-25 10:53:24 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:19 UTC
correct version going to update arptables_jf-0.0.8-18.fc12

Comment 3 Fedora Update System 2010-03-25 22:41:11 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:16 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.