Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#10396 closed defect (obsolete)

/etc/init.d/dhcp6c has problems detecting lowendian system

Reported by: pb@… Owned by: developers
Priority: high Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: dhcp6c duid Cc:

Description

the problem regarding detecting lowendian systems is still existing in trunk version, reported already for RC5/RC6 - making dhcp6c unusable.

problem found in: wide-dhcpv6-client - 20080615-7

Patch:

--- dhcp6c-7	Fri Nov 11 07:58:05 2011
+++ dhcp6c-7.fixed	Fri Nov 11 18:28:19 2011
@@ -33,7 +33,7 @@
 			local oIFS="$IFS"; IFS=":"; set -- $mac; IFS="$oIFS"
 
 			# low endian
-			if [ "$(printf \\1 | hexdump -n1 -ve '8/2 "%04x"')" = "0001" ]; then
+			if [ "$(printf \\1 | hexdump -n1 -ve '8/2 "%04x"' | awk '{ print $1 }')" = "0001" ]; then
 				printf \\x0a\\x00
 
 			# big endian
@@ -51,7 +51,7 @@
 			local len_lo=$(printf "%02x" $((${#len_id} % 0xFF)) )
 
 			# low endian
-			if [ "$(printf \\1 | hexdump -n1 -ve '8/2 "%04x"')" = "0001" ]; then
+			if [ "$(printf \\1 | hexdump -n1 -ve '8/2 "%04x"' | awk '{ print $1 }')" = "0001" ]; then
 				printf \\x$len_lo\\x$len_hi
 
 			# big endian

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by jow

  • Resolution set to obsolete
  • Status changed from new to closed

The actual problem was a Busybox segfault in hexdump which has been patched since then.

comment:2 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.