Bug 544286 - No way to mangle an hardware address
Summary: No way to mangle an hardware address
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:43 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
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-13 01:57:26 UTC
Type: ---
Embargoed:


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

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.


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