Lines Matching defs:bundle

78 #include "bundle.h"
558 PacketCheck(struct bundle *bundle, u_int32_t family,
651 if (tos == IPTOS_LOWDELAY && bundle->ncp.cfg.urgent.tos)
654 if (!frag && ncp_IsUrgentUdpPort(&bundle->ncp, ntohs(uh->uh_sport),
669 if (Enabled(bundle, OPT_FILTERDECAP) &&
681 result = PacketCheck(bundle, AF_INET, payload + sizeof *uh + 4,
747 if (Enabled(bundle, OPT_FILTERDECAP)) {
749 result = PacketCheck(bundle, AF_INET6, payload, nb - (payload - packet),
767 if (Enabled(bundle, OPT_FILTERDECAP) &&
770 result = PacketCheck(bundle, AF_INET, payload, nb - (payload - packet),
815 if (tos == IPTOS_LOWDELAY && bundle->ncp.cfg.urgent.tos)
818 if (!frag && ncp_IsUrgentTcpPort(&bundle->ncp, ntohs(th->th_sport),
821 else if (!frag && ncp_IsUrgentTcpLen(&bundle->ncp, datalen))
883 FilterCheck(packet, family, &bundle->filter.alive, &alivesecs))
908 ip_Input(struct bundle *bundle, struct link *l, struct mbuf *bp, u_int32_t af)
926 if (PacketCheck(bundle, af, tun.data, nb, &bundle->filter.in,
931 if (!FilterCheck(tun.data, af, &bundle->filter.alive, &alivesecs)) {
934 bundle_StartIdleTimer(bundle, secs);
937 if (bundle->dev.header) {
944 nw = write(bundle->dev.fd, data, nb);
958 ipv4_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
962 if (bundle->ncp.ipcp.fsm.state != ST_OPENED) {
970 nb = ip_Input(bundle, l, bp, AF_INET);
971 ipcp_AddInOctets(&bundle->ncp.ipcp, nb);
978 ipv6_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
982 if (bundle->ncp.ipv6cp.fsm.state != ST_OPENED) {
990 nb = ip_Input(bundle, l, bp, AF_INET6);
991 ipv6cp_AddInOctets(&bundle->ncp.ipv6cp, nb);