Home
last modified time | relevance | path

Searched refs:MBUF_CTOP (Results 1 – 21 of 21) sorted by relevance

/freebsd-11-stable/usr.sbin/ppp/
HDdeflate.c86 rp = MBUF_CTOP(mi); in DeflateOutput()
99 wp = MBUF_CTOP(mo); in DeflateOutput()
108 state->cx.next_in = MBUF_CTOP(mi); in DeflateOutput()
130 state->cx.next_in = MBUF_CTOP(mi); in DeflateOutput()
141 state->cx.next_out = MBUF_CTOP(mo); in DeflateOutput()
240 wp = MBUF_CTOP(mo); in DeflateInput()
248 state->cx.next_in = MBUF_CTOP(mi); in DeflateInput()
275 state->cx.next_in = MBUF_CTOP(mi); in DeflateInput()
296 state->cx.next_out = MBUF_CTOP(mo); in DeflateInput()
357 rp = MBUF_CTOP(mi); in DeflateDictSetup()
[all …]
HDmbuf.c208 memcpy(ptr, MBUF_CTOP(bp), nb); in mbuf_Read()
235 memcpy(ptr, MBUF_CTOP(bp), nb); in mbuf_View()
254 memcpy(MBUF_CTOP(bp), ptr, len); in m_prepend()
268 memcpy(MBUF_CTOP(head), ptr, len); in m_prepend()
316 memcpy(MBUF_CTOP(bp), ptr, nb); in mbuf_Write()
394 for (cp = MBUF_CTOP(nbp); bp; bp = m_free(bp)) { in m_pullup()
395 memcpy(cp, MBUF_CTOP(bp), bp->m_len); in m_pullup()
402 bcopy(MBUF_CTOP(bp), bp + 1, bp->m_len); in m_pullup()
HDnat_cmd.c510 LibAliasOut(la, MBUF_CTOP(bp), bp->m_len); in nat_LayerPush()
511 bp->m_len = ntohs(((struct ip *)MBUF_CTOP(bp))->ip_len); in nat_LayerPush()
532 ret = LibAliasIn(la, MBUF_CTOP(bp), bp->m_len); in nat_LayerPull()
534 bp->m_len = ntohs(((struct ip *)MBUF_CTOP(bp))->ip_len); in nat_LayerPull()
565 while ((fptr = LibAliasGetFragment(la, MBUF_CTOP(bp))) != NULL) { in nat_LayerPull()
567 LibAliasFragmentIn(la, MBUF_CTOP(bp), fptr); in nat_LayerPull()
570 memcpy(MBUF_CTOP(*last), fptr, len); in nat_LayerPull()
576 "w %d)\n", (unsigned long)((struct ip *)MBUF_CTOP(bp))->ip_id, in nat_LayerPull()
587 PacketCheck(bundle, AF_INET, MBUF_CTOP(bp), bp->m_len, NULL, in nat_LayerPull()
HDpred.c188 hp = wp = MBUF_CTOP(mwp); in Pred1Output()
213 mwp->m_len = wp - MBUF_CTOP(mwp); in Pred1Output()
229 cp = MBUF_CTOP(bp); in Pred1Input()
231 pp = bufp = MBUF_CTOP(wp); in Pred1Input()
268 pp = MBUF_CTOP(wp); in Pred1Input()
281 const char *pre = *MBUF_CTOP(bp) & 0x80 ? "" : "un"; in Pred1Input()
HDhdlc.c129 pos = MBUF_CTOP(m); in HdlcFcsBuf()
135 pos = MBUF_CTOP(m); in HdlcFcsBuf()
158 cp = MBUF_CTOP(last) + last->m_len; in hdlc_LayerPush()
163 cp = MBUF_CTOP(tail); in hdlc_LayerPush()
319 fcs = hdlc_Fcs(MBUF_CTOP(bp), len); in hdlc_LayerPull()
HDpap.c104 memcpy(MBUF_CTOP(bp), &lh, sizeof(struct fsmheader)); in pap_Req()
105 cp = MBUF_CTOP(bp) + sizeof(struct fsmheader); in pap_Req()
129 memcpy(MBUF_CTOP(bp), &lh, sizeof(struct fsmheader)); in SendPapCode()
130 cp = MBUF_CTOP(bp) + sizeof(struct fsmheader); in SendPapCode()
235 txt = MBUF_CTOP(bp); in pap_Input()
HDasync.c126 sp = MBUF_CTOP(wp); in async_LayerPush()
141 memcpy(MBUF_CTOP(bp), p->async.xbuff, cnt); in async_LayerPush()
209 ch = MBUF_CTOP(bp); in async_LayerPull()
HDfsm.c217 memcpy(MBUF_CTOP(bp), &lh, sizeof(struct fsmheader)); in fsm_Output()
219 memcpy(MBUF_CTOP(bp) + sizeof(struct fsmheader), ptr, count); in fsm_Output()
495 cp = MBUF_CTOP(bp); in FsmRecvConfigReq()
514 lcp_SendProtoRej(&fp->link->lcp, MBUF_CTOP(bp), bp->m_len); in FsmRecvConfigReq()
629 cp = MBUF_CTOP(bp); in FsmRecvConfigAck()
713 cp = MBUF_CTOP(bp); in FsmRecvConfigNak()
846 cp = MBUF_CTOP(bp); in FsmRecvConfigRej()
961 cp = MBUF_CTOP(bp); in FsmRecvEchoReq()
1004 cp = MBUF_CTOP(bp); in FsmRecvIdent()
1076 fsm_Output(fp, CODE_CODEREJ, id++, MBUF_CTOP(bp), bp->m_len, MB_UNKNOWN); in fsm_Input()
HDtcpmss.c156 pip = (struct ip *)MBUF_CTOP(bp); in tcpmss_Check()
166 MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), plen - hlen, in tcpmss_Check()
HDvjcomp.c83 pip = (struct ip *)MBUF_CTOP(bp); in vj_LayerPush()
130 bufp = MBUF_CTOP(bp); in VjUncompressTcp()
HDcbcp.c204 head = (struct cbcp_header *)MBUF_CTOP(bp); in cbcp_Output()
208 memcpy(MBUF_CTOP(bp) + sizeof *head, data, data->length); in cbcp_Output()
644 head = (struct cbcp_header *)MBUF_CTOP(bp); in cbcp_Input()
657 data = (struct cbcp_data *)MBUF_CTOP(bp); in cbcp_Input()
HDlink.c300 memcpy(MBUF_CTOP(lbp[0]), buf, len); in link_PullPacket()
392 lcp_SendProtoRej(&l->lcp, MBUF_CTOP(bp), bp->m_len); in Despatch()
HDmbuf.h50 #define MBUF_CTOP(bp) \ macro
HDlqr.c222 lcp_SendProtoRej(lcp, MBUF_CTOP(bp), bp->m_len); in lqr_Input()
227 lqr = (struct lqrdata *)MBUF_CTOP(bp); in lqr_Input()
508 lqr_ChangeOrder(&lqr, (struct lqrdata *)MBUF_CTOP(bp)); in lqr_LayerPush()
HDmppe.c186 rp = MBUF_CTOP(mo); in MPPEOutput()
218 rp = MBUF_CTOP(mp); in MPPEOutput()
363 rp = MBUF_CTOP(mp); in MPPEInput()
HDncp.c239 memcpy(MBUF_CTOP(bp), ptr, count); in ncp_Enqueue()
253 memcpy(MBUF_CTOP(bp), ptr, count); in ncp_Enqueue()
HDmp.c143 ua_ntohs(MBUF_CTOP(m), &val); in mp_ReadHeader()
153 ua_ntohl(MBUF_CTOP(m), &header->seq); in mp_ReadHeader()
581 link_PullPacket(&mp->link, MBUF_CTOP(q), q->m_len, mp->bundle); in mp_Assemble()
782 m = mbuf_Read(m, MBUF_CTOP(mo), mo->m_len); in mp_FillPhysicalQueues()
HDchap.c114 memcpy(MBUF_CTOP(bp), &lh, sizeof(struct fsmheader)); in ChapOutput()
116 memcpy(MBUF_CTOP(bp) + sizeof(struct fsmheader), ptr, count); in ChapOutput()
HDipv6cp.c450 if (!FilterCheck(MBUF_CTOP(bp), AF_INET6, &bundle->filter.alive, in ipv6cp_PushPacket()
HDphysical.c409 nw = physical_Write(p, MBUF_CTOP(p->out), p->out->m_len); in physical_DescriptorWrite()
HDipcp.c1471 if (!FilterCheck(MBUF_CTOP(bp), AF_INET, &bundle->filter.alive, in ipcp_PushPacket()