Home
last modified time | relevance | path

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

/freebsd/usr.sbin/ppp/
H A Dtcpmss.c165 pip = (struct ip *)MBUF_CTOP(bp); in tcpmss_Check()
177 MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), plen - hlen, in tcpmss_Check()
189 pip6 = (struct ip6_hdr *)MBUF_CTOP(bp); in tcpmss_Check()
199 pfrag = (struct ip6_frag *)(MBUF_CTOP(bp) + sizeof(struct ip6_hdr)); in tcpmss_Check()
207 MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), plen - hlen, in tcpmss_Check()
H A Ddeflate.c84 rp = MBUF_CTOP(mi); in DeflateOutput()
97 wp = MBUF_CTOP(mo); in DeflateOutput()
106 state->cx.next_in = MBUF_CTOP(mi); in DeflateOutput()
128 state->cx.next_in = MBUF_CTOP(mi); in DeflateOutput()
139 state->cx.next_out = MBUF_CTOP(mo); in DeflateOutput()
238 wp = MBUF_CTOP(mo); in DeflateInput()
246 state->cx.next_in = MBUF_CTOP(mi); in DeflateInput()
273 state->cx.next_in = MBUF_CTOP(mi); in DeflateInput()
294 state->cx.next_out = MBUF_CTOP(mo); in DeflateInput()
355 rp = MBUF_CTOP(mi); in DeflateDictSetup()
[all …]
H A Dmbuf.c206 memcpy(ptr, MBUF_CTOP(bp), nb); in mbuf_Read()
233 memcpy(ptr, MBUF_CTOP(bp), nb); in mbuf_View()
252 memcpy(MBUF_CTOP(bp), ptr, len); in m_prepend()
266 memcpy(MBUF_CTOP(head), ptr, len); in m_prepend()
314 memcpy(MBUF_CTOP(bp), ptr, nb); in mbuf_Write()
392 for (cp = MBUF_CTOP(nbp); bp; bp = m_free(bp)) { in m_pullup()
393 memcpy(cp, MBUF_CTOP(bp), bp->m_len); in m_pullup()
400 bcopy(MBUF_CTOP(bp), bp + 1, bp->m_len); in m_pullup()
H A Dnat_cmd.c508 LibAliasOut(la, MBUF_CTOP(bp), bp->m_len); in nat_LayerPush()
509 bp->m_len = ntohs(((struct ip *)MBUF_CTOP(bp))->ip_len); in nat_LayerPush()
530 ret = LibAliasIn(la, MBUF_CTOP(bp), bp->m_len); in nat_LayerPull()
532 bp->m_len = ntohs(((struct ip *)MBUF_CTOP(bp))->ip_len); in nat_LayerPull()
563 while ((fptr = LibAliasGetFragment(la, MBUF_CTOP(bp))) != NULL) { in nat_LayerPull()
565 LibAliasFragmentIn(la, MBUF_CTOP(bp), fptr); in nat_LayerPull()
568 memcpy(MBUF_CTOP(*last), fptr, len); in nat_LayerPull()
574 "w %d)\n", (unsigned long)((struct ip *)MBUF_CTOP(bp))->ip_id, in nat_LayerPull()
585 PacketCheck(bundle, AF_INET, MBUF_CTOP(bp), bp->m_len, NULL, in nat_LayerPull()
H A Dpred.c186 hp = wp = MBUF_CTOP(mwp); in Pred1Output()
211 mwp->m_len = wp - MBUF_CTOP(mwp); in Pred1Output()
227 cp = MBUF_CTOP(bp); in Pred1Input()
229 pp = bufp = MBUF_CTOP(wp); in Pred1Input()
266 pp = MBUF_CTOP(wp); in Pred1Input()
279 const char *pre = *MBUF_CTOP(bp) & 0x80 ? "" : "un"; in Pred1Input()
H A Dhdlc.c127 pos = MBUF_CTOP(m); in HdlcFcsBuf()
133 pos = MBUF_CTOP(m); in HdlcFcsBuf()
156 cp = MBUF_CTOP(last) + last->m_len; in hdlc_LayerPush()
161 cp = MBUF_CTOP(tail); in hdlc_LayerPush()
317 fcs = hdlc_Fcs(MBUF_CTOP(bp), len); in hdlc_LayerPull()
H A Dpap.c102 memcpy(MBUF_CTOP(bp), &lh, sizeof(struct fsmheader)); in pap_Req()
103 cp = MBUF_CTOP(bp) + sizeof(struct fsmheader); in pap_Req()
127 memcpy(MBUF_CTOP(bp), &lh, sizeof(struct fsmheader)); in SendPapCode()
128 cp = MBUF_CTOP(bp) + sizeof(struct fsmheader); in SendPapCode()
233 txt = MBUF_CTOP(bp); in pap_Input()
H A Dasync.c123 sp = MBUF_CTOP(wp); in async_LayerPush()
138 memcpy(MBUF_CTOP(bp), p->async.xbuff, cnt); in async_LayerPush()
206 ch = MBUF_CTOP(bp); in async_LayerPull()
H A Dfsm.c215 memcpy(MBUF_CTOP(bp), &lh, sizeof(struct fsmheader)); in fsm_Output()
217 memcpy(MBUF_CTOP(bp) + sizeof(struct fsmheader), ptr, count); in fsm_Output()
493 cp = MBUF_CTOP(bp); in FsmRecvConfigReq()
512 lcp_SendProtoRej(&fp->link->lcp, MBUF_CTOP(bp), bp->m_len); in FsmRecvConfigReq()
627 cp = MBUF_CTOP(bp); in FsmRecvConfigAck()
711 cp = MBUF_CTOP(bp); in FsmRecvConfigNak()
844 cp = MBUF_CTOP(bp); in FsmRecvConfigRej()
959 cp = MBUF_CTOP(bp); in FsmRecvEchoReq()
1002 cp = MBUF_CTOP(bp); in FsmRecvIdent()
1074 fsm_Output(fp, CODE_CODEREJ, id++, MBUF_CTOP(bp), bp->m_len, MB_UNKNOWN); in fsm_Input()
H A Dvjcomp.c81 pip = (struct ip *)MBUF_CTOP(bp); in vj_LayerPush()
128 bufp = MBUF_CTOP(bp); in VjUncompressTcp()
H A Dcbcp.c202 head = (struct cbcp_header *)MBUF_CTOP(bp); in cbcp_Output()
206 memcpy(MBUF_CTOP(bp) + sizeof *head, data, data->length); in cbcp_Output()
642 head = (struct cbcp_header *)MBUF_CTOP(bp); in cbcp_Input()
655 data = (struct cbcp_data *)MBUF_CTOP(bp); in cbcp_Input()
H A Dmbuf.h48 #define MBUF_CTOP(bp) \ macro
H A Dlink.c298 memcpy(MBUF_CTOP(lbp[0]), buf, len); in link_PullPacket()
390 lcp_SendProtoRej(&l->lcp, MBUF_CTOP(bp), bp->m_len); in Despatch()
H A Dlqr.c220 lcp_SendProtoRej(lcp, MBUF_CTOP(bp), bp->m_len); in lqr_Input()
225 lqr = (struct lqrdata *)MBUF_CTOP(bp); in lqr_Input()
506 lqr_ChangeOrder(&lqr, (struct lqrdata *)MBUF_CTOP(bp)); in lqr_LayerPush()
H A Dmppe.c184 rp = MBUF_CTOP(mo); in MPPEOutput()
216 rp = MBUF_CTOP(mp); in MPPEOutput()
361 rp = MBUF_CTOP(mp); in MPPEInput()
H A Dncp.c237 memcpy(MBUF_CTOP(bp), ptr, count); in ncp_Enqueue()
251 memcpy(MBUF_CTOP(bp), ptr, count); in ncp_Enqueue()
H A Dmp.c141 ua_ntohs(MBUF_CTOP(m), &val); in mp_ReadHeader()
151 ua_ntohl(MBUF_CTOP(m), &header->seq); in mp_ReadHeader()
579 link_PullPacket(&mp->link, MBUF_CTOP(q), q->m_len, mp->bundle); in mp_Assemble()
780 m = mbuf_Read(m, MBUF_CTOP(mo), mo->m_len); in mp_FillPhysicalQueues()
H A Dchap.c112 memcpy(MBUF_CTOP(bp), &lh, sizeof(struct fsmheader)); in ChapOutput()
114 memcpy(MBUF_CTOP(bp) + sizeof(struct fsmheader), ptr, count); in ChapOutput()
H A Dipv6cp.c448 if (!FilterCheck(MBUF_CTOP(bp), AF_INET6, &bundle->filter.alive, in ipv6cp_PushPacket()
H A Dphysical.c396 nw = physical_Write(p, MBUF_CTOP(p->out), p->out->m_len); in physical_DescriptorWrite()
H A Dipcp.c1469 if (!FilterCheck(MBUF_CTOP(bp), AF_INET, &bundle->filter.alive, in ipcp_PushPacket()