From b46356224172c97ff2713e33dd1cda470bb3f98b Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 14 Jan 2010 19:59:28 +0000 Subject: [PATCH] Use protocol definition from tcp.h, not from sockets.h --- src/netif/ppp/vj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/netif/ppp/vj.c b/src/netif/ppp/vj.c index 04d04997..7642381e 100644 --- a/src/netif/ppp/vj.c +++ b/src/netif/ppp/vj.c @@ -151,7 +151,7 @@ vj_compress_tcp(struct vjcompress *comp, struct pbuf *pb) /* * Check that the packet is IP proto TCP. */ - if (IPH_PROTO(ip) != IPPROTO_TCP) { + if (IPH_PROTO(ip) != IP_PROTO_TCP) { 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)]; comp->flags &=~ VJF_TOSS; - IPH_PROTO_SET(ip, IPPROTO_TCP); + IPH_PROTO_SET(ip, IP_PROTO_TCP); BCOPY(ip, &cs->cs_ip, hlen); cs->cs_hlen = hlen; INCR(vjs_uncompressedin);