Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 576429

Summary: cannot set arhln using arptables mangle options
Product: Red Hat Enterprise Linux 5 Reporter: Hushan Jia <hjia>
Component: arptables_jfAssignee: Jiri Skala <jskala>
Status: CLOSED ERRATA QA Contact: Aleš Mareček <amarecek>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: aglotov, amarecek, ovasik
Target Milestone: rcKeywords: Patch, Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 807315 906355 1030508 (view as bug list) Environment:
Last Closed: 2011-11-28 13:57:49 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:
Bug Depends On:    
Bug Blocks: 807315, 906355, 1030508    
Attachments:
Description Flags
The patch fixes this issue none

Description Hushan Jia 2010-03-24 01:29:08 UTC
Description of problem:

Hardware address length, i.e. --arhln parameter cannot be set. it always get a 
arptables v0.0.8: no hln defined
error message.

Version-Release number of selected component (if applicable):
[root@localhost ~]# arptables -V
arptables v0.0.8


How reproducible:
always

Steps to Reproduce:
[root@localhost ~]# arptables -A OUT --arhln=06 --target-hw EA:5F:72:69:25:94 -j mangle --mangle-hw-s 52:54:00:12:34:57
arptables v0.0.8: no hln defined
Try `arptables -h' or 'arptables --help' for more information.

[root@localhost ~]# arptables -A OUT --arhln=06/FF --target-hw EA:5F:72:69:25:94 -j mangle --mangle-hw-s 52:54:00:12:34:57
arptables v0.0.8: no hln defined
Try `arptables -h' or 'arptables --help' for more information.


Actual results:


Expected results:
arptables command should succeed.

Additional info:

Comment 1 Jiri Skala 2010-03-24 09:27:04 UTC
Do replace --arhln=06 with --arhln 06 and it should work. Please read man page carefully, try more cases.

Comment 2 Hushan Jia 2010-03-24 23:56:46 UTC
Sorry, I tried that, just not mentioned in first comment:


[root@localhost ~]# arptables -A OUT --arhln 06 --target-hw EA:5F:72:69:25:94 -j mangle --mangle-hw-s 52:54:00:12:34:57
arptables v0.0.8: no hln defined
Try `arptables -h' or 'arptables --help' for more information.


it does not work.

Comment 3 Jiri Skala 2010-03-25 10:14:18 UTC
This is an issues using mangle-hw opitns.

Comment 7 Jiri Skala 2011-08-25 11:51:46 UTC
Created attachment 519821 [details]
The patch fixes this issue

Comment 12 errata-xmlrpc 2011-11-28 13:57:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1481.html