mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-21 19:51:50 +00:00
Fix broken mip_test
This commit is contained in:
1 parent
cd4b9aeafe
commit
fcd6901558
1 file changed
+6
-1
+6
-1
@@ -7013,7 +7013,7 @@ static size_t tx_tcp(struct mip_if *ifp, uint32_t dst_ip, uint8_t flags,
|
|||||||
struct ip *ip = tx_ip(ifp, 6, ifp->ip, dst_ip, sizeof(struct tcp) + len);
|
struct ip *ip = tx_ip(ifp, 6, ifp->ip, dst_ip, sizeof(struct tcp) + len);
|
||||||
struct tcp *tcp = (struct tcp *) (ip + 1);
|
struct tcp *tcp = (struct tcp *) (ip + 1);
|
||||||
memset(tcp, 0, sizeof(*tcp));
|
memset(tcp, 0, sizeof(*tcp));
|
||||||
memmove(tcp + 1, buf, len);
|
if (buf != NULL && len) memmove(tcp + 1, buf, len);
|
||||||
tcp->sport = sport;
|
tcp->sport = sport;
|
||||||
tcp->dport = dport;
|
tcp->dport = dport;
|
||||||
tcp->seq = seq;
|
tcp->seq = seq;
|
||||||
@@ -7380,6 +7380,11 @@ void mip_init(struct mg_mgr *mgr, struct mip_if *ifp) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void mip_free(struct mip_if *ifp) {
|
||||||
|
free((char *) ifp->rx.ptr);
|
||||||
|
free((char *) ifp->tx.ptr);
|
||||||
|
}
|
||||||
|
|
||||||
int mg_mkpipe(struct mg_mgr *m, mg_event_handler_t fn, void *d, bool udp) {
|
int mg_mkpipe(struct mg_mgr *m, mg_event_handler_t fn, void *d, bool udp) {
|
||||||
(void) m, (void) fn, (void) d, (void) udp;
|
(void) m, (void) fn, (void) d, (void) udp;
|
||||||
MG_ERROR(("Not implemented"));
|
MG_ERROR(("Not implemented"));
|
||||||
|
|||||||
Reference in new issue
Block a user