mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 05:10:40 +00:00
Use protocol definition from tcp.h, not from sockets.h
This commit is contained in:
parent
04f17c4709
commit
b463562241
@ -151,7 +151,7 @@ vj_compress_tcp(struct vjcompress *comp, struct pbuf *pb)
|
|||||||
/*
|
/*
|
||||||
* Check that the packet is IP proto TCP.
|
* Check that the packet is IP proto TCP.
|
||||||
*/
|
*/
|
||||||
if (IPH_PROTO(ip) != IPPROTO_TCP) {
|
if (IPH_PROTO(ip) != IP_PROTO_TCP) {
|
||||||
return (TYPE_IP);
|
return (TYPE_IP);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -445,7 +445,7 @@ vj_uncompress_uncomp(struct pbuf *nb, struct vjcompress *comp)
|
|||||||
}
|
}
|
||||||
cs = &comp->rstate[comp->last_recv = IPH_PROTO(ip)];
|
cs = &comp->rstate[comp->last_recv = IPH_PROTO(ip)];
|
||||||
comp->flags &=~ VJF_TOSS;
|
comp->flags &=~ VJF_TOSS;
|
||||||
IPH_PROTO_SET(ip, IPPROTO_TCP);
|
IPH_PROTO_SET(ip, IP_PROTO_TCP);
|
||||||
BCOPY(ip, &cs->cs_ip, hlen);
|
BCOPY(ip, &cs->cs_ip, hlen);
|
||||||
cs->cs_hlen = hlen;
|
cs->cs_hlen = hlen;
|
||||||
INCR(vjs_uncompressedin);
|
INCR(vjs_uncompressedin);
|
||||||
|
Loading…
Reference in New Issue
Block a user