Lines Matching refs:bp

498 nat_LayerPush(struct bundle *bundle, struct link *l __unused, struct mbuf *bp,  in nat_LayerPush()  argument
502 return bp; in nat_LayerPush()
505 m_settype(bp, MB_NATOUT); in nat_LayerPush()
507 bp = m_pullup(m_append(bp, NULL, NAT_EXTRABUF)); in nat_LayerPush()
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()
511 return bp; in nat_LayerPush()
515 nat_LayerPull(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, in nat_LayerPull() argument
524 return bp; in nat_LayerPull()
527 m_settype(bp, MB_NATIN); in nat_LayerPull()
529 bp = m_pullup(m_append(bp, NULL, NAT_EXTRABUF)); in nat_LayerPull()
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()
533 if (bp->m_len > MAX_MRU) { in nat_LayerPull()
535 (unsigned long)bp->m_len); in nat_LayerPull()
536 m_freem(bp); in nat_LayerPull()
546 if ((fptr = malloc(bp->m_len)) == NULL) { in nat_LayerPull()
549 m_freem(bp); in nat_LayerPull()
550 bp = NULL; in nat_LayerPull()
552 bp = mbuf_Read(bp, fptr, bp->m_len); in nat_LayerPull()
561 last = &bp->m_nextpkt; 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()
574 "w %d)\n", (unsigned long)((struct ip *)MBUF_CTOP(bp))->ip_id, in nat_LayerPull()
581 m_freem(bp); in nat_LayerPull()
582 bp = NULL; in nat_LayerPull()
585 PacketCheck(bundle, AF_INET, MBUF_CTOP(bp), bp->m_len, NULL, in nat_LayerPull()
592 m_freem(bp); in nat_LayerPull()
593 bp = NULL; in nat_LayerPull()
597 return bp; in nat_LayerPull()