diff options
author | Anatole Denis <natolumin@unverle.fr> | 2019-10-03 22:51:19 +0200 |
---|---|---|
committer | Anatole Denis <natolumin@unverle.fr> | 2019-10-08 08:56:49 +0200 |
commit | 2943f69fe4277297a362c156611e9ccc712e834b (patch) | |
tree | 69405fbefbda5374451c6a5090a621009b69d025 /netboot/netconf_integ_test.go | |
parent | 1d9062326df943510ecaff2be53bd630a419b684 (diff) |
iana: HWType is 16 bits
In both ARP and DHCPv6, the hwtype field is 16bits, and the IANA table
has allocated values >255.
(Bootp however uses 1byte so it can't represent everything)
This was discovered by fuzzing, as it causes round-trip mismatches; eg
with this packet (quoted string):
"0000\x00\x01\x00\x0e\x00\x01000000000000"
Input: 303030300001000e0001303030303030303030303030
Round-trip: 303030300001000e0001003030303030303030303030
^
The upper byte of the hwaddress is set
to 0
Signed-off-by: Anatole Denis <natolumin@unverle.fr>
Diffstat (limited to 'netboot/netconf_integ_test.go')
0 files changed, 0 insertions, 0 deletions