dhcpv6: fix incorrect IA type being printed in syslog
authorNicolas BESNARD <[email protected]>
Fri, 11 Apr 2025 09:50:07 +0000 (09:50 +0000)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 3 Nov 2025 15:21:24 +0000 (16:21 +0100)
commit1051cabb4da3283a58e1504513946130c007ebdf
tree8a23b533c17421eea5f1dbf9b729631831849c31
parentc5237eabeb5ca451354d58a8181013ed1001695e
dhcpv6: fix incorrect IA type being printed in syslog

Problem: If a status error code is received, "IA_NA" is always written
to syslog.

Cause: IA header type is not converted from network byte order to host
byte order.

Solution: Use ntohs() to convert to host byte order.

Signed-off-by: Nicolas BESNARD <[email protected]>
Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/odhcp6c/pull/106
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv6.c