/freebsd/usr.sbin/ppp/ |
H A D | tcpmss.c | 165 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 D | deflate.c | 84 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 D | mbuf.c | 206 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 D | nat_cmd.c | 508 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 D | pred.c | 186 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 D | hdlc.c | 127 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 D | pap.c | 102 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 D | async.c | 123 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 D | fsm.c | 215 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 D | vjcomp.c | 81 pip = (struct ip *)MBUF_CTOP(bp); in vj_LayerPush() 128 bufp = MBUF_CTOP(bp); in VjUncompressTcp()
|
H A D | cbcp.c | 202 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 D | mbuf.h | 48 #define MBUF_CTOP(bp) \ macro
|
H A D | link.c | 298 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 D | lqr.c | 220 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 D | mppe.c | 184 rp = MBUF_CTOP(mo); in MPPEOutput() 216 rp = MBUF_CTOP(mp); in MPPEOutput() 361 rp = MBUF_CTOP(mp); in MPPEInput()
|
H A D | ncp.c | 237 memcpy(MBUF_CTOP(bp), ptr, count); in ncp_Enqueue() 251 memcpy(MBUF_CTOP(bp), ptr, count); in ncp_Enqueue()
|
H A D | mp.c | 141 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 D | chap.c | 112 memcpy(MBUF_CTOP(bp), &lh, sizeof(struct fsmheader)); in ChapOutput() 114 memcpy(MBUF_CTOP(bp) + sizeof(struct fsmheader), ptr, count); in ChapOutput()
|
H A D | ipv6cp.c | 448 if (!FilterCheck(MBUF_CTOP(bp), AF_INET6, &bundle->filter.alive, in ipv6cp_PushPacket()
|
H A D | physical.c | 396 nw = physical_Write(p, MBUF_CTOP(p->out), p->out->m_len); in physical_DescriptorWrite()
|
H A D | ipcp.c | 1469 if (!FilterCheck(MBUF_CTOP(bp), AF_INET, &bundle->filter.alive, in ipcp_PushPacket()
|