Lines Matching refs:bundle

77 #include "bundle.h"
379 route_IfDelete(struct bundle *bundle, int all)
389 log_Printf(LogDEBUG, "route_IfDelete (%d)\n", bundle->iface->index);
429 if (rtm->rtm_index == bundle->iface->index &&
452 rt_Set(bundle, RTM_DELETE, &range, NULL, 0, 0);
470 route_UpdateMTU(struct bundle *bundle)
479 log_Printf(LogDEBUG, "route_UpdateMTU (%d)\n", bundle->iface->index);
513 sa[RTAX_GATEWAY] && rtm->rtm_index == bundle->iface->index) {
518 ncprange_ntoa(&dst), bundle->iface->mtu);
520 rt_Update(bundle, sa[RTAX_DST], sa[RTAX_GATEWAY], sa[RTAX_NETMASK],
543 route_Change(struct bundle *bundle, struct sticky_route *r,
552 rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
557 rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
562 if (bundle->ncp.ipcp.ns.dns[0].s_addr == INADDR_NONE)
564 rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
568 if (bundle->ncp.ipcp.ns.dns[1].s_addr == INADDR_NONE)
570 rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
578 rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
583 rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
591 rt_Set(bundle, RTM_ADD, &r->dst, &r->gw, 1, 0);
734 rt_Set(struct bundle *bundle, int cmd, const struct ncprange *dst,
757 rtmes.m_rtm.rtm_seq = ++bundle->routing_seq;
762 if (bundle->ncp.cfg.sendpipe > 0) {
763 rtmes.m_rtm.rtm_rmx.rmx_sendpipe = bundle->ncp.cfg.sendpipe;
766 if (bundle->ncp.cfg.recvpipe > 0) {
767 rtmes.m_rtm.rtm_rmx.rmx_recvpipe = bundle->ncp.cfg.recvpipe;
774 add_scope((struct sockaddr *)&sadst, bundle->iface->index);
787 add_scope((struct sockaddr *)&sagw, bundle->iface->index);
859 rt_Update(struct bundle *bundle, const struct sockaddr *dst,
878 rtmes.m_rtm.rtm_seq = ++bundle->routing_seq;
882 if (bundle->ncp.cfg.sendpipe > 0) {
883 rtmes.m_rtm.rtm_rmx.rmx_sendpipe = bundle->ncp.cfg.sendpipe;
887 if (bundle->ncp.cfg.recvpipe > 0) {
888 rtmes.m_rtm.rtm_rmx.rmx_recvpipe = bundle->ncp.cfg.recvpipe;
892 rtmes.m_rtm.rtm_rmx.rmx_mtu = bundle->iface->mtu;