Lines Matching refs:bundle

560 PacketCheck(struct bundle *bundle, u_int32_t family,  in PacketCheck()  argument
653 if (tos == IPTOS_LOWDELAY && bundle->ncp.cfg.urgent.tos) in PacketCheck()
656 if (!frag && ncp_IsUrgentUdpPort(&bundle->ncp, ntohs(uh->uh_sport), in PacketCheck()
671 if (Enabled(bundle, OPT_FILTERDECAP) && in PacketCheck()
683 result = PacketCheck(bundle, AF_INET, payload + sizeof *uh + 4, in PacketCheck()
749 if (Enabled(bundle, OPT_FILTERDECAP)) { in PacketCheck()
751 result = PacketCheck(bundle, AF_INET6, payload, nb - (payload - packet), in PacketCheck()
769 if (Enabled(bundle, OPT_FILTERDECAP) && in PacketCheck()
772 result = PacketCheck(bundle, AF_INET, payload, nb - (payload - packet), in PacketCheck()
817 if (tos == IPTOS_LOWDELAY && bundle->ncp.cfg.urgent.tos) in PacketCheck()
820 if (!frag && ncp_IsUrgentTcpPort(&bundle->ncp, ntohs(th->th_sport), in PacketCheck()
823 else if (!frag && ncp_IsUrgentTcpLen(&bundle->ncp, datalen)) in PacketCheck()
887 FilterCheck(packet, family, &bundle->filter.alive, &alivesecs)) in PacketCheck()
912 ip_Input(struct bundle *bundle, struct link *l, struct mbuf *bp, u_int32_t af) in ip_Input() argument
930 if (PacketCheck(bundle, af, tun.data, nb, &bundle->filter.in, in ip_Input()
935 if (!FilterCheck(tun.data, af, &bundle->filter.alive, &alivesecs)) { in ip_Input()
938 bundle_StartIdleTimer(bundle, secs); in ip_Input()
941 if (bundle->dev.header) { in ip_Input()
948 nw = write(bundle->dev.fd, data, nb); in ip_Input()
962 ipv4_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in ipv4_Input() argument
966 if (bundle->ncp.ipcp.fsm.state != ST_OPENED) { in ipv4_Input()
974 nb = ip_Input(bundle, l, bp, AF_INET); in ipv4_Input()
975 ipcp_AddInOctets(&bundle->ncp.ipcp, nb); in ipv4_Input()
982 ipv6_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in ipv6_Input() argument
986 if (bundle->ncp.ipv6cp.fsm.state != ST_OPENED) { in ipv6_Input()
994 nb = ip_Input(bundle, l, bp, AF_INET6); in ipv6_Input()
995 ipv6cp_AddInOctets(&bundle->ncp.ipv6cp, nb); in ipv6_Input()