Fixed headeris which were always 4 bytes too long.
FossilOrigin-Name: 7468efdf9f6842eea5cc985aff81476f62a83e76f59c381d131d9e624b2ba1ab
This commit is contained in:
parent
d69b950242
commit
725ecd80f7
@ -111,7 +111,7 @@ int cw_set_hdr_rmac(uint8_t * th, bstr_t rmac)
|
||||
memcpy(cw_get_hdr_rmac(th), rmac, rmac_len + 1);
|
||||
cw_set_hdr_flags(th, CAPWAP_FLAG_HDR_M, 1);
|
||||
|
||||
hlen = 4 + rmac_len / 4;
|
||||
hlen = 2 + rmac_len / 4;
|
||||
|
||||
if (rmac_len % 4 != 0) {
|
||||
hlen++;
|
||||
|
Loading…
Reference in New Issue
Block a user