Home
last modified time | relevance | path

Searched refs:bundle (Results 1 – 25 of 174) sorted by relevance

1234567

/freebsd-13.1/usr.sbin/ppp/
H A Dbundle.c117 bundle_PhaseName(struct bundle *bundle) in bundle_PhaseName() argument
200 struct bundle *bundle = (struct bundle *)v; in bundle_ClearQueues() local
281 struct bundle *bundle = (struct bundle *)v; in bundle_LayerUp() local
318 struct bundle *bundle = (struct bundle *)v; in bundle_LayerDown() local
373 struct bundle *bundle = (struct bundle *)v; in bundle_LayerFinish() local
671 bundle_LockTun(struct bundle *bundle) in bundle_LockTun() argument
725 for (bundle.unit = minunit; bundle.unit != maxunit; bundle.unit++) { in bundle_Create()
825 bundle.fsm.object = &bundle; in bundle_Create()
863 ncp_Init(&bundle.ncp, &bundle); in bundle_Create()
1158 struct bundle *bundle = (struct bundle *)v; in bundle_IdleTimeout() local
[all …]
H A Dbundle.h77 struct bundle { struct
166 extern void bundle_Destroy(struct bundle *);
170 extern void bundle_LinksRemoved(struct bundle *);
172 extern void bundle_Down(struct bundle *, int);
181 extern int bundle_IsDead(struct bundle *);
206 extern void bundle_setsid(struct bundle *, int);
207 extern void bundle_LockTun(struct bundle *);
212 extern void bundle_AdjustDNS(struct bundle *);
216 extern void bundle_ChangedPID(struct bundle *);
217 extern void bundle_Notify(struct bundle *, char);
[all …]
H A Dipv6cp.c201 struct bundle *bundle = ipv6cp->fsm.bundle; in ipcp_SetIPv6address() local
238 iface_Clear(bundle->iface, &bundle->ncp, AF_INET6, in ipcp_SetIPv6address()
245 if (bundle->ncp.cfg.sendpipe > 0 || bundle->ncp.cfg.recvpipe > 0) { in ipcp_SetIPv6address()
259 route_Change(bundle, bundle->radius.ipv6routes, &ipv6cp->myaddr, in ipcp_SetIPv6address()
353 ipv6cp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in ipv6cp_Input() argument
425 struct bundle *bundle = ipv6cp->fsm.bundle; in ipv6cp_PushPacket() local
482 radius_Account(&fp->bundle->radius, &fp->bundle->radacct6, in ipv6cp_LayerUp()
491 if (*fp->bundle->radius.cfg.file && fp->bundle->radius.filterid) in ipv6cp_LayerUp()
508 if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle), in ipv6cp_LayerUp()
535 radius_Account(&fp->bundle->radius, &fp->bundle->radacct6, in ipv6cp_LayerDown()
[all …]
H A Dipcp.c626 struct bundle *bundle = ipcp->fsm.bundle; in ipcp_proxyarp() local
668 struct bundle *bundle = ipcp->fsm.bundle; in ipcp_SetIPaddress() local
694 iface_Clear(bundle->iface, &bundle->ncp, AF_INET, in ipcp_SetIPaddress()
715 ChooseHisAddr(struct bundle *bundle, struct in_addr gw) in ChooseHisAddr() argument
850 struct bundle *bundle = ipcp->fsm.bundle; in ipcp_IfaceAddrAdded() local
862 struct bundle *bundle = ipcp->fsm.bundle; in ipcp_IfaceAddrDeleted() local
882 radius_Account(&fp->bundle->radius, &fp->bundle->radacct, in IpcpLayerDown()
951 radius_Account(&fp->bundle->radius, &fp->bundle->radacct, fp->bundle->links, in IpcpLayerUp()
966 if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle), in IpcpLayerUp()
982 struct bundle *bundle = ipcp->fsm.bundle; in ipcp_ValidateReq() local
[all …]
H A Dpap.c87 struct bundle *bundle = authp->physical->dl->bundle; in pap_Req() local
93 namelen = strlen(bundle->cfg.auth.name); in pap_Req()
94 keylen = strlen(bundle->cfg.auth.key); in pap_Req()
98 if (*bundle->cfg.auth.name == '\0') in pap_Req()
110 memcpy(cp, bundle->cfg.auth.key, keylen); in pap_Req()
147 struct bundle *bundle = authp->physical->dl->bundle; in pap_Success() local
151 if (*bundle->radius.cfg.file && bundle->radius.repstr) in pap_Success()
157 if (Enabled(bundle, OPT_UTMP)) in pap_Success()
182 pap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in pap_Input() argument
216 Enabled(bundle, OPT_IDCHECK)) { in pap_Input()
[all …]
H A Dcommand.c524 struct bundle *bundle, int inc0, pid_t pid) in command_Expand() argument
1089 FindExec(struct bundle *bundle, struct cmdtab const *cmds, int argc, int argn, in FindExec() argument
1121 arg.bundle = bundle; in FindExec()
1189 command_Run(struct bundle *bundle, int argc, char const *const *argv, in command_Run() argument
1682 arg->bundle->cfg.auth.key[sizeof arg->bundle->cfg.auth.key - 1] = '\0'; in SetVariable()
2345 if (arg->bundle->radius.port_id_type && !*arg->bundle->radius.cfg.file) { in SetVariable()
2837 if (Enabled(arg->bundle, OPT_IFACEALIAS) && !arg->bundle->NatEnabled) { in IfaceAliasOptSet()
3201 log_SetTun(arg->bundle->unit, arg->bundle->iface->name); in IfaceNameCommand()
3252 return !iface_Add(arg->bundle->iface, &arg->bundle->ncp, &ifa, &peer, how); in IfaceAddCommand()
3276 ok = iface_Delete(arg->bundle->iface, &arg->bundle->ncp, &ifa); in IfaceDeleteCommand()
[all …]
H A Dmain.c110 static struct bundle *SignalBundle;
310 struct bundle *bundle; in main() local
391 SignalBundle = bundle; in main()
392 bundle->NatEnabled = sw.nat; in main()
431 prompt->bundle = bundle; /* couldn't do it earlier */ in main()
535 DoLoop(bundle); in main()
542 DoLoop(struct bundle *bundle) in DoLoop() argument
565 for (; !bundle_IsDead(bundle); bundle_CleanDatalinks(bundle)) { in DoLoop()
578 if (bundle_IsDead(bundle)) in DoLoop()
661 descriptor_Read(&bundle->desc, bundle, rfds); in DoLoop()
[all …]
H A Dserver.c91 server_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in server_Read() argument
197 server_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, in server_Write()
218 server_Reopen(struct bundle *bundle) in server_Reopen() argument
229 server_Close(bundle); in server_Reopen()
236 server_Close(bundle); in server_Reopen()
245 server_LocalOpen(struct bundle *bundle, const char *name, mode_t mask) in server_LocalOpen() argument
289 server_Close(bundle); in server_LocalOpen()
312 server_TcpOpen(struct bundle *bundle, u_short port) in server_TcpOpen() argument
370 server_Close(bundle); in server_TcpOpen()
389 server_Close(struct bundle *bundle __unused) in server_Close()
[all …]
H A Dncp.c98 ncp_Init(struct ncp *ncp, struct bundle *bundle) in ncp_Init() argument
117 mp_Init(&ncp->mp, bundle); in ncp_Init()
120 ipcp_Init(&ncp->ipcp, bundle, &bundle->links->physical->link, in ncp_Init()
121 &bundle->fsm); in ncp_Init()
123 ipv6cp_Init(&ncp->ipv6cp, bundle, &bundle->links->physical->link, in ncp_Init()
124 &bundle->fsm); in ncp_Init()
151 struct bundle *bundle __unused in ncp_fsmStart()
153 struct bundle *bundle in ncp_fsmStart()
315 ncp_FillPhysicalQueues(struct ncp *ncp, struct bundle *bundle) in ncp_FillPhysicalQueues() argument
319 if (bundle->ncp.mp.active) in ncp_FillPhysicalQueues()
[all …]
H A Dmppe.c467 if (*fp->bundle->radius.cfg.file && fp->bundle->radius.mppe.policy) in MPPERequired()
475 MPPE_ConfigVal(struct bundle *bundle __unused, const struct ccp_config *cfg) in MPPE_ConfigVal()
485 if (*bundle->radius.cfg.file && bundle->radius.mppe.types) { in MPPE_ConfigVal()
514 MPPEInitOptsOutput(struct bundle *bundle, struct fsm_opt *o, in MPPEInitOptsOutput() argument
530 mval = MPPE_ConfigVal(bundle, cfg); in MPPEInitOptsOutput()
538 MPPESetOptsOutput(struct bundle *bundle, struct fsm_opt *o, in MPPESetOptsOutput() argument
577 MPPESetOptsInput(struct bundle *bundle, struct fsm_opt *o, in MPPESetOptsInput() argument
681 MPPEInitInput(struct bundle *bundle __unused, struct fsm_opt *o) in MPPEInitInput()
698 if (*bundle->radius.cfg.file && bundle->radius.mppe.recvkey) { in MPPEInitInput()
737 MPPEInitOutput(struct bundle *bundle __unused, struct fsm_opt *o) in MPPEInitOutput()
[all …]
H A Dtcpmss.c146 tcpmss_Check(struct bundle *bundle, struct mbuf *bp) in tcpmss_Check() argument
151 if (!Enabled(bundle, OPT_TCPMSSFIXUP)) in tcpmss_Check()
167 MAXMSS(bundle->iface->mtu)); in tcpmss_Check()
173 tcpmss_LayerPush(struct bundle *bundle, struct link *l __unused, in tcpmss_LayerPush() argument
176 return tcpmss_Check(bundle, bp); in tcpmss_LayerPush()
180 tcpmss_LayerPull(struct bundle *bundle, struct link *l __unused, in tcpmss_LayerPull() argument
183 return tcpmss_Check(bundle, bp); in tcpmss_LayerPull()
H A Droute.h33 struct bundle;
59 extern void route_IfDelete(struct bundle *, int);
60 extern void route_UpdateMTU(struct bundle *);
62 extern void route_Change(struct bundle *, struct sticky_route *,
68 extern void route_Clean(struct bundle *, struct sticky_route *);
72 extern int rt_Set(struct bundle *, int, const struct ncprange *,
74 extern void rt_Update(struct bundle *, const struct sockaddr *,
H A Dtun.c86 tun_configure(struct bundle *bundle) in tun_configure() argument
99 sprintf(ifr.ifr_name, "tun%d", bundle->unit); in tun_configure()
100 ifr.ifr_mtu = bundle->iface->mtu; in tun_configure()
111 info.mtu = bundle->iface->mtu; in tun_configure()
113 info.baudrate = bundle->bandwidth; in tun_configure()
117 if (ID0ioctl(bundle->dev.fd, TUNSIFINFO, &info) < 0) in tun_configure()
H A Dauth.c217 auth_Select(struct bundle *bundle, const char *name) in auth_Select() argument
225 ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE); in auth_Select()
230 if (bundle->radius.valid && bundle->radius.ip.s_addr != INADDR_NONE && in auth_Select()
233 if (!ipcp_UseHisIPaddr(bundle, bundle->radius.ip)) in auth_Select()
235 ipcp_Setup(&bundle->ncp.ipcp, bundle->radius.mask.s_addr); in auth_Select()
257 if (!bundle->radius.valid || bundle->radius.ip.s_addr == INADDR_NONE) { in auth_Select()
267 bundle_SetLabel(bundle, vector[3]); in auth_Select()
284 ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE); in auth_Select()
288 if (bundle->radius.valid) in auth_Select()
298 auth_Validate(struct bundle *bundle, const char *name, const char *key) in auth_Validate() argument
[all …]
H A Dserver.h31 struct bundle;
59 extern enum server_stat server_LocalOpen(struct bundle *, const char *, mode_t);
60 extern enum server_stat server_TcpOpen(struct bundle *, u_short);
61 extern enum server_stat server_Reopen(struct bundle *);
62 extern int server_Close(struct bundle *);
63 extern int server_Clear(struct bundle *);
H A Dchap.c423 chap_Read(struct fdescriptor *d, struct bundle *bundle __unused, in chap_Read()
480 chap_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, in chap_Write()
553 struct bundle *bundle = authp->physical->dl->bundle; in chap_Success() local
560 if (*bundle->radius.cfg.file && bundle->radius.msrepstr) in chap_Success()
569 if (*bundle->radius.cfg.file && bundle->radius.repstr) in chap_Success()
570 msg = bundle->radius.repstr; in chap_Success()
599 struct bundle *bundle = authp->physical->link.lcp.fsm.bundle; in chap_Failure() local
600 if (*bundle->radius.cfg.file && bundle->radius.errstr) in chap_Failure()
695 chap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in chap_Input() argument
839 if (*bundle->cfg.auth.key == '!' && bundle->cfg.auth.key[1] != '!') in chap_Input()
[all …]
H A Droute.c381 route_IfDelete(struct bundle *bundle, int all) in route_IfDelete() argument
472 route_UpdateMTU(struct bundle *bundle) in route_UpdateMTU() argument
545 route_Change(struct bundle *bundle, struct sticky_route *r, in route_Change() argument
736 rt_Set(struct bundle *bundle, int cmd, const struct ncprange *dst, in rt_Set() argument
759 rtmes.m_rtm.rtm_seq = ++bundle->routing_seq; in rt_Set()
764 if (bundle->ncp.cfg.sendpipe > 0) { in rt_Set()
768 if (bundle->ncp.cfg.recvpipe > 0) { in rt_Set()
861 rt_Update(struct bundle *bundle, const struct sockaddr *dst, in rt_Update() argument
880 rtmes.m_rtm.rtm_seq = ++bundle->routing_seq; in rt_Update()
884 if (bundle->ncp.cfg.sendpipe > 0) { in rt_Update()
[all …]
H A Dcommand.h34 struct bundle;
44 struct bundle *bundle; /* Our bundle */ member
66 extern void command_Expand(char **, int, char const *const *, struct bundle *,
71 extern void command_Run(struct bundle *, int, char const *const *,
73 extern int command_Decode(struct bundle *, char *, int, struct prompt *,
H A Darp.c102 arp_ProxySub(struct bundle *bundle, struct in_addr addr, int add) in arp_ProxySub() argument
126 arpmsg.hdr.rtm_seq = ++bundle->routing_seq; in arp_ProxySub()
149 arp_SetProxy(struct bundle *bundle, struct in_addr addr) in arp_SetProxy() argument
151 return (arp_ProxySub(bundle, addr, 1)); in arp_SetProxy()
158 arp_ClearProxy(struct bundle *bundle, struct in_addr addr) in arp_ClearProxy() argument
160 return (arp_ProxySub(bundle, addr, 0)); in arp_ClearProxy()
169 arp_SetProxy(struct bundle *bundle, struct in_addr addr, int s) in arp_SetProxy() argument
206 arp_ClearProxy(struct bundle *bundle, struct in_addr addr, int s) in arp_ClearProxy() argument
H A Dvjcomp.c75 vj_LayerPush(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, in vj_LayerPush() argument
80 u_short cproto = bundle->ncp.ipcp.peer_compproto >> 16; in vj_LayerPush()
86 type = sl_compress_tcp(bp, pip, &bundle->ncp.ipcp.vj.cslc, in vj_LayerPush()
87 &bundle->ncp.ipcp.vj.slstat, in vj_LayerPush()
88 bundle->ncp.ipcp.peer_compproto & 0xff); in vj_LayerPush()
167 vj_LayerPull(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, in vj_LayerPull() argument
186 return VjUncompressTcp(&bundle->ncp.ipcp, bp, type); in vj_LayerPull()
H A Dip.h36 struct bundle;
38 extern int ip_PushPacket(struct link *, struct bundle *);
39 extern int PacketCheck(struct bundle *, u_int32_t, const unsigned char *, int,
43 extern struct mbuf *ipv4_Input(struct bundle *, struct link *, struct mbuf *);
45 extern struct mbuf *ipv6_Input(struct bundle *, struct link *, struct mbuf *);
H A Dradius.c253 struct bundle *bundle; in radius_Process() local
403 bundle = r->cx.auth->physical->dl->bundle; in radius_Process()
488 bundle = r->cx.auth->physical->dl->bundle; in radius_Process()
687 radius_Read(struct fdescriptor *d, struct bundle *bundle __unused, in radius_Read()
747 radius_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, in radius_Write()
1336 struct bundle *bundle = (struct bundle *)v; in radius_alive() local
1341 radius_Account(&bundle->radius, &bundle->radacct, in radius_alive()
1342 bundle->links, RAD_ALIVE, &bundle->ncp.ipcp.throughput); in radius_alive()
1348 radius_StartTimer(struct bundle *bundle) in radius_StartTimer() argument
1350 if (*bundle->radius.cfg.file && bundle->radius.alive.interval) { in radius_StartTimer()
[all …]
H A Dmp.c242 mp_Init(struct mp *mp, struct bundle *bundle) in mp_Init() argument
255 mp->bundle = bundle; in mp_Init()
614 mp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in mp_Input() argument
618 if (!bundle->ncp.mp.active) in mp_Input()
634 mp_Output(struct mp *mp, struct bundle *bundle, struct link *l, in mp_Output() argument
668 mp_FillPhysicalQueues(struct bundle *bundle) in mp_FillPhysicalQueues() argument
693 fdl = bundle->links; in mp_FillPhysicalQueues()
702 dl = bundle->links; in mp_FillPhysicalQueues()
792 dl = bundle->links; in mp_FillPhysicalQueues()
1080 mpserver_Read(struct fdescriptor *d, struct bundle *bundle, in mpserver_Read() argument
[all …]
H A Dip.c560 PacketCheck(struct bundle *bundle, u_int32_t family, in PacketCheck() argument
912 ip_Input(struct bundle *bundle, struct link *l, struct mbuf *bp, u_int32_t af) in ip_Input() argument
930 if (PacketCheck(bundle, af, tun.data, nb, &bundle->filter.in, in ip_Input()
938 bundle_StartIdleTimer(bundle, secs); in ip_Input()
941 if (bundle->dev.header) { in ip_Input()
948 nw = write(bundle->dev.fd, data, nb); in ip_Input()
962 ipv4_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in ipv4_Input() argument
974 nb = ip_Input(bundle, l, bp, AF_INET); in ipv4_Input()
975 ipcp_AddInOctets(&bundle->ncp.ipcp, nb); in ipv4_Input()
982 ipv6_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in ipv6_Input() argument
[all …]
H A Dccp.h132 int (*Set)(struct bundle *, struct fsm_opt *, const struct ccp_config *);
133 void *(*Init)(struct bundle *, struct fsm_opt *);
141 void (*OptInit)(struct bundle *, struct fsm_opt *,
143 int (*Set)(struct bundle *, struct fsm_opt *, const struct ccp_config *);
144 void *(*Init)(struct bundle *, struct fsm_opt *);
152 extern void ccp_Init(struct ccp *, struct bundle *, struct link *,
159 extern struct mbuf *ccp_Input(struct bundle *, struct link *, struct mbuf *);

1234567