More PPP nitpicks

This commit is contained in:
Sergey Lyubka committed 2024-11-28 08:46:32 +00:00
1 parent fb6dfbcd3c
commit 78900304bf
4 files changed
+19 -7

No files matched your search

+1 -1
View File
@@ -301,7 +301,7 @@ static size_t mg_ppp_rx(void *ethbuf, size_t ethlen, struct mg_tcpip_if *ifp) {
case MG_PPP_PROTO_LCP: mg_ppp_handle_lcp(ifp, buf + 4, bufsz - 4); break;
case MG_PPP_PROTO_IPCP: mg_ppp_handle_ipcp(ifp, buf + 4, bufsz - 4); break;
case MG_PPP_PROTO_IP:
MG_DEBUG(("got IP packet of %d bytes", bufsz - 4));
MG_VERBOSE(("got IP packet of %d bytes", bufsz - 4));
memmove(eth + 14, buf + 4, bufsz - 4);
memmove(eth, ifp->mac, 6);
memmove(eth + 6, "\xff\xff\xff\xff\xff\xff", 6);