working on lwip

This commit is contained in:
2024-12-06 17:37:08 +01:00
parent 164b8ed6c2
commit ef51eb98e1
13 changed files with 886 additions and 13 deletions

15
mission/netif/slipif.h Normal file
View File

@ -0,0 +1,15 @@
#pragma once
#include "lwip/opt.h"
#include "lwip/netif.h"
struct slipif_priv {
int fd;
/* q is the whole pbuf chain for a packet, p is the current pbuf in the chain */
struct pbuf *p, *q;
u8_t state;
u16_t i, recved;
};
err_t slipif_init(struct netif * netif);
void slipif_poll(struct netif *netif);