Use correct len for last fragmented packet
This commit is contained in:
parent
435b3f823e
commit
40427b3816
@ -202,7 +202,7 @@ int cw_send_capwap_packet(struct cw_Conn * conn, uint8_t * buf, int hlen, uint8_
|
||||
else
|
||||
cw_set_hdr_flags(buf,CAPWAP_FLAG_HDR_F,0);
|
||||
|
||||
memcpy(buf+hlen,data+(fragoffset*8),mtu-hlen);
|
||||
memcpy(buf+hlen,data+(fragoffset*8),len);
|
||||
|
||||
cw_set_dword(buf+4, fragid<<16 | fragoffset<<3 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user