Lines Matching refs:bundle

73 #include "bundle.h"
201 struct bundle *bundle = ipv6cp->fsm.bundle;
233 if (!iface_Add(bundle->iface, &bundle->ncp, &myrange, &ipv6cp->hisaddr,
237 if (!Enabled(bundle, OPT_IFACEALIAS))
238 iface_Clear(bundle->iface, &bundle->ncp, AF_INET6,
243 rt_Set(bundle, RTM_ADD, &range, &ipv6cp->myaddr, 1, 0);
245 if (bundle->ncp.cfg.sendpipe > 0 || bundle->ncp.cfg.recvpipe > 0) {
251 rt_Update(bundle, sadst, sagw, samask, NULL, NULL);
254 if (Enabled(bundle, OPT_SROUTES))
255 route_Change(bundle, bundle->ncp.route, &ipv6cp->myaddr, &ipv6cp->hisaddr);
258 if (bundle->radius.valid)
259 route_Change(bundle, bundle->radius.ipv6routes, &ipv6cp->myaddr,
267 ipv6cp_Init(struct ipv6cp *ipv6cp, struct bundle *bundle, struct link *l,
275 bundle, l, parent, &ipv6cp_Callbacks, timer_names);
328 struct ipv6cp *ipv6cp = &arg->bundle->ncp.ipv6cp;
353 ipv6cp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
357 if (bundle_Phase(bundle) == PHASE_NETWORK)
358 fsm_Input(&bundle->ncp.ipv6cp.fsm, bp);
360 if (bundle_Phase(bundle) < PHASE_NETWORK)
362 " (ignored)\n", l->name, bundle_PhaseName(bundle));
400 if (!iface_SetFlags(ipv6cp->fsm.bundle->iface->name, IFF_UP)) {
402 " flag on %s\n", ipv6cp->fsm.bundle->iface->name);
425 struct bundle *bundle = ipv6cp->fsm.bundle;
450 if (!FilterCheck(MBUF_CTOP(bp), AF_INET6, &bundle->filter.alive,
454 bundle_StartIdleTimer(bundle, secs);
456 link_PushPacket(l, bp, bundle, 0, PROTO_IPV6);
481 radius_Account_Set_Ipv6(&fp->bundle->radacct6, ipv6cp->his_ifid);
482 radius_Account(&fp->bundle->radius, &fp->bundle->radacct6,
483 fp->bundle->links, RAD_START, &ipv6cp->throughput);
490 if (!Enabled(fp->bundle, OPT_IPCP)) {
491 if (*fp->bundle->radius.cfg.file && fp->bundle->radius.filterid)
492 system_Select(fp->bundle, fp->bundle->radius.filterid, LINKUPFILE,
501 if (system_Select(fp->bundle, tbuff, LINKUPFILE, NULL, NULL) < 0) {
507 if (bundle_GetLabel(fp->bundle) && !Enabled(fp->bundle, OPT_IPCP)) {
508 if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle),
510 system_Select(fp->bundle, "MYADDR6", LINKUPFILE, NULL, NULL);
512 system_Select(fp->bundle, "MYADDR6", LINKUPFILE, NULL, NULL);
534 radius_Flush(&fp->bundle->radius);
535 radius_Account(&fp->bundle->radius, &fp->bundle->radacct6,
536 fp->bundle->links, RAD_STOP, &ipv6cp->throughput);
543 if (!Enabled(fp->bundle, OPT_IPCP)) {
544 if (*fp->bundle->radius.cfg.file && fp->bundle->radius.filterid)
545 system_Select(fp->bundle, fp->bundle->radius.filterid, LINKDOWNFILE,
554 if (system_Select(fp->bundle, addr, LINKDOWNFILE, NULL, NULL) < 0) {
560 if (bundle_GetLabel(fp->bundle) && !Enabled(fp->bundle, OPT_IPCP)) {
561 if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle),
563 system_Select(fp->bundle, "MYADDR6", LINKDOWNFILE, NULL, NULL);
565 system_Select(fp->bundle, "MYADDR6", LINKDOWNFILE, NULL, NULL);
581 Enabled(fp->bundle, OPT_THROUGHPUT));
750 bundle_AdjustFilters(fp->bundle, &ipv6cp->myaddr, NULL);