aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/proto.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1999-12-20 20:29:47 +0000
committerBrian Somers <brian@FreeBSD.org>1999-12-20 20:29:47 +0000
commit26af0ae96638b0453bcc87cae6031eb0b3988171 (patch)
tree532de1a624d3c9cf29cce81e70b69670145d7ae7 /usr.sbin/ppp/proto.c
parent8f95b97072ea96b3bdf413640abc65e3f23e2dd5 (diff)
downloadsrc-26af0ae96638b0453bcc87cae6031eb0b3988171.tar.gz
src-26af0ae96638b0453bcc87cae6031eb0b3988171.zip
Cosmetic: Make struct mbuf more like kernel mbufs.
Notes
Notes: svn path=/head/; revision=54912
Diffstat (limited to 'usr.sbin/ppp/proto.c')
-rw-r--r--usr.sbin/ppp/proto.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ppp/proto.c b/usr.sbin/ppp/proto.c
index 685572fd5208..63513b339740 100644
--- a/usr.sbin/ppp/proto.c
+++ b/usr.sbin/ppp/proto.c
@@ -61,9 +61,9 @@ proto_Prepend(struct mbuf *bp, u_short proto, unsigned comp, int extra)
cp[1] = proto & 0xff;
if (comp && cp[0] == 0)
- bp = mbuf_Prepend(bp, cp + 1, 1, extra);
+ bp = m_prepend(bp, cp + 1, 1, extra);
else
- bp = mbuf_Prepend(bp, cp, 2, extra);
+ bp = m_prepend(bp, cp, 2, extra);
return bp;
}
@@ -75,7 +75,7 @@ proto_LayerPush(struct bundle *b, struct link *l, struct mbuf *bp,
log_Printf(LogDEBUG, "proto_LayerPush: Using 0x%04x\n", *proto);
bp = proto_Prepend(bp, *proto, l->lcp.his_protocomp,
acf_WrapperOctets(&l->lcp, *proto));
- mbuf_SetType(bp, MB_PROTOOUT);
+ m_settype(bp, MB_PROTOOUT);
link_ProtocolRecord(l, *proto, PROTO_OUT);
return bp;
@@ -89,14 +89,14 @@ proto_LayerPull(struct bundle *b, struct link *l, struct mbuf *bp,
size_t got;
if ((got = mbuf_View(bp, cp, 2)) == 0) {
- mbuf_Free(bp);
+ m_freem(bp);
return NULL;
}
*proto = cp[0];
if (!(*proto & 1)) {
if (got == 1) {
- mbuf_Free(bp);
+ m_freem(bp);
return NULL;
}
bp = mbuf_Read(bp, cp, 2);
@@ -105,7 +105,7 @@ proto_LayerPull(struct bundle *b, struct link *l, struct mbuf *bp,
bp = mbuf_Read(bp, cp, 1);
log_Printf(LogDEBUG, "proto_LayerPull: unknown -> 0x%04x\n", *proto);
- mbuf_SetType(bp, MB_PROTOIN);
+ m_settype(bp, MB_PROTOIN);
link_ProtocolRecord(l, *proto, PROTO_IN);
return bp;