Don't pad NMRP packets to 64 bytes
This commit is contained in:
parent
0b1d1e0a4a
commit
5cfb5e105f
1 changed files with 1 additions and 1 deletions
2
nmrp.c
2
nmrp.c
|
@ -254,7 +254,7 @@ static uint8_t *ethsock_get_hwaddr_fake(struct ethsock* sock)
|
||||||
|
|
||||||
static int pkt_send(struct ethsock *sock, struct nmrp_pkt *pkt)
|
static int pkt_send(struct ethsock *sock, struct nmrp_pkt *pkt)
|
||||||
{
|
{
|
||||||
return ethsock_send(sock, pkt, sizeof(*pkt));
|
return ethsock_send(sock, pkt, sizeof(pkt->eh) + ntohs(pkt->msg.len));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int pkt_recv(struct ethsock *sock, struct nmrp_pkt *pkt)
|
static int pkt_recv(struct ethsock *sock, struct nmrp_pkt *pkt)
|
||||||
|
|
Loading…
Add table
Reference in a new issue