Home | History | Annotate | Download | only in src

Lines Matching full:bundle

71 #include "bundle.h"
199 struct bundle *bundle = ipv6cp->fsm.bundle;
231 if (!iface_Add(bundle->iface, &bundle->ncp, &myrange, &ipv6cp->hisaddr,
235 if (!Enabled(bundle, OPT_IFACEALIAS))
236 iface_Clear(bundle->iface, &bundle->ncp, AF_INET6,
241 rt_Set(bundle, RTM_ADD, &range, &ipv6cp->myaddr, 1, 0);
243 if (bundle->ncp.cfg.sendpipe > 0 || bundle->ncp.cfg.recvpipe > 0) {
249 rt_Update(bundle, sadst, sagw, samask);
252 if (Enabled(bundle, OPT_SROUTES))
253 route_Change(bundle, bundle->ncp.route, &ipv6cp->myaddr, &ipv6cp->hisaddr);
256 if (bundle->radius.valid)
257 route_Change(bundle, bundle->radius.ipv6routes, &ipv6cp->myaddr,
265 ipv6cp_Init(struct ipv6cp *ipv6cp, struct bundle *bundle, struct link *l,
273 bundle, l, parent, &ipv6cp_Callbacks, timer_names);
326 struct ipv6cp *ipv6cp = &arg->bundle->ncp.ipv6cp;
351 ipv6cp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
355 if (bundle_Phase(bundle) == PHASE_NETWORK)
356 fsm_Input(&bundle->ncp.ipv6cp.fsm, bp);
358 if (bundle_Phase(bundle) < PHASE_NETWORK)
360 " (ignored)\n", l->name, bundle_PhaseName(bundle));
398 if (!iface_SetFlags(ipv6cp->fsm.bundle->iface->name, IFF_UP)) {
400 " flag on %s\n", ipv6cp->fsm.bundle->iface->name);
423 struct bundle *bundle = ipv6cp->fsm.bundle;
448 if (!FilterCheck(MBUF_CTOP(bp), AF_INET6, &bundle->filter.alive,
452 bundle_StartIdleTimer(bundle, secs);
454 link_PushPacket(l, bp, bundle, 0, PROTO_IPV6);
479 radius_Account_Set_Ipv6(&fp->bundle->radacct6, ipv6cp->his_ifid);
480 radius_Account(&fp->bundle->radius, &fp->bundle->radacct6,
481 fp->bundle->links, RAD_START, &ipv6cp->throughput);
488 if (!Enabled(fp->bundle, OPT_IPCP)) {
489 if (fp->bundle->radius.cfg.file && fp->bundle->radius.filterid)
490 system_Select(fp->bundle, fp->bundle->radius.filterid, LINKUPFILE,
499 if (system_Select(fp->bundle, tbuff, LINKUPFILE, NULL, NULL) < 0) {
505 if (bundle_GetLabel(fp->bundle) && !Enabled(fp->bundle, OPT_IPCP)) {
506 if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle),
508 system_Select(fp->bundle, "MYADDR6", LINKUPFILE, NULL, NULL);
510 system_Select(fp->bundle, "MYADDR6", LINKUPFILE, NULL, NULL);
532 radius_Flush(&fp->bundle->radius);
533 radius_Account(&fp->bundle->radius, &fp->bundle->radacct6,
534 fp->bundle->links, RAD_STOP, &ipv6cp->throughput);
541 if (!Enabled(fp->bundle, OPT_IPCP)) {
542 if (fp->bundle->radius.cfg.file && fp->bundle->radius.filterid)
543 system_Select(fp->bundle, fp->bundle->radius.filterid, LINKDOWNFILE,
552 if (system_Select(fp->bundle, addr, LINKDOWNFILE, NULL, NULL) < 0) {
558 if (bundle_GetLabel(fp->bundle) && !Enabled(fp->bundle, OPT_IPCP)) {
559 if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle),
561 system_Select(fp->bundle, "MYADDR6", LINKDOWNFILE, NULL, NULL);
563 system_Select(fp->bundle, "MYADDR6", LINKDOWNFILE, NULL, NULL);
579 Enabled(fp->bundle, OPT_THROUGHPUT));
748 bundle_AdjustFilters(fp->bundle, &ipv6cp->myaddr, NULL);