mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-13 06:37:25 +00:00
change tapif 'MTU' to be 1500 just like the linux tap's MTU
This commit is contained in:
parent
29f5968c23
commit
e26a3e347b
@ -144,7 +144,7 @@ static err_t
|
|||||||
low_level_output(struct netif *netif, struct pbuf *p)
|
low_level_output(struct netif *netif, struct pbuf *p)
|
||||||
{
|
{
|
||||||
struct pbuf *q;
|
struct pbuf *q;
|
||||||
char buf[1500];
|
char buf[1514];
|
||||||
char *bufptr;
|
char *bufptr;
|
||||||
struct tapif *tapif;
|
struct tapif *tapif;
|
||||||
|
|
||||||
@ -183,7 +183,7 @@ low_level_input(struct tapif *tapif)
|
|||||||
{
|
{
|
||||||
struct pbuf *p, *q;
|
struct pbuf *p, *q;
|
||||||
u16_t len;
|
u16_t len;
|
||||||
char buf[1500];
|
char buf[1514];
|
||||||
char *bufptr;
|
char *bufptr;
|
||||||
|
|
||||||
/* Obtain the size of the packet and put it into the "len"
|
/* Obtain the size of the packet and put it into the "len"
|
||||||
|
Loading…
Reference in New Issue
Block a user