Lines Matching refs:bundle

532 PacketCheck(struct bundle *bundle, u_int32_t family,  in PacketCheck()  argument
625 if (tos == IPTOS_LOWDELAY && bundle->ncp.cfg.urgent.tos) in PacketCheck()
628 if (!frag && ncp_IsUrgentUdpPort(&bundle->ncp, ntohs(uh->uh_sport), in PacketCheck()
643 if (Enabled(bundle, OPT_FILTERDECAP) && in PacketCheck()
655 result = PacketCheck(bundle, AF_INET, payload + sizeof *uh + 4, in PacketCheck()
721 if (Enabled(bundle, OPT_FILTERDECAP)) { in PacketCheck()
723 result = PacketCheck(bundle, AF_INET6, payload, nb - (payload - packet), in PacketCheck()
741 if (Enabled(bundle, OPT_FILTERDECAP) && in PacketCheck()
744 result = PacketCheck(bundle, AF_INET, payload, nb - (payload - packet), in PacketCheck()
789 if (tos == IPTOS_LOWDELAY && bundle->ncp.cfg.urgent.tos) in PacketCheck()
792 if (!frag && ncp_IsUrgentTcpPort(&bundle->ncp, ntohs(th->th_sport), in PacketCheck()
855 FilterCheck(packet, family, &bundle->filter.alive, &alivesecs)) in PacketCheck()
880 ip_Input(struct bundle *bundle, struct link *l, struct mbuf *bp, u_int32_t af) in ip_Input() argument
898 if (PacketCheck(bundle, af, tun.data, nb, &bundle->filter.in, in ip_Input()
903 if (!FilterCheck(tun.data, af, &bundle->filter.alive, &alivesecs)) { in ip_Input()
906 bundle_StartIdleTimer(bundle, secs); in ip_Input()
909 if (bundle->dev.header) { in ip_Input()
916 nw = write(bundle->dev.fd, data, nb); in ip_Input()
929 ipv4_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in ipv4_Input() argument
933 if (bundle->ncp.ipcp.fsm.state != ST_OPENED) { in ipv4_Input()
941 nb = ip_Input(bundle, l, bp, AF_INET); in ipv4_Input()
942 ipcp_AddInOctets(&bundle->ncp.ipcp, nb); in ipv4_Input()
949 ipv6_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in ipv6_Input() argument
953 if (bundle->ncp.ipv6cp.fsm.state != ST_OPENED) { in ipv6_Input()
961 nb = ip_Input(bundle, l, bp, AF_INET6); in ipv6_Input()
962 ipv6cp_AddInOctets(&bundle->ncp.ipv6cp, nb); in ipv6_Input()