Lines Matching defs:m0
626 * (pointer in m0).
636 bdg_forward(struct mbuf *m0, struct ether_header *const eh, struct ifnet *dst)
638 struct ifnet *src = m0->m_pkthdr.rcvif; /* could be NULL in output */
656 if (m0->m_type == MT_DUMMYNET) {
658 rule = (struct ip_fw_chain *)(m0->m_data) ;
659 m0 = m0->m_next ;
660 src = m0->m_pkthdr.rcvif;
670 m_freem(m0);
675 return m0;
705 if (m0->m_pkthdr.len < sizeof(struct ip) )
711 i = min(m0->m_pkthdr.len, max_protohdr) ;
712 if ( shared || m0->m_len < i) {
713 m0 = m_pullup(m0, i) ;
714 if (m0 == NULL) {
724 ip = mtod(m0, struct ip *);
734 i = (*ip_fw_chk_ptr)(&ip, 0, NULL, NULL /* cookie */, &m0, &rule, NULL);
735 if ( (i & IP_FW_PORT_DENY_FLAG) || m0 == NULL) /* drop */
736 return m0 ;
741 ip = mtod(m0, struct ip *);
757 m = m_copypacket(m0, M_DONTWAIT);
760 return m0;
763 m = m0 ; /* pass the original to dummynet */
764 m0 = NULL ; /* and nothing back to the caller */
775 return m0 ;
779 return m0 ;
788 return m0 ;
797 int i = min(m0->m_pkthdr.len, max_protohdr) ;
799 m0 = m_pullup(m0, i) ;
800 if (m0 == NULL) {
812 m = m0 ;
813 m0 = NULL ; /* original is gone */
815 m = m_copypacket(m0, M_DONTWAIT);
818 return m0 ; /* the original is still there... */
835 return m0;
880 return m0 ;