usr.sbin/ppp/acf.c
61
acf_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/acf.c
75
acf_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/arp.c
100
arp_ProxySub(struct bundle *bundle, struct in_addr addr, int add)
usr.sbin/ppp/arp.c
124
arpmsg.hdr.rtm_seq = ++bundle->routing_seq;
usr.sbin/ppp/arp.c
148
arp_SetProxy(struct bundle *bundle, struct in_addr addr)
usr.sbin/ppp/arp.c
150
return (arp_ProxySub(bundle, addr, 1));
usr.sbin/ppp/arp.c
157
arp_ClearProxy(struct bundle *bundle, struct in_addr addr)
usr.sbin/ppp/arp.c
159
return (arp_ProxySub(bundle, addr, 0));
usr.sbin/ppp/arp.c
168
arp_SetProxy(struct bundle *bundle, struct in_addr addr, int s)
usr.sbin/ppp/arp.c
205
arp_ClearProxy(struct bundle *bundle, struct in_addr addr, int s)
usr.sbin/ppp/arp.h
33
struct bundle;
usr.sbin/ppp/arp.h
35
extern int arp_ClearProxy(struct bundle *, struct in_addr);
usr.sbin/ppp/arp.h
36
extern int arp_SetProxy(struct bundle *, struct in_addr);
usr.sbin/ppp/async.c
103
async_LayerPush(struct bundle *bundle __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/async.c
186
async_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/async.h
48
struct bundle;
usr.sbin/ppp/auth.c
168
auth_Select(struct bundle *bundle, const char *name)
usr.sbin/ppp/auth.c
176
ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE);
usr.sbin/ppp/auth.c
181
if (bundle->radius.valid && bundle->radius.ip.s_addr != INADDR_NONE &&
usr.sbin/ppp/auth.c
182
bundle->radius.ip.s_addr != RADIUS_INADDR_POOL) {
usr.sbin/ppp/auth.c
184
if (!ipcp_UseHisIPaddr(bundle, bundle->radius.ip))
usr.sbin/ppp/auth.c
186
ipcp_Setup(&bundle->ncp.ipcp, bundle->radius.mask.s_addr);
usr.sbin/ppp/auth.c
208
if (!bundle->radius.valid || bundle->radius.ip.s_addr == INADDR_NONE) {
usr.sbin/ppp/auth.c
211
!ipcp_UseHisaddr(bundle, vector[2], 1))
usr.sbin/ppp/auth.c
213
ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE);
usr.sbin/ppp/auth.c
218
bundle_SetLabel(bundle, vector[3]);
usr.sbin/ppp/auth.c
235
ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE);
usr.sbin/ppp/auth.c
239
if (bundle->radius.valid)
usr.sbin/ppp/auth.c
249
auth_Validate(struct bundle *bundle, const char *name, const char *key)
usr.sbin/ppp/auth.c
292
if (Enabled(bundle, OPT_PASSWDAUTH))
usr.sbin/ppp/auth.h
33
struct bundle;
usr.sbin/ppp/auth.h
64
extern int auth_Validate(struct bundle *, const char *, const char *);
usr.sbin/ppp/auth.h
67
extern int auth_Select(struct bundle *, const char *);
usr.sbin/ppp/bundle.c
1002
bundle2datalink(struct bundle *bundle, const char *name)
usr.sbin/ppp/bundle.c
1007
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
1010
} else if (bundle->links && !bundle->links->next)
usr.sbin/ppp/bundle.c
1011
return bundle->links;
usr.sbin/ppp/bundle.c
1024
for (dl = arg->bundle->links; dl; dl = dl->next) {
usr.sbin/ppp/bundle.c
1038
t = &arg->bundle->ncp.mp.link.stats.total;
usr.sbin/ppp/bundle.c
1051
optval(struct bundle *bundle, int bit)
usr.sbin/ppp/bundle.c
1053
return (bundle->cfg.opt & bit) ? "enabled" : "disabled";
usr.sbin/ppp/bundle.c
1061
prompt_Printf(arg->prompt, "Phase %s\n", bundle_PhaseName(arg->bundle));
usr.sbin/ppp/bundle.c
1062
prompt_Printf(arg->prompt, " Device: %s\n", arg->bundle->dev.Name);
usr.sbin/ppp/bundle.c
1064
arg->bundle->iface->name, arg->bundle->bandwidth);
usr.sbin/ppp/bundle.c
1066
if (arg->bundle->upat) {
usr.sbin/ppp/bundle.c
1067
int secs = bundle_Uptime(arg->bundle);
usr.sbin/ppp/bundle.c
1073
(unsigned long)ncp_QueueLen(&arg->bundle->ncp),
usr.sbin/ppp/bundle.c
1074
arg->bundle->cfg.ifqueue);
usr.sbin/ppp/bundle.c
1078
arg->bundle->cfg.label);
usr.sbin/ppp/bundle.c
108
static int bundle_RemainingIdleTime(struct bundle *);
usr.sbin/ppp/bundle.c
1080
arg->bundle->cfg.auth.name);
usr.sbin/ppp/bundle.c
1094
arg->bundle->cfg.choked.timeout);
usr.sbin/ppp/bundle.c
1097
radius_Show(&arg->bundle->radius, arg->prompt);
usr.sbin/ppp/bundle.c
1101
if (arg->bundle->cfg.idle.timeout) {
usr.sbin/ppp/bundle.c
1102
prompt_Printf(arg->prompt, "%us", arg->bundle->cfg.idle.timeout);
usr.sbin/ppp/bundle.c
1103
if (arg->bundle->cfg.idle.min_timeout)
usr.sbin/ppp/bundle.c
1105
arg->bundle->cfg.idle.min_timeout);
usr.sbin/ppp/bundle.c
1106
remaining = bundle_RemainingIdleTime(arg->bundle);
usr.sbin/ppp/bundle.c
1114
optval(arg->bundle, OPT_FILTERDECAP));
usr.sbin/ppp/bundle.c
1116
optval(arg->bundle, OPT_IDCHECK));
usr.sbin/ppp/bundle.c
1118
optval(arg->bundle, OPT_IFACEALIAS));
usr.sbin/ppp/bundle.c
1121
optval(arg->bundle, OPT_IPCP));
usr.sbin/ppp/bundle.c
1123
optval(arg->bundle, OPT_IPV6CP));
usr.sbin/ppp/bundle.c
1126
optval(arg->bundle, OPT_KEEPSESSION));
usr.sbin/ppp/bundle.c
1128
optval(arg->bundle, OPT_LOOPBACK));
usr.sbin/ppp/bundle.c
1130
optval(arg->bundle, OPT_PASSWDAUTH));
usr.sbin/ppp/bundle.c
1132
optval(arg->bundle, OPT_PROXY));
usr.sbin/ppp/bundle.c
1134
optval(arg->bundle, OPT_PROXYALL));
usr.sbin/ppp/bundle.c
1136
optval(arg->bundle, OPT_SROUTES));
usr.sbin/ppp/bundle.c
1138
optval(arg->bundle, OPT_TCPMSSFIXUP));
usr.sbin/ppp/bundle.c
1140
optval(arg->bundle, OPT_THROUGHPUT));
usr.sbin/ppp/bundle.c
1142
optval(arg->bundle, OPT_UTMP));
usr.sbin/ppp/bundle.c
115
bundle_PhaseName(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1150
struct bundle *bundle = (struct bundle *)v;
usr.sbin/ppp/bundle.c
1153
bundle_StopIdleTimer(bundle);
usr.sbin/ppp/bundle.c
1154
bundle_Close(bundle, NULL, CLOSE_STAYDOWN);
usr.sbin/ppp/bundle.c
1162
bundle_StartIdleTimer(struct bundle *bundle, unsigned secs)
usr.sbin/ppp/bundle.c
1164
timer_Stop(&bundle->idle.timer);
usr.sbin/ppp/bundle.c
1165
if ((bundle->phys_type.open & (PHYS_DEDICATED|PHYS_DDIAL)) !=
usr.sbin/ppp/bundle.c
1166
bundle->phys_type.open && bundle->cfg.idle.timeout) {
usr.sbin/ppp/bundle.c
117
return bundle->phase <= PHASE_TERMINATE ?
usr.sbin/ppp/bundle.c
1170
secs = bundle->cfg.idle.timeout;
usr.sbin/ppp/bundle.c
1173
if (bundle->cfg.idle.min_timeout > secs && bundle->upat) {
usr.sbin/ppp/bundle.c
1174
unsigned up = now - bundle->upat;
usr.sbin/ppp/bundle.c
1176
if (bundle->cfg.idle.min_timeout > up &&
usr.sbin/ppp/bundle.c
1177
bundle->cfg.idle.min_timeout - up > (long long)secs)
usr.sbin/ppp/bundle.c
1179
secs = bundle->cfg.idle.min_timeout - up;
usr.sbin/ppp/bundle.c
118
PhaseNames[bundle->phase] : "unknown";
usr.sbin/ppp/bundle.c
1181
bundle->idle.timer.func = bundle_IdleTimeout;
usr.sbin/ppp/bundle.c
1182
bundle->idle.timer.name = "idle";
usr.sbin/ppp/bundle.c
1183
bundle->idle.timer.load = secs * SECTICKS;
usr.sbin/ppp/bundle.c
1184
bundle->idle.timer.arg = bundle;
usr.sbin/ppp/bundle.c
1185
timer_Start(&bundle->idle.timer);
usr.sbin/ppp/bundle.c
1186
bundle->idle.done = now + secs;
usr.sbin/ppp/bundle.c
1191
bundle_SetIdleTimer(struct bundle *bundle, unsigned timeout,
usr.sbin/ppp/bundle.c
1194
bundle->cfg.idle.timeout = timeout;
usr.sbin/ppp/bundle.c
1195
bundle->cfg.idle.min_timeout = min_timeout;
usr.sbin/ppp/bundle.c
1196
if (ncp_LayersOpen(&bundle->ncp))
usr.sbin/ppp/bundle.c
1197
bundle_StartIdleTimer(bundle, 0);
usr.sbin/ppp/bundle.c
1201
bundle_StopIdleTimer(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1203
timer_Stop(&bundle->idle.timer);
usr.sbin/ppp/bundle.c
1204
bundle->idle.done = 0;
usr.sbin/ppp/bundle.c
1208
bundle_RemainingIdleTime(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1210
if (bundle->idle.done)
usr.sbin/ppp/bundle.c
1211
return bundle->idle.done - time(NULL);
usr.sbin/ppp/bundle.c
122
bundle_NewPhase(struct bundle *bundle, u_int new)
usr.sbin/ppp/bundle.c
1220
struct bundle *bundle = (struct bundle *)v;
usr.sbin/ppp/bundle.c
1223
bundle_StopSessionTimer(bundle);
usr.sbin/ppp/bundle.c
1224
bundle_Close(bundle, NULL, CLOSE_STAYDOWN);
usr.sbin/ppp/bundle.c
1228
bundle_StartSessionTimer(struct bundle *bundle, unsigned secs)
usr.sbin/ppp/bundle.c
1230
timer_Stop(&bundle->session.timer);
usr.sbin/ppp/bundle.c
1231
if ((bundle->phys_type.open & (PHYS_DEDICATED|PHYS_DDIAL)) !=
usr.sbin/ppp/bundle.c
1232
bundle->phys_type.open && bundle->radius.sessiontime) {
usr.sbin/ppp/bundle.c
1236
secs = bundle->radius.sessiontime;
usr.sbin/ppp/bundle.c
1238
bundle->session.timer.func = bundle_SessionTimeout;
usr.sbin/ppp/bundle.c
1239
bundle->session.timer.name = "session";
usr.sbin/ppp/bundle.c
124
if (new == bundle->phase)
usr.sbin/ppp/bundle.c
1240
bundle->session.timer.load = secs * SECTICKS;
usr.sbin/ppp/bundle.c
1241
bundle->session.timer.arg = bundle;
usr.sbin/ppp/bundle.c
1242
timer_Start(&bundle->session.timer);
usr.sbin/ppp/bundle.c
1243
bundle->session.done = now + secs;
usr.sbin/ppp/bundle.c
1248
bundle_StopSessionTimer(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1250
timer_Stop(&bundle->session.timer);
usr.sbin/ppp/bundle.c
1251
bundle->session.done = 0;
usr.sbin/ppp/bundle.c
1257
bundle_IsDead(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1259
return !bundle->links || (bundle->phase == PHASE_DEAD && bundle->CleaningUp);
usr.sbin/ppp/bundle.c
1263
bundle_DatalinkLinkout(struct bundle *bundle, struct datalink *dl)
usr.sbin/ppp/bundle.c
1267
for (dlp = &bundle->links; *dlp; dlp = &(*dlp)->next)
usr.sbin/ppp/bundle.c
1271
bundle_LinksRemoved(bundle);
usr.sbin/ppp/bundle.c
1279
bundle_DatalinkLinkin(struct bundle *bundle, struct datalink *dl)
usr.sbin/ppp/bundle.c
1281
struct datalink **dlp = &bundle->links;
usr.sbin/ppp/bundle.c
1289
bundle_LinkAdded(bundle, dl);
usr.sbin/ppp/bundle.c
1290
mp_CheckAutoloadTimer(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
1294
bundle_CleanDatalinks(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1296
struct datalink **dlp = &bundle->links;
usr.sbin/ppp/bundle.c
1309
bundle_LinksRemoved(bundle);
usr.sbin/ppp/bundle.c
1313
bundle_DatalinkClone(struct bundle *bundle, struct datalink *dl,
usr.sbin/ppp/bundle.c
1316
if (bundle2datalink(bundle, name)) {
usr.sbin/ppp/bundle.c
132
bundle->phase = new;
usr.sbin/ppp/bundle.c
1321
bundle_DatalinkLinkin(bundle, datalink_Clone(dl, name));
usr.sbin/ppp/bundle.c
1326
bundle_DatalinkRemove(struct bundle *bundle, struct datalink *dl)
usr.sbin/ppp/bundle.c
1328
dl = bundle_DatalinkLinkout(bundle, dl);
usr.sbin/ppp/bundle.c
1334
bundle_SetLabel(struct bundle *bundle, const char *label)
usr.sbin/ppp/bundle.c
1337
strncpy(bundle->cfg.label, label, sizeof bundle->cfg.label - 1);
usr.sbin/ppp/bundle.c
1339
*bundle->cfg.label = '\0';
usr.sbin/ppp/bundle.c
1343
bundle_GetLabel(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1345
return *bundle->cfg.label ? bundle->cfg.label : NULL;
usr.sbin/ppp/bundle.c
1369
bundle_ReceiveDatalink(struct bundle *bundle, int s)
usr.sbin/ppp/bundle.c
140
bundle->phase = new;
usr.sbin/ppp/bundle.c
144
bundle->phase = new;
usr.sbin/ppp/bundle.c
149
if (ncp_fsmStart(&bundle->ncp, bundle)) {
usr.sbin/ppp/bundle.c
150
bundle->phase = new;
usr.sbin/ppp/bundle.c
1504
dl = iov2datalink(bundle, iov, &niov, NELEM(iov), fd[0],
usr.sbin/ppp/bundle.c
1516
bundle_DatalinkLinkin(bundle, dl);
usr.sbin/ppp/bundle.c
1518
bundle_CalculateBandwidth(dl->bundle);
usr.sbin/ppp/bundle.c
154
bundle_Close(bundle, NULL, CLOSE_STAYDOWN);
usr.sbin/ppp/bundle.c
1553
bundle_LinkClosed(dl->bundle, dl);
usr.sbin/ppp/bundle.c
1554
bundle_DatalinkLinkout(dl->bundle, dl);
usr.sbin/ppp/bundle.c
159
bundle->phase = new;
usr.sbin/ppp/bundle.c
160
mp_Down(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
1645
newsid = Enabled(dl->bundle, OPT_KEEPSESSION) ||
usr.sbin/ppp/bundle.c
1650
bundle_setsid(dl->bundle, got != -1);
usr.sbin/ppp/bundle.c
1659
bundle_RenameDatalink(struct bundle *bundle, struct datalink *ndl,
usr.sbin/ppp/bundle.c
1667
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
1676
bundle_SetMode(struct bundle *bundle, struct datalink *dl, int mode)
usr.sbin/ppp/bundle.c
1684
if (mode == PHYS_AUTO && !(bundle->phys_type.all & PHYS_AUTO))
usr.sbin/ppp/bundle.c
1686
if (bundle->ncp.ipcp.peer_ip.s_addr == INADDR_ANY) {
usr.sbin/ppp/bundle.c
1695
if (mode == PHYS_AUTO && !(bundle->phys_type.all & PHYS_AUTO) &&
usr.sbin/ppp/bundle.c
1696
bundle->phase != PHASE_NETWORK)
usr.sbin/ppp/bundle.c
1698
ipcp_InterfaceUp(&bundle->ncp.ipcp);
usr.sbin/ppp/bundle.c
1701
bundle_LinksRemoved(bundle);
usr.sbin/ppp/bundle.c
1707
bundle_setsid(struct bundle *bundle, int holdsession)
usr.sbin/ppp/bundle.c
1719
if (!holdsession && bundle_IsDead(bundle)) {
usr.sbin/ppp/bundle.c
174
bundle_Notify(struct bundle *bundle, char c)
usr.sbin/ppp/bundle.c
1756
bundle_LockTun(bundle); /* update pid */
usr.sbin/ppp/bundle.c
176
if (bundle->notify.fd != -1) {
usr.sbin/ppp/bundle.c
1760
bundle_ChangedPID(bundle);
usr.sbin/ppp/bundle.c
1769
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
1781
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
179
ret = write(bundle->notify.fd, &c, 1);
usr.sbin/ppp/bundle.c
1824
bundle_HighestState(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1829
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
1837
bundle_Exception(struct bundle *bundle, int fd)
usr.sbin/ppp/bundle.c
1841
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
1851
bundle_AdjustFilters(struct bundle *bundle, struct ncpaddr *local,
usr.sbin/ppp/bundle.c
1854
filter_AdjustAddr(&bundle->filter.in, local, remote, NULL);
usr.sbin/ppp/bundle.c
1855
filter_AdjustAddr(&bundle->filter.out, local, remote, NULL);
usr.sbin/ppp/bundle.c
1856
filter_AdjustAddr(&bundle->filter.dial, local, remote, NULL);
usr.sbin/ppp/bundle.c
1857
filter_AdjustAddr(&bundle->filter.alive, local, remote, NULL);
usr.sbin/ppp/bundle.c
186
close(bundle->notify.fd);
usr.sbin/ppp/bundle.c
1861
bundle_AdjustDNS(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1863
struct in_addr *dns = bundle->ncp.ipcp.ns.dns;
usr.sbin/ppp/bundle.c
1865
filter_AdjustAddr(&bundle->filter.in, NULL, NULL, dns);
usr.sbin/ppp/bundle.c
1866
filter_AdjustAddr(&bundle->filter.out, NULL, NULL, dns);
usr.sbin/ppp/bundle.c
1867
filter_AdjustAddr(&bundle->filter.dial, NULL, NULL, dns);
usr.sbin/ppp/bundle.c
1868
filter_AdjustAddr(&bundle->filter.alive, NULL, NULL, dns);
usr.sbin/ppp/bundle.c
187
bundle->notify.fd = -1;
usr.sbin/ppp/bundle.c
1872
bundle_CalculateBandwidth(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1877
bundle->bandwidth = 0;
usr.sbin/ppp/bundle.c
1878
bundle->iface->mtu = 0;
usr.sbin/ppp/bundle.c
1881
for (dl = bundle->links; dl; dl = dl->next) {
usr.sbin/ppp/bundle.c
1891
bundle->bandwidth += sp;
usr.sbin/ppp/bundle.c
1892
if (!bundle->ncp.mp.active) {
usr.sbin/ppp/bundle.c
1893
bundle->iface->mtu = dl->physical->link.lcp.his_mru;
usr.sbin/ppp/bundle.c
1899
if (bundle->bandwidth == 0)
usr.sbin/ppp/bundle.c
1900
bundle->bandwidth = 115200; /* Shrug */
usr.sbin/ppp/bundle.c
1902
if (bundle->ncp.mp.active) {
usr.sbin/ppp/bundle.c
1903
bundle->iface->mtu = bundle->ncp.mp.peer_mrru;
usr.sbin/ppp/bundle.c
1904
overhead = ccp_MTUOverhead(&bundle->ncp.mp.link.ccp);
usr.sbin/ppp/bundle.c
1907
} else if (!bundle->iface->mtu)
usr.sbin/ppp/bundle.c
1908
bundle->iface->mtu = DEF_MRU;
usr.sbin/ppp/bundle.c
1911
if (bundle->radius.valid && bundle->radius.mtu &&
usr.sbin/ppp/bundle.c
1912
bundle->radius.mtu < bundle->iface->mtu) {
usr.sbin/ppp/bundle.c
1914
bundle->radius.mtu);
usr.sbin/ppp/bundle.c
1915
bundle->iface->mtu = bundle->radius.mtu;
usr.sbin/ppp/bundle.c
1921
bundle->iface->mtu, bundle->iface->mtu - maxoverhead);
usr.sbin/ppp/bundle.c
1922
bundle->iface->mtu -= maxoverhead;
usr.sbin/ppp/bundle.c
1925
tun_configure(bundle);
usr.sbin/ppp/bundle.c
1927
route_UpdateMTU(bundle);
usr.sbin/ppp/bundle.c
1931
bundle_AutoAdjust(struct bundle *bundle, int percent, int what)
usr.sbin/ppp/bundle.c
1936
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
1962
mp_CheckAutoloadTimer(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
1967
mp_CheckAutoloadTimer(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
1973
bundle_WantAutoloadTimer(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1978
if (bundle->phase == PHASE_NETWORK) {
usr.sbin/ppp/bundle.c
1979
for (autolink = opened = 0, dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
198
struct bundle *bundle = (struct bundle *)v;
usr.sbin/ppp/bundle.c
1996
bundle_ChangedPID(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1999
ioctl(bundle->dev.fd, TUNSIFPID, 0);
usr.sbin/ppp/bundle.c
2004
bundle_Uptime(struct bundle *bundle)
usr.sbin/ppp/bundle.c
2006
if (bundle->upat)
usr.sbin/ppp/bundle.c
2007
return time(NULL) - bundle->upat;
usr.sbin/ppp/bundle.c
202
timer_Stop(&bundle->choked.timer);
usr.sbin/ppp/bundle.c
219
ncp_DeleteQueues(&bundle->ncp);
usr.sbin/ppp/bundle.c
220
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
225
bundle_LinkAdded(struct bundle *bundle, struct datalink *dl)
usr.sbin/ppp/bundle.c
227
bundle->phys_type.all |= dl->physical->type;
usr.sbin/ppp/bundle.c
229
bundle->phys_type.open |= dl->physical->type;
usr.sbin/ppp/bundle.c
232
if ((bundle->phys_type.open & (PHYS_DEDICATED|PHYS_DDIAL))
usr.sbin/ppp/bundle.c
233
!= bundle->phys_type.open && bundle->session.timer.state == TIMER_STOPPED)
usr.sbin/ppp/bundle.c
234
if (bundle->radius.sessiontime)
usr.sbin/ppp/bundle.c
235
bundle_StartSessionTimer(bundle, 0);
usr.sbin/ppp/bundle.c
238
if ((bundle->phys_type.open & (PHYS_DEDICATED|PHYS_DDIAL))
usr.sbin/ppp/bundle.c
239
!= bundle->phys_type.open && bundle->idle.timer.state == TIMER_STOPPED)
usr.sbin/ppp/bundle.c
241
bundle_StartIdleTimer(bundle, 0);
usr.sbin/ppp/bundle.c
245
bundle_LinksRemoved(struct bundle *bundle)
usr.sbin/ppp/bundle.c
249
bundle->phys_type.all = bundle->phys_type.open = 0;
usr.sbin/ppp/bundle.c
250
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
251
bundle_LinkAdded(bundle, dl);
usr.sbin/ppp/bundle.c
253
bundle_CalculateBandwidth(bundle);
usr.sbin/ppp/bundle.c
254
mp_CheckAutoloadTimer(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
256
if ((bundle->phys_type.open & (PHYS_DEDICATED|PHYS_DDIAL))
usr.sbin/ppp/bundle.c
257
== bundle->phys_type.open) {
usr.sbin/ppp/bundle.c
259
if (bundle->radius.sessiontime)
usr.sbin/ppp/bundle.c
260
bundle_StopSessionTimer(bundle);
usr.sbin/ppp/bundle.c
262
bundle_StopIdleTimer(bundle);
usr.sbin/ppp/bundle.c
279
struct bundle *bundle = (struct bundle *)v;
usr.sbin/ppp/bundle.c
284
bundle_LinkAdded(bundle, p->dl);
usr.sbin/ppp/bundle.c
285
mp_CheckAutoloadTimer(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
287
if (ncp_LayersOpen(&fp->bundle->ncp) == 1) {
usr.sbin/ppp/bundle.c
288
bundle_CalculateBandwidth(fp->bundle);
usr.sbin/ppp/bundle.c
289
time(&bundle->upat);
usr.sbin/ppp/bundle.c
291
if (bundle->radius.sessiontime)
usr.sbin/ppp/bundle.c
292
bundle_StartSessionTimer(bundle, 0);
usr.sbin/ppp/bundle.c
294
bundle_StartIdleTimer(bundle, 0);
usr.sbin/ppp/bundle.c
295
mp_CheckAutoloadTimer(&fp->bundle->ncp.mp);
usr.sbin/ppp/bundle.c
297
bundle_Notify(bundle, EX_NORMAL);
usr.sbin/ppp/bundle.c
299
bundle_CalculateBandwidth(fp->bundle); /* Against ccp_MTUOverhead */
usr.sbin/ppp/bundle.c
316
struct bundle *bundle = (struct bundle *)v;
usr.sbin/ppp/bundle.c
319
if (ncp_LayersOpen(&fp->bundle->ncp) == 0) {
usr.sbin/ppp/bundle.c
321
if (bundle->radius.sessiontime)
usr.sbin/ppp/bundle.c
322
bundle_StopSessionTimer(bundle);
usr.sbin/ppp/bundle.c
324
bundle_StopIdleTimer(bundle);
usr.sbin/ppp/bundle.c
325
bundle->upat = 0;
usr.sbin/ppp/bundle.c
326
mp_StopAutoloadTimer(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
333
bundle_LinksRemoved(bundle); /* adjust timers & phys_type values */
usr.sbin/ppp/bundle.c
337
for (dl = bundle->links; dl; dl = dl->next) {
usr.sbin/ppp/bundle.c
344
if (bundle->ncp.mp.active) {
usr.sbin/ppp/bundle.c
345
bundle_CalculateBandwidth(bundle);
usr.sbin/ppp/bundle.c
348
mp_LinkLost(&bundle->ncp.mp, lost);
usr.sbin/ppp/bundle.c
356
ncp2initial(&bundle->ncp);
usr.sbin/ppp/bundle.c
357
mp_Down(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
371
struct bundle *bundle = (struct bundle *)v;
usr.sbin/ppp/bundle.c
374
if (isncp(fp->proto) && !ncp_LayersUnfinished(&bundle->ncp)) {
usr.sbin/ppp/bundle.c
375
if (bundle_Phase(bundle) != PHASE_DEAD)
usr.sbin/ppp/bundle.c
376
bundle_NewPhase(bundle, PHASE_TERMINATE);
usr.sbin/ppp/bundle.c
377
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
381
mp_Down(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
386
bundle_Close(struct bundle *bundle, const char *name, int how)
usr.sbin/ppp/bundle.c
401
for (dl = bundle->links; dl; dl = dl->next) {
usr.sbin/ppp/bundle.c
424
if (bundle->radius.sessiontime)
usr.sbin/ppp/bundle.c
425
bundle_StopSessionTimer(bundle);
usr.sbin/ppp/bundle.c
427
bundle_StopIdleTimer(bundle);
usr.sbin/ppp/bundle.c
428
if (ncp_LayersUnfinished(&bundle->ncp))
usr.sbin/ppp/bundle.c
429
ncp_Close(&bundle->ncp);
usr.sbin/ppp/bundle.c
431
ncp2initial(&bundle->ncp);
usr.sbin/ppp/bundle.c
432
mp_Down(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
433
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
442
bundle_Down(struct bundle *bundle, int how)
usr.sbin/ppp/bundle.c
446
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
453
struct bundle *bundle = descriptor2bundle(d);
usr.sbin/ppp/bundle.c
462
for (nlinks = 0, dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
466
queued = r ? ncp_FillPhysicalQueues(&bundle->ncp, bundle) :
usr.sbin/ppp/bundle.c
467
ncp_QueueLen(&bundle->ncp);
usr.sbin/ppp/bundle.c
469
if (r && (bundle->phase == PHASE_NETWORK ||
usr.sbin/ppp/bundle.c
470
bundle->phys_type.all & PHYS_AUTO)) {
usr.sbin/ppp/bundle.c
472
ifqueue = nlinks > bundle->cfg.ifqueue ? nlinks : bundle->cfg.ifqueue;
usr.sbin/ppp/bundle.c
475
if (bundle->choked.timer.state == TIMER_RUNNING)
usr.sbin/ppp/bundle.c
476
timer_Stop(&bundle->choked.timer); /* Not needed any more */
usr.sbin/ppp/bundle.c
477
FD_SET(bundle->dev.fd, r);
usr.sbin/ppp/bundle.c
478
if (*n < bundle->dev.fd + 1)
usr.sbin/ppp/bundle.c
479
*n = bundle->dev.fd + 1;
usr.sbin/ppp/bundle.c
480
log_Printf(LogTIMER, "%s: fdset(r) %d\n", TUN_NAME, bundle->dev.fd);
usr.sbin/ppp/bundle.c
482
} else if (bundle->choked.timer.state == TIMER_STOPPED) {
usr.sbin/ppp/bundle.c
483
bundle->choked.timer.func = bundle_ClearQueues;
usr.sbin/ppp/bundle.c
484
bundle->choked.timer.name = "output choke";
usr.sbin/ppp/bundle.c
485
bundle->choked.timer.load = bundle->cfg.choked.timeout * SECTICKS;
usr.sbin/ppp/bundle.c
486
bundle->choked.timer.arg = bundle;
usr.sbin/ppp/bundle.c
487
timer_Start(&bundle->choked.timer);
usr.sbin/ppp/bundle.c
493
result += descriptor_UpdateSet(&bundle->radius.desc, r, w, e, n);
usr.sbin/ppp/bundle.c
497
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
505
result += descriptor_UpdateSet(&bundle->ncp.mp.server.desc, r, w, e, n);
usr.sbin/ppp/bundle.c
513
struct bundle *bundle = descriptor2bundle(d);
usr.sbin/ppp/bundle.c
516
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
521
if (descriptor_IsSet(&bundle->radius.desc, fdset))
usr.sbin/ppp/bundle.c
525
if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset))
usr.sbin/ppp/bundle.c
528
return FD_ISSET(bundle->dev.fd, fdset);
usr.sbin/ppp/bundle.c
532
bundle_DescriptorRead(struct fdescriptor *d __unused, struct bundle *bundle,
usr.sbin/ppp/bundle.c
539
if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset))
usr.sbin/ppp/bundle.c
540
descriptor_Read(&bundle->ncp.mp.server.desc, bundle, fdset);
usr.sbin/ppp/bundle.c
542
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
544
descriptor_Read(&dl->desc, bundle, fdset);
usr.sbin/ppp/bundle.c
547
if (descriptor_IsSet(&bundle->radius.desc, fdset))
usr.sbin/ppp/bundle.c
548
descriptor_Read(&bundle->radius.desc, bundle, fdset);
usr.sbin/ppp/bundle.c
551
if (FD_ISSET(bundle->dev.fd, fdset)) {
usr.sbin/ppp/bundle.c
557
if (bundle->dev.header) {
usr.sbin/ppp/bundle.c
567
n = read(bundle->dev.fd, data, sz);
usr.sbin/ppp/bundle.c
569
log_Printf(LogWARN, "%s: read: %s\n", bundle->dev.Name, strerror(errno));
usr.sbin/ppp/bundle.c
573
if (bundle->dev.header) {
usr.sbin/ppp/bundle.c
577
bundle->dev.Name, n);
usr.sbin/ppp/bundle.c
592
bundle->ncp.ipcp.my_ip.s_addr) {
usr.sbin/ppp/bundle.c
594
if (Enabled(bundle, OPT_LOOPBACK)) {
usr.sbin/ppp/bundle.c
595
pri = PacketCheck(bundle, af, tun.data, n, &bundle->filter.in,
usr.sbin/ppp/bundle.c
599
write(bundle->dev.fd, data, n);
usr.sbin/ppp/bundle.c
612
if (bundle_Phase(bundle) == PHASE_DEAD) {
usr.sbin/ppp/bundle.c
617
pri = PacketCheck(bundle, af, tun.data, n, &bundle->filter.dial,
usr.sbin/ppp/bundle.c
620
bundle_Open(bundle, NULL, PHYS_AUTO, 0);
usr.sbin/ppp/bundle.c
633
pri = PacketCheck(bundle, af, tun.data, n, &bundle->filter.out,
usr.sbin/ppp/bundle.c
638
ncp_Enqueue(&bundle->ncp, af, pri, (char *)&tun, n + sizeof tun.header);
usr.sbin/ppp/bundle.c
644
bundle_DescriptorWrite(struct fdescriptor *d __unused, struct bundle *bundle,
usr.sbin/ppp/bundle.c
651
if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset))
usr.sbin/ppp/bundle.c
652
if (descriptor_Write(&bundle->ncp.mp.server.desc, bundle, fdset) == 1)
usr.sbin/ppp/bundle.c
655
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
657
switch (descriptor_Write(&dl->desc, bundle, fdset)) {
usr.sbin/ppp/bundle.c
669
bundle_LockTun(struct bundle *bundle)
usr.sbin/ppp/bundle.c
674
snprintf(pidfilename, sizeof pidfilename, "%stun%d.pid", _PATH_VARRUN, bundle->unit);
usr.sbin/ppp/bundle.c
686
bundle_UnlockTun(struct bundle *bundle)
usr.sbin/ppp/bundle.c
690
snprintf(pidfilename, sizeof pidfilename, "%stun%d.pid", _PATH_VARRUN, bundle->unit);
usr.sbin/ppp/bundle.c
694
struct bundle *
usr.sbin/ppp/bundle.c
697
static struct bundle bundle; /* there can be only one */
usr.sbin/ppp/bundle.c
707
if (bundle.iface != NULL) { /* Already allocated ! */
usr.sbin/ppp/bundle.c
724
for (bundle.unit = minunit; bundle.unit != maxunit; bundle.unit++) {
usr.sbin/ppp/bundle.c
725
snprintf(bundle.dev.Name, sizeof bundle.dev.Name, "%s%d",
usr.sbin/ppp/bundle.c
726
prefix, bundle.unit);
usr.sbin/ppp/bundle.c
727
bundle.dev.fd = ID0open(bundle.dev.Name, O_RDWR);
usr.sbin/ppp/bundle.c
728
if (bundle.dev.fd >= 0)
usr.sbin/ppp/bundle.c
732
if (bundle.unit == minunit && !kldtried++) {
usr.sbin/ppp/bundle.c
738
bundle.unit--;
usr.sbin/ppp/bundle.c
750
if (bundle.dev.fd < 0) {
usr.sbin/ppp/bundle.c
759
log_SetTun(bundle.unit);
usr.sbin/ppp/bundle.c
761
ifname = strrchr(bundle.dev.Name, '/');
usr.sbin/ppp/bundle.c
763
ifname = bundle.dev.Name;
usr.sbin/ppp/bundle.c
767
bundle.iface = iface_Create(ifname);
usr.sbin/ppp/bundle.c
768
if (bundle.iface == NULL) {
usr.sbin/ppp/bundle.c
769
close(bundle.dev.fd);
usr.sbin/ppp/bundle.c
776
if (ID0ioctl(bundle.dev.fd, TUNSIFMODE, &iff) < 0)
usr.sbin/ppp/bundle.c
784
if (ID0ioctl(bundle.dev.fd, TUNSLMODE, &iff) < 0)
usr.sbin/ppp/bundle.c
792
if (ID0ioctl(bundle.dev.fd, TUNSIFHEAD, &iff) < 0) {
usr.sbin/ppp/bundle.c
795
bundle.dev.header = 0;
usr.sbin/ppp/bundle.c
797
bundle.dev.header = 1;
usr.sbin/ppp/bundle.c
801
bundle.dev.header = 1;
usr.sbin/ppp/bundle.c
808
bundle.dev.header = 0;
usr.sbin/ppp/bundle.c
814
bundle.bandwidth = 0;
usr.sbin/ppp/bundle.c
815
bundle.routing_seq = 0;
usr.sbin/ppp/bundle.c
816
bundle.phase = PHASE_DEAD;
usr.sbin/ppp/bundle.c
817
bundle.CleaningUp = 0;
usr.sbin/ppp/bundle.c
818
bundle.NatEnabled = 0;
usr.sbin/ppp/bundle.c
820
bundle.fsm.LayerStart = bundle_LayerStart;
usr.sbin/ppp/bundle.c
821
bundle.fsm.LayerUp = bundle_LayerUp;
usr.sbin/ppp/bundle.c
822
bundle.fsm.LayerDown = bundle_LayerDown;
usr.sbin/ppp/bundle.c
823
bundle.fsm.LayerFinish = bundle_LayerFinish;
usr.sbin/ppp/bundle.c
824
bundle.fsm.object = &bundle;
usr.sbin/ppp/bundle.c
826
bundle.cfg.idle.timeout = NCP_IDLE_TIMEOUT;
usr.sbin/ppp/bundle.c
827
bundle.cfg.idle.min_timeout = 0;
usr.sbin/ppp/bundle.c
828
*bundle.cfg.auth.name = '\0';
usr.sbin/ppp/bundle.c
829
*bundle.cfg.auth.key = '\0';
usr.sbin/ppp/bundle.c
830
bundle.cfg.opt = OPT_IDCHECK | OPT_LOOPBACK | OPT_SROUTES | OPT_TCPMSSFIXUP |
usr.sbin/ppp/bundle.c
833
bundle.cfg.opt |= OPT_IPCP;
usr.sbin/ppp/bundle.c
835
bundle.cfg.opt |= OPT_IPV6CP;
usr.sbin/ppp/bundle.c
837
*bundle.cfg.label = '\0';
usr.sbin/ppp/bundle.c
838
bundle.cfg.ifqueue = DEF_IFQUEUE;
usr.sbin/ppp/bundle.c
839
bundle.cfg.choked.timeout = CHOKED_TIMEOUT;
usr.sbin/ppp/bundle.c
840
bundle.phys_type.all = type;
usr.sbin/ppp/bundle.c
841
bundle.phys_type.open = 0;
usr.sbin/ppp/bundle.c
842
bundle.upat = 0;
usr.sbin/ppp/bundle.c
844
bundle.links = datalink_Create("deflink", &bundle, type);
usr.sbin/ppp/bundle.c
845
if (bundle.links == NULL) {
usr.sbin/ppp/bundle.c
847
iface_Destroy(bundle.iface);
usr.sbin/ppp/bundle.c
848
bundle.iface = NULL;
usr.sbin/ppp/bundle.c
849
close(bundle.dev.fd);
usr.sbin/ppp/bundle.c
853
bundle.desc.type = BUNDLE_DESCRIPTOR;
usr.sbin/ppp/bundle.c
854
bundle.desc.UpdateSet = bundle_UpdateSet;
usr.sbin/ppp/bundle.c
855
bundle.desc.IsSet = bundle_IsSet;
usr.sbin/ppp/bundle.c
856
bundle.desc.Read = bundle_DescriptorRead;
usr.sbin/ppp/bundle.c
857
bundle.desc.Write = bundle_DescriptorWrite;
usr.sbin/ppp/bundle.c
859
ncp_Init(&bundle.ncp, &bundle);
usr.sbin/ppp/bundle.c
861
memset(&bundle.filter, '\0', sizeof bundle.filter);
usr.sbin/ppp/bundle.c
862
bundle.filter.in.fragok = bundle.filter.in.logok = 1;
usr.sbin/ppp/bundle.c
863
bundle.filter.in.name = "IN";
usr.sbin/ppp/bundle.c
864
bundle.filter.out.fragok = bundle.filter.out.logok = 1;
usr.sbin/ppp/bundle.c
865
bundle.filter.out.name = "OUT";
usr.sbin/ppp/bundle.c
866
bundle.filter.dial.name = "DIAL";
usr.sbin/ppp/bundle.c
867
bundle.filter.dial.logok = 1;
usr.sbin/ppp/bundle.c
868
bundle.filter.alive.name = "ALIVE";
usr.sbin/ppp/bundle.c
869
bundle.filter.alive.logok = 1;
usr.sbin/ppp/bundle.c
873
bundle.filter.in.rule[i].f_action = A_NONE;
usr.sbin/ppp/bundle.c
874
bundle.filter.out.rule[i].f_action = A_NONE;
usr.sbin/ppp/bundle.c
875
bundle.filter.dial.rule[i].f_action = A_NONE;
usr.sbin/ppp/bundle.c
876
bundle.filter.alive.rule[i].f_action = A_NONE;
usr.sbin/ppp/bundle.c
879
memset(&bundle.idle.timer, '\0', sizeof bundle.idle.timer);
usr.sbin/ppp/bundle.c
880
bundle.idle.done = 0;
usr.sbin/ppp/bundle.c
881
bundle.notify.fd = -1;
usr.sbin/ppp/bundle.c
882
memset(&bundle.choked.timer, '\0', sizeof bundle.choked.timer);
usr.sbin/ppp/bundle.c
884
radius_Init(&bundle.radius);
usr.sbin/ppp/bundle.c
888
iface_Clear(bundle.iface, &bundle.ncp, 0, IFACE_CLEAR_ALL);
usr.sbin/ppp/bundle.c
890
bundle_LockTun(&bundle);
usr.sbin/ppp/bundle.c
892
return &bundle;
usr.sbin/ppp/bundle.c
896
bundle_DownInterface(struct bundle *bundle)
usr.sbin/ppp/bundle.c
898
route_IfDelete(bundle, 1);
usr.sbin/ppp/bundle.c
899
iface_ClearFlags(bundle->iface->name, IFF_UP);
usr.sbin/ppp/bundle.c
903
bundle_Destroy(struct bundle *bundle)
usr.sbin/ppp/bundle.c
912
timer_Stop(&bundle->idle.timer);
usr.sbin/ppp/bundle.c
913
timer_Stop(&bundle->choked.timer);
usr.sbin/ppp/bundle.c
914
mp_Down(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
915
iface_Clear(bundle->iface, &bundle->ncp, 0, IFACE_CLEAR_ALL);
usr.sbin/ppp/bundle.c
916
bundle_DownInterface(bundle);
usr.sbin/ppp/bundle.c
920
radius_Destroy(&bundle->radius);
usr.sbin/ppp/bundle.c
924
dl = bundle->links;
usr.sbin/ppp/bundle.c
928
ncp_Destroy(&bundle->ncp);
usr.sbin/ppp/bundle.c
930
close(bundle->dev.fd);
usr.sbin/ppp/bundle.c
931
bundle_UnlockTun(bundle);
usr.sbin/ppp/bundle.c
934
bundle_Notify(bundle, EX_ERRDEAD);
usr.sbin/ppp/bundle.c
936
iface_Destroy(bundle->iface);
usr.sbin/ppp/bundle.c
937
bundle->iface = NULL;
usr.sbin/ppp/bundle.c
941
bundle_LinkClosed(struct bundle *bundle, struct datalink *dl)
usr.sbin/ppp/bundle.c
958
for (odl = bundle->links; odl; odl = odl->next)
usr.sbin/ppp/bundle.c
964
bundle_DownInterface(bundle);
usr.sbin/ppp/bundle.c
965
ncp2initial(&bundle->ncp);
usr.sbin/ppp/bundle.c
966
mp_Down(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
967
bundle_NewPhase(bundle, PHASE_DEAD);
usr.sbin/ppp/bundle.c
969
if (bundle->radius.sessiontime)
usr.sbin/ppp/bundle.c
970
bundle_StopSessionTimer(bundle);
usr.sbin/ppp/bundle.c
972
bundle_StopIdleTimer(bundle);
usr.sbin/ppp/bundle.c
977
bundle_Open(struct bundle *bundle, const char *name, int mask, int force)
usr.sbin/ppp/bundle.c
984
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.h
153
((d)->type == BUNDLE_DESCRIPTOR ? (struct bundle *)(d) : NULL)
usr.sbin/ppp/bundle.h
155
extern struct bundle *bundle_Create(const char *, int, int);
usr.sbin/ppp/bundle.h
156
extern void bundle_Destroy(struct bundle *);
usr.sbin/ppp/bundle.h
157
extern const char *bundle_PhaseName(struct bundle *);
usr.sbin/ppp/bundle.h
159
extern void bundle_NewPhase(struct bundle *, u_int);
usr.sbin/ppp/bundle.h
160
extern void bundle_LinksRemoved(struct bundle *);
usr.sbin/ppp/bundle.h
161
extern void bundle_Close(struct bundle *, const char *, int);
usr.sbin/ppp/bundle.h
162
extern void bundle_Down(struct bundle *, int);
usr.sbin/ppp/bundle.h
163
extern void bundle_Open(struct bundle *, const char *, int, int);
usr.sbin/ppp/bundle.h
164
extern void bundle_LinkClosed(struct bundle *, struct datalink *);
usr.sbin/ppp/bundle.h
168
extern void bundle_StartIdleTimer(struct bundle *, unsigned secs);
usr.sbin/ppp/bundle.h
169
extern void bundle_SetIdleTimer(struct bundle *, unsigned, unsigned);
usr.sbin/ppp/bundle.h
170
extern void bundle_StopIdleTimer(struct bundle *);
usr.sbin/ppp/bundle.h
171
extern int bundle_IsDead(struct bundle *);
usr.sbin/ppp/bundle.h
172
extern struct datalink *bundle2datalink(struct bundle *, const char *);
usr.sbin/ppp/bundle.h
175
extern void bundle_StartSessionTimer(struct bundle *, unsigned secs);
usr.sbin/ppp/bundle.h
176
extern void bundle_StopSessionTimer(struct bundle *);
usr.sbin/ppp/bundle.h
179
extern void bundle_RegisterDescriptor(struct bundle *, struct fdescriptor *);
usr.sbin/ppp/bundle.h
180
extern void bundle_UnRegisterDescriptor(struct bundle *, struct fdescriptor *);
usr.sbin/ppp/bundle.h
182
extern void bundle_SetTtyCommandMode(struct bundle *, struct datalink *);
usr.sbin/ppp/bundle.h
184
extern int bundle_DatalinkClone(struct bundle *, struct datalink *,
usr.sbin/ppp/bundle.h
186
extern void bundle_DatalinkRemove(struct bundle *, struct datalink *);
usr.sbin/ppp/bundle.h
187
extern void bundle_CleanDatalinks(struct bundle *);
usr.sbin/ppp/bundle.h
188
extern void bundle_SetLabel(struct bundle *, const char *);
usr.sbin/ppp/bundle.h
189
extern const char *bundle_GetLabel(struct bundle *);
usr.sbin/ppp/bundle.h
192
extern void bundle_ReceiveDatalink(struct bundle *, int);
usr.sbin/ppp/bundle.h
193
extern int bundle_SetMode(struct bundle *, struct datalink *, int);
usr.sbin/ppp/bundle.h
194
extern int bundle_RenameDatalink(struct bundle *, struct datalink *,
usr.sbin/ppp/bundle.h
196
extern void bundle_setsid(struct bundle *, int);
usr.sbin/ppp/bundle.h
197
extern void bundle_LockTun(struct bundle *);
usr.sbin/ppp/bundle.h
198
extern unsigned bundle_HighestState(struct bundle *);
usr.sbin/ppp/bundle.h
199
extern int bundle_Exception(struct bundle *, int);
usr.sbin/ppp/bundle.h
200
extern void bundle_AdjustFilters(struct bundle *, struct ncpaddr *,
usr.sbin/ppp/bundle.h
202
extern void bundle_AdjustDNS(struct bundle *);
usr.sbin/ppp/bundle.h
203
extern void bundle_CalculateBandwidth(struct bundle *);
usr.sbin/ppp/bundle.h
204
extern void bundle_AutoAdjust(struct bundle *, int, int);
usr.sbin/ppp/bundle.h
205
extern int bundle_WantAutoloadTimer(struct bundle *);
usr.sbin/ppp/bundle.h
206
extern void bundle_ChangedPID(struct bundle *);
usr.sbin/ppp/bundle.h
207
extern void bundle_Notify(struct bundle *, char);
usr.sbin/ppp/bundle.h
208
extern int bundle_Uptime(struct bundle *);
usr.sbin/ppp/cbcp.c
208
link_PushPacket(&cbcp->p->link, bp, cbcp->p->dl->bundle,
usr.sbin/ppp/cbcp.c
618
cbcp_Input(struct bundle *bundle __unused, struct link *l, struct mbuf *bp)
usr.sbin/ppp/cbcp.h
64
extern struct mbuf *cbcp_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/ccp.c
244
ccp_Init(struct ccp *ccp, struct bundle *bundle, struct link *l,
usr.sbin/ppp/ccp.c
250
bundle, l, parent, &ccp_Callbacks, ccp_TimerNames);
usr.sbin/ppp/ccp.c
374
(*algorithm[f]->o.OptInit)(fp->bundle, &(*o)->val, &ccp->cfg);
usr.sbin/ppp/ccp.c
523
(fp->bundle, &ccp->in.opt);
usr.sbin/ppp/ccp.c
542
(fp->bundle, &(*o)->val);
usr.sbin/ppp/ccp.c
604
switch ((*algorithm[f]->i.Set)(fp->bundle, &ccp->in.opt, &ccp->cfg)) {
usr.sbin/ppp/ccp.c
630
if ((*algorithm[f]->o.Set)(fp->bundle, &o->val, &ccp->cfg) ==
usr.sbin/ppp/ccp.c
670
ccp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/ccp.c
674
if (bundle_Phase(bundle) == PHASE_NETWORK)
usr.sbin/ppp/ccp.c
677
if (bundle_Phase(bundle) < PHASE_NETWORK)
usr.sbin/ppp/ccp.c
679
l->ccp.fsm.link->name, bundle_PhaseName(bundle));
usr.sbin/ppp/ccp.c
714
ccp_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/ccp.c
744
ccp_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/ccp.c
786
return !link2physical(ccp->fsm.link) || !ccp->fsm.bundle->ncp.mp.active ?
usr.sbin/ppp/ccp.h
131
int (*Set)(struct bundle *, struct fsm_opt *, const struct ccp_config *);
usr.sbin/ppp/ccp.h
132
void *(*Init)(struct bundle *, struct fsm_opt *);
usr.sbin/ppp/ccp.h
140
void (*OptInit)(struct bundle *, struct fsm_opt *,
usr.sbin/ppp/ccp.h
142
int (*Set)(struct bundle *, struct fsm_opt *, const struct ccp_config *);
usr.sbin/ppp/ccp.h
143
void *(*Init)(struct bundle *, struct fsm_opt *);
usr.sbin/ppp/ccp.h
151
extern void ccp_Init(struct ccp *, struct bundle *, struct link *,
usr.sbin/ppp/ccp.h
158
extern struct mbuf *ccp_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/chap.c
120
link_PushPacket(&physical->link, bp, physical->dl->bundle,
usr.sbin/ppp/chap.c
320
chap->auth.physical->dl->bundle, 0, pid);
usr.sbin/ppp/chap.c
421
chap_Read(struct fdescriptor *d, struct bundle *bundle __unused,
usr.sbin/ppp/chap.c
478
chap_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused,
usr.sbin/ppp/chap.c
493
len = strlen(authp->physical->dl->bundle->cfg.auth.name);
usr.sbin/ppp/chap.c
500
if (*authp->physical->dl->bundle->radius.cfg.file) {
usr.sbin/ppp/chap.c
519
memcpy(cp, authp->physical->dl->bundle->cfg.auth.name, len);
usr.sbin/ppp/chap.c
532
len = strlen(authp->physical->dl->bundle->cfg.auth.name);
usr.sbin/ppp/chap.c
551
struct bundle *bundle = authp->physical->dl->bundle;
usr.sbin/ppp/chap.c
558
if (*bundle->radius.cfg.file && bundle->radius.msrepstr)
usr.sbin/ppp/chap.c
559
msg = bundle->radius.msrepstr;
usr.sbin/ppp/chap.c
567
if (*bundle->radius.cfg.file && bundle->radius.repstr)
usr.sbin/ppp/chap.c
568
msg = bundle->radius.repstr;
usr.sbin/ppp/chap.c
577
if (Enabled(bundle, OPT_UTMP))
usr.sbin/ppp/chap.c
597
struct bundle *bundle = authp->physical->link.lcp.fsm.bundle;
usr.sbin/ppp/chap.c
598
if (*bundle->radius.cfg.file && bundle->radius.errstr)
usr.sbin/ppp/chap.c
599
msg = bundle->radius.errstr;
usr.sbin/ppp/chap.c
688
chap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/chap.c
706
if (bundle_Phase(bundle) != PHASE_NETWORK &&
usr.sbin/ppp/chap.c
707
bundle_Phase(bundle) != PHASE_AUTHENTICATE) {
usr.sbin/ppp/chap.c
726
Enabled(bundle, OPT_IDCHECK)) {
usr.sbin/ppp/chap.c
832
if (*bundle->cfg.auth.key == '!' && bundle->cfg.auth.key[1] != '!')
usr.sbin/ppp/chap.c
833
chap_StartChild(chap, bundle->cfg.auth.key + 1,
usr.sbin/ppp/chap.c
834
bundle->cfg.auth.name);
usr.sbin/ppp/chap.c
836
chap_Respond(chap, bundle->cfg.auth.name, bundle->cfg.auth.key +
usr.sbin/ppp/chap.c
837
(*bundle->cfg.auth.key == '!' ? 1 : 0)
usr.sbin/ppp/chap.c
859
if (*bundle->radius.cfg.file) {
usr.sbin/ppp/chap.c
860
if (!radius_Authenticate(&bundle->radius, &chap->auth,
usr.sbin/ppp/chap.h
75
extern struct mbuf *chap_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/chat.c
374
chat_Read(struct fdescriptor *d, struct bundle *bundle __unused,
usr.sbin/ppp/chat.c
489
chat_Write(struct fdescriptor *d, struct bundle *bundle __unused,
usr.sbin/ppp/chat.c
658
strncpy(result, c->physical->dl->bundle->cfg.auth.key, reslen);
usr.sbin/ppp/chat.c
672
strncpy(result, c->physical->dl->bundle->cfg.auth.name, reslen);
usr.sbin/ppp/chat.c
732
physical->dl->bundle, 0, getpid());
usr.sbin/ppp/command.c
1055
FindExec(struct bundle *bundle, struct cmdtab const *cmds, int argc, int argn,
usr.sbin/ppp/command.c
1071
cx = bundle2datalink(bundle, NULL);
usr.sbin/ppp/command.c
1087
arg.bundle = bundle;
usr.sbin/ppp/command.c
1159
command_Run(struct bundle *bundle, int argc, char const *const *argv,
usr.sbin/ppp/command.c
1190
FindExec(bundle, Commands, argc, 0, argv, prompt, cx);
usr.sbin/ppp/command.c
1195
command_Decode(struct bundle *bundle, char *buff, int nb, struct prompt *prompt,
usr.sbin/ppp/command.c
1204
command_Run(bundle, argc, (char const *const *)argv, prompt, label, NULL);
usr.sbin/ppp/command.c
1214
FindExec(arg->bundle, ShowCommands, arg->argc, arg->argn, arg->argv,
usr.sbin/ppp/command.c
1258
bundle_Open(arg->bundle, arg->cx ? arg->cx->name : NULL, PHYS_ALL, 1);
usr.sbin/ppp/command.c
1262
arg->cx : bundle2datalink(arg->bundle, NULL);
usr.sbin/ppp/command.c
1267
bundle_Open(arg->bundle, cx->name, PHYS_ALL, 1);
usr.sbin/ppp/command.c
1291
if (arg->bundle->ncp.ipcp.fsm.state == ST_OPENED)
usr.sbin/ppp/command.c
1292
fsm_Reopen(&arg->bundle->ncp.ipcp.fsm);
usr.sbin/ppp/command.c
1294
bundle_Open(arg->bundle, NULL, PHYS_ALL, 1);
usr.sbin/ppp/command.c
1307
bundle_Close(arg->bundle, arg->cx ? arg->cx->name : NULL, CLOSE_STAYDOWN);
usr.sbin/ppp/command.c
1310
bundle_Close(arg->bundle, arg->cx ? arg->cx->name : NULL, CLOSE_LCP);
usr.sbin/ppp/command.c
1338
bundle_Down(arg->bundle, CLOSE_STAYDOWN);
usr.sbin/ppp/command.c
1344
bundle_Down(arg->bundle, CLOSE_LCP);
usr.sbin/ppp/command.c
1347
&arg->bundle->ncp.mp.link.ccp.fsm;
usr.sbin/ppp/command.c
1433
if (server_Clear(arg->bundle))
usr.sbin/ppp/command.c
1437
switch (server_Reopen(arg->bundle)) {
usr.sbin/ppp/command.c
1451
if (server_Close(arg->bundle))
usr.sbin/ppp/command.c
1475
(int)(ptr - port), port, arg->bundle->unit, ptr + 2);
usr.sbin/ppp/command.c
1478
res = server_LocalOpen(arg->bundle, port, imask);
usr.sbin/ppp/command.c
1502
iport += arg->bundle->unit;
usr.sbin/ppp/command.c
1503
res = server_TcpOpen(arg->bundle, iport);
usr.sbin/ppp/command.c
1534
struct ncp *ncp = &arg->bundle->ncp;
usr.sbin/ppp/command.c
1569
bundle_AdjustFilters(arg->bundle, &ncpaddr, NULL);
usr.sbin/ppp/command.c
1571
if (hisaddr && !ipcp_UseHisaddr(arg->bundle, hisaddr,
usr.sbin/ppp/command.c
1572
arg->bundle->phys_type.all & PHYS_AUTO))
usr.sbin/ppp/command.c
1650
strncpy(arg->bundle->cfg.auth.key, argp,
usr.sbin/ppp/command.c
1651
sizeof arg->bundle->cfg.auth.key - 1);
usr.sbin/ppp/command.c
1652
arg->bundle->cfg.auth.key[sizeof arg->bundle->cfg.auth.key - 1] = '\0';
usr.sbin/ppp/command.c
1656
switch (bundle_Phase(arg->bundle)) {
usr.sbin/ppp/command.c
1659
bundle_PhaseName(arg->bundle));
usr.sbin/ppp/command.c
1663
strncpy(arg->bundle->cfg.auth.name, argp,
usr.sbin/ppp/command.c
1664
sizeof arg->bundle->cfg.auth.name - 1);
usr.sbin/ppp/command.c
1665
arg->bundle->cfg.auth.name[sizeof arg->bundle->cfg.auth.name-1] = '\0';
usr.sbin/ppp/command.c
1704
arg->bundle->ncp.mp.cfg.autoload.min = v1;
usr.sbin/ppp/command.c
1705
arg->bundle->ncp.mp.cfg.autoload.max = v2;
usr.sbin/ppp/command.c
1706
arg->bundle->ncp.mp.cfg.autoload.period = v3;
usr.sbin/ppp/command.c
1707
mp_RestartAutoloadTimer(&arg->bundle->ncp.mp);
usr.sbin/ppp/command.c
1817
bundle_SetMode(arg->bundle, cx, mode);
usr.sbin/ppp/command.c
1821
switch (bundle_Phase(arg->bundle)) {
usr.sbin/ppp/command.c
1826
if (bundle_HighestState(arg->bundle) >= DATALINK_LCP) {
usr.sbin/ppp/command.c
1849
arg->bundle->ncp.mp.cfg.mrru = long_val;
usr.sbin/ppp/command.c
1990
arg->bundle->cfg.ifqueue = long_val < 0 ? 0 : long_val;
usr.sbin/ppp/command.c
2009
min = arg->bundle->cfg.idle.min_timeout;
usr.sbin/ppp/command.c
2012
bundle_SetIdleTimer(arg->bundle, timeout, min);
usr.sbin/ppp/command.c
2053
&arg->bundle->ncp.ipcp.cfg.fsm.timeout,
usr.sbin/ppp/command.c
2054
&arg->bundle->ncp.ipcp.cfg.fsm.maxreq,
usr.sbin/ppp/command.c
2055
&arg->bundle->ncp.ipcp.cfg.fsm.maxtrm, DEF_FSMTRIES);
usr.sbin/ppp/command.c
2061
&arg->bundle->ncp.ipv6cp.cfg.fsm.timeout,
usr.sbin/ppp/command.c
2062
&arg->bundle->ncp.ipv6cp.cfg.fsm.maxreq,
usr.sbin/ppp/command.c
2063
&arg->bundle->ncp.ipv6cp.cfg.fsm.maxtrm, DEF_FSMTRIES);
usr.sbin/ppp/command.c
2070
ipaddr = arg->bundle->ncp.ipcp.cfg.ns.dns;
usr.sbin/ppp/command.c
2073
ipaddr = arg->bundle->ncp.ipcp.cfg.ns.nbns;
usr.sbin/ppp/command.c
2078
ncpaddr_aton(ncpaddr, &arg->bundle->ncp, arg->argv[arg->argn]);
usr.sbin/ppp/command.c
2082
ncpaddr_aton(ncpaddr + 1, &arg->bundle->ncp, arg->argv[arg->argn + 1]);
usr.sbin/ppp/command.c
2148
arg->bundle->cfg.choked.timeout = atoi(argp);
usr.sbin/ppp/command.c
2149
if (arg->bundle->cfg.choked.timeout <= 0)
usr.sbin/ppp/command.c
2150
arg->bundle->cfg.choked.timeout = CHOKED_TIMEOUT;
usr.sbin/ppp/command.c
2155
arg->bundle->ncp.cfg.sendpipe = long_val;
usr.sbin/ppp/command.c
2160
arg->bundle->ncp.cfg.recvpipe = long_val;
usr.sbin/ppp/command.c
2166
*arg->bundle->radius.cfg.file = '\0';
usr.sbin/ppp/command.c
2172
strncpy(arg->bundle->radius.cfg.file, argp,
usr.sbin/ppp/command.c
2173
sizeof arg->bundle->radius.cfg.file - 1);
usr.sbin/ppp/command.c
2174
arg->bundle->radius.cfg.file
usr.sbin/ppp/command.c
2175
[sizeof arg->bundle->radius.cfg.file - 1] = '\0';
usr.sbin/ppp/command.c
2219
ncp_SetUrgentTOS(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2220
ncp_ClearUrgentTcpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2221
ncp_ClearUrgentUdpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2223
ncp_SetUrgentTOS(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2225
ncp_ClearUrgentUdpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2228
ncp_AddUrgentUdpPort(&arg->bundle->ncp, atoi(arg->argv[f] + 1));
usr.sbin/ppp/command.c
2230
ncp_RemoveUrgentUdpPort(&arg->bundle->ncp, atoi(arg->argv[f] + 1));
usr.sbin/ppp/command.c
2233
ncp_ClearUrgentUdpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2234
ncp_AddUrgentUdpPort(&arg->bundle->ncp, atoi(arg->argv[f]));
usr.sbin/ppp/command.c
2238
ncp_ClearUrgentTcpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2239
ncp_ClearUrgentUdpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2240
ncp_ClearUrgentTOS(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2242
ncp_SetUrgentTOS(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2245
ncp_ClearUrgentTcpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2249
ncp_AddUrgentTcpPort(&arg->bundle->ncp, atoi(arg->argv[f] + 1));
usr.sbin/ppp/command.c
2251
ncp_RemoveUrgentTcpPort(&arg->bundle->ncp, atoi(arg->argv[f] + 1));
usr.sbin/ppp/command.c
2254
ncp_ClearUrgentTcpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2255
ncp_AddUrgentTcpPort(&arg->bundle->ncp, atoi(arg->argv[f]));
usr.sbin/ppp/command.c
2392
FindExec(arg->bundle, SetCommands, arg->argc, arg->argn, arg->argv,
usr.sbin/ppp/command.c
2423
if (!ncprange_aton(&dest, &arg->bundle->ncp, arg->argv[arg->argn]))
usr.sbin/ppp/command.c
2442
host = arg->bundle->ncp.ipcp.my_ip;
usr.sbin/ppp/command.c
2445
host = arg->bundle->ncp.ipcp.peer_ip;
usr.sbin/ppp/command.c
2448
host = arg->bundle->ncp.ipcp.ns.dns[0];
usr.sbin/ppp/command.c
2451
host = arg->bundle->ncp.ipcp.ns.dns[1];
usr.sbin/ppp/command.c
2465
ncpaddr_setip4(&gw, arg->bundle->ncp.ipcp.peer_ip);
usr.sbin/ppp/command.c
2469
if (!ncpaddr_getip6(&arg->bundle->ncp.ipv6cp.hisaddr, &host6))
usr.sbin/ppp/command.c
2475
if (!ncpaddr_aton(&gw, &arg->bundle->ncp, arg->argv[arg->argn + gw_arg])) {
usr.sbin/ppp/command.c
2485
if (rt_Set(arg->bundle, RTM_ADD, &dest, &gw, arg->cmd->args ? 1 : 0,
usr.sbin/ppp/command.c
2488
route_Add(&arg->bundle->ncp.route, addrs, &dest, &gw);
usr.sbin/ppp/command.c
2501
route_IfDelete(arg->bundle, 0);
usr.sbin/ppp/command.c
2502
route_DeleteAll(&arg->bundle->ncp.route);
usr.sbin/ppp/command.c
2506
ncprange_setip4host(&dest, arg->bundle->ncp.ipcp.my_ip);
usr.sbin/ppp/command.c
2510
ncprange_sethost(&dest, &arg->bundle->ncp.ipv6cp.myaddr);
usr.sbin/ppp/command.c
2514
ncprange_setip4host(&dest, arg->bundle->ncp.ipcp.peer_ip);
usr.sbin/ppp/command.c
2518
ncprange_sethost(&dest, &arg->bundle->ncp.ipv6cp.hisaddr);
usr.sbin/ppp/command.c
2522
ncprange_setip4host(&dest, arg->bundle->ncp.ipcp.ns.dns[0]);
usr.sbin/ppp/command.c
2525
ncprange_setip4host(&dest, arg->bundle->ncp.ipcp.ns.dns[1]);
usr.sbin/ppp/command.c
2528
ncprange_aton(&dest, &arg->bundle->ncp, arg->argv[arg->argn]);
usr.sbin/ppp/command.c
2531
rt_Set(arg->bundle, RTM_DELETE, &dest, NULL, arg->cmd->args ? 1 : 0, 0);
usr.sbin/ppp/command.c
2532
route_Delete(&arg->bundle->ncp.route, addrs, &dest);
usr.sbin/ppp/command.c
2546
if (!arg->bundle->NatEnabled) {
usr.sbin/ppp/command.c
2547
if (arg->bundle->ncp.ipcp.fsm.state == ST_OPENED)
usr.sbin/ppp/command.c
2548
PacketAliasSetAddress(arg->bundle->ncp.ipcp.my_ip);
usr.sbin/ppp/command.c
2549
arg->bundle->NatEnabled = 1;
usr.sbin/ppp/command.c
2553
arg->bundle->NatEnabled = 0;
usr.sbin/ppp/command.c
2554
arg->bundle->cfg.opt &= ~OPT_IFACEALIAS;
usr.sbin/ppp/command.c
2571
if (arg->bundle->NatEnabled) {
usr.sbin/ppp/command.c
2577
if (arg->bundle->NatEnabled) {
usr.sbin/ppp/command.c
2600
cx = arg->bundle->links;
usr.sbin/ppp/command.c
2604
FindExec(arg->bundle, Commands, arg->argc, arg->argn+1, arg->argv,
usr.sbin/ppp/command.c
2606
for (cx = arg->bundle->links; cx; cx = cx->next)
usr.sbin/ppp/command.c
2614
if (!bundle2datalink(arg->bundle, name)) {
usr.sbin/ppp/command.c
2622
cx = bundle2datalink(arg->bundle, name);
usr.sbin/ppp/command.c
2624
FindExec(arg->bundle, Commands, arg->argc, arg->argn+1, arg->argv,
usr.sbin/ppp/command.c
2644
else if (!arg->bundle->ncp.mp.cfg.mrru) {
usr.sbin/ppp/command.c
2645
struct datalink *dl = bundle2datalink(arg->bundle, NULL);
usr.sbin/ppp/command.c
2649
return &arg->bundle->ncp.mp.link;
usr.sbin/ppp/command.c
2714
arg->bundle->cfg.opt |= bit;
usr.sbin/ppp/command.c
2716
arg->bundle->cfg.opt &= ~bit;
usr.sbin/ppp/command.c
2724
unsigned save = arg->bundle->cfg.opt;
usr.sbin/ppp/command.c
2728
if (Enabled(arg->bundle, OPT_IFACEALIAS) && !arg->bundle->NatEnabled) {
usr.sbin/ppp/command.c
2729
arg->bundle->cfg.opt = save;
usr.sbin/ppp/command.c
2792
arg->bundle->ncp.ipcp.cfg.ns.dns_neg &= keep;
usr.sbin/ppp/command.c
2793
arg->bundle->ncp.ipcp.cfg.ns.dns_neg |= add;
usr.sbin/ppp/command.c
2796
arg->bundle->ncp.mp.cfg.negenddisc &= keep;
usr.sbin/ppp/command.c
2797
arg->bundle->ncp.mp.cfg.negenddisc |= add;
usr.sbin/ppp/command.c
2820
switch (bundle_Phase(arg->bundle)) {
usr.sbin/ppp/command.c
2825
if (bundle_HighestState(arg->bundle) >= DATALINK_LCP) {
usr.sbin/ppp/command.c
2836
arg->bundle->ncp.mp.cfg.shortseq &= keep;
usr.sbin/ppp/command.c
2837
arg->bundle->ncp.mp.cfg.shortseq |= add;
usr.sbin/ppp/command.c
2840
arg->bundle->ncp.ipcp.cfg.vj.neg &= keep;
usr.sbin/ppp/command.c
2841
arg->bundle->ncp.ipcp.cfg.vj.neg |= add;
usr.sbin/ppp/command.c
289
bundle_DatalinkClone(arg->bundle, arg->cx, name);
usr.sbin/ppp/command.c
2956
FindExec(arg->bundle, NegotiateCommands + (keep == NEG_HISMASK ?
usr.sbin/ppp/command.c
2993
cx = bundle2datalink(arg->bundle, NULL);
usr.sbin/ppp/command.c
3000
t = &arg->bundle->ncp.ipcp.throughput;
usr.sbin/ppp/command.c
3003
t = &arg->bundle->ncp.ipv6cp.throughput;
usr.sbin/ppp/command.c
3042
FindExec(arg->bundle, arg->cmd->args, arg->argc, arg->argn, arg->argv,
usr.sbin/ppp/command.c
306
bundle_DatalinkRemove(arg->bundle, arg->cx);
usr.sbin/ppp/command.c
3100
return !iface_Add(arg->bundle->iface, &arg->bundle->ncp, &ifa, &peer, how);
usr.sbin/ppp/command.c
3116
if (arg->bundle->ncp.ipcp.fsm.state == ST_OPENED &&
usr.sbin/ppp/command.c
3118
arg->bundle->ncp.ipcp.my_ip.s_addr == ifa4.s_addr) {
usr.sbin/ppp/command.c
3124
ok = iface_Delete(arg->bundle->iface, &arg->bundle->ncp, &ifa);
usr.sbin/ppp/command.c
3157
how = arg->bundle->ncp.ipcp.fsm.state == ST_OPENED ||
usr.sbin/ppp/command.c
3158
arg->bundle->phys_type.all & PHYS_AUTO ?
usr.sbin/ppp/command.c
316
if (bundle_RenameDatalink(arg->bundle, arg->cx, arg->argv[arg->argn]))
usr.sbin/ppp/command.c
3160
iface_Clear(arg->bundle->iface, &arg->bundle->ncp, family, how);
usr.sbin/ppp/command.c
3181
command_Expand(argv, argc, arg->argv + arg->argn, arg->bundle, 1, getpid());
usr.sbin/ppp/command.c
330
mode = arg->bundle->phys_type.all;
usr.sbin/ppp/command.c
340
bundle_SetLabel(arg->bundle, arg->argv[arg->argc - 1]);
usr.sbin/ppp/command.c
341
system_Select(arg->bundle, arg->argv[n], CONFFILE, arg->prompt, arg->cx);
usr.sbin/ppp/command.c
343
bundle_SetLabel(arg->bundle, arg->argv[arg->argc - 1]);
usr.sbin/ppp/command.c
348
bundle_SetLabel(arg->bundle, "default");
usr.sbin/ppp/command.c
349
system_Select(arg->bundle, "default", CONFFILE, arg->prompt, arg->cx);
usr.sbin/ppp/command.c
350
bundle_SetLabel(arg->bundle, "default");
usr.sbin/ppp/command.c
369
command_Expand(argv, argc, arg->argv + arg->argn, arg->bundle, 1, getpid());
usr.sbin/ppp/command.c
393
(arg->bundle->phys_type.all & ~(PHYS_INTERACTIVE|PHYS_AUTO)))) {
usr.sbin/ppp/command.c
402
bundle_Open(arg->bundle, arg->cx ? arg->cx->name : NULL, PHYS_ALL, 1);
usr.sbin/ppp/command.c
499
struct bundle *bundle, int inc0, pid_t pid)
usr.sbin/ppp/command.c
512
secs = bundle_Uptime(bundle);
usr.sbin/ppp/command.c
515
oin = bundle->ncp.ipcp.throughput.OctetsIn;
usr.sbin/ppp/command.c
516
oout = bundle->ncp.ipcp.throughput.OctetsOut;
usr.sbin/ppp/command.c
517
pin = bundle->ncp.ipcp.throughput.PacketsIn;
usr.sbin/ppp/command.c
518
pout = bundle->ncp.ipcp.throughput.PacketsOut;
usr.sbin/ppp/command.c
520
oin += bundle->ncp.ipv6cp.throughput.OctetsIn;
usr.sbin/ppp/command.c
521
oout += bundle->ncp.ipv6cp.throughput.OctetsOut;
usr.sbin/ppp/command.c
522
pin += bundle->ncp.ipv6cp.throughput.PacketsIn;
usr.sbin/ppp/command.c
523
pout += bundle->ncp.ipv6cp.throughput.PacketsOut;
usr.sbin/ppp/command.c
528
nargv[arg] = subst(nargv[arg], "AUTHNAME", bundle->cfg.auth.name);
usr.sbin/ppp/command.c
530
nargv[arg] = substip(nargv[arg], "DNS0", bundle->ncp.ipcp.ns.dns[0]);
usr.sbin/ppp/command.c
531
nargv[arg] = substip(nargv[arg], "DNS1", bundle->ncp.ipcp.ns.dns[1]);
usr.sbin/ppp/command.c
533
mp_Enddisc(bundle->ncp.mp.cfg.enddisc.class,
usr.sbin/ppp/command.c
534
bundle->ncp.mp.cfg.enddisc.address,
usr.sbin/ppp/command.c
535
bundle->ncp.mp.cfg.enddisc.len));
usr.sbin/ppp/command.c
536
nargv[arg] = substip(nargv[arg], "HISADDR", bundle->ncp.ipcp.peer_ip);
usr.sbin/ppp/command.c
538
nargv[arg] = substipv6(nargv[arg], "HISADDR6", &bundle->ncp.ipv6cp.hisaddr);
usr.sbin/ppp/command.c
540
nargv[arg] = subst(nargv[arg], "INTERFACE", bundle->iface->name);
usr.sbin/ppp/command.c
542
bundle->ncp.ipcp.throughput.OctetsIn);
usr.sbin/ppp/command.c
544
bundle->ncp.ipcp.throughput.OctetsOut);
usr.sbin/ppp/command.c
546
bundle->ncp.ipcp.throughput.PacketsIn);
usr.sbin/ppp/command.c
548
bundle->ncp.ipcp.throughput.PacketsOut);
usr.sbin/ppp/command.c
551
bundle->ncp.ipv6cp.throughput.OctetsIn);
usr.sbin/ppp/command.c
553
bundle->ncp.ipv6cp.throughput.OctetsOut);
usr.sbin/ppp/command.c
555
bundle->ncp.ipv6cp.throughput.PacketsIn);
usr.sbin/ppp/command.c
557
bundle->ncp.ipv6cp.throughput.PacketsOut);
usr.sbin/ppp/command.c
559
nargv[arg] = subst(nargv[arg], "LABEL", bundle_GetLabel(bundle));
usr.sbin/ppp/command.c
560
nargv[arg] = substip(nargv[arg], "MYADDR", bundle->ncp.ipcp.my_ip);
usr.sbin/ppp/command.c
562
nargv[arg] = substipv6(nargv[arg], "MYADDR6", &bundle->ncp.ipv6cp.myaddr);
usr.sbin/ppp/command.c
569
mp_Enddisc(bundle->ncp.mp.peer.enddisc.class,
usr.sbin/ppp/command.c
570
bundle->ncp.mp.peer.enddisc.address,
usr.sbin/ppp/command.c
571
bundle->ncp.mp.peer.enddisc.len));
usr.sbin/ppp/command.c
578
nargv[arg] = subst(nargv[arg], "USER", bundle->ncp.mp.peer.authname);
usr.sbin/ppp/command.c
658
command_Expand(argv, argc, arg->argv + arg->argn, arg->bundle, 0, pid);
usr.sbin/ppp/command.c
715
ipcp_LoadDNS(&arg->bundle->ncp.ipcp);
usr.sbin/ppp/command.c
717
ipcp_RestoreDNS(&arg->bundle->ncp.ipcp);
usr.sbin/ppp/command.c
719
ipcp_WriteDNS(&arg->bundle->ncp.ipcp);
usr.sbin/ppp/command.c
721
arg->bundle->ncp.ipcp.ns.writable = 0;
usr.sbin/ppp/command.c
723
arg->bundle->ncp.ipcp.ns.writable = 1;
usr.sbin/ppp/command.h
33
struct bundle;
usr.sbin/ppp/command.h
43
struct bundle *bundle; /* Our bundle */
usr.sbin/ppp/command.h
65
extern void command_Expand(char **, int, char const *const *, struct bundle *,
usr.sbin/ppp/command.h
70
extern void command_Run(struct bundle *, int, char const *const *,
usr.sbin/ppp/command.h
72
extern int command_Decode(struct bundle *, char *, int, struct prompt *,
usr.sbin/ppp/datalink.c
116
if (dl->physical->type == PHYS_DEDICATED && !dl->bundle->CleaningUp &&
usr.sbin/ppp/datalink.c
1290
iov2datalink(struct bundle *bundle, struct iovec *iov, int *niov, int maxiov,
usr.sbin/ppp/datalink.c
1309
for (cdl = bundle->links; cdl; cdl = cdl->next)
usr.sbin/ppp/datalink.c
1340
dl->bundle = bundle;
usr.sbin/ppp/datalink.c
1345
dl->parent = &bundle->fsm;
usr.sbin/ppp/datalink.c
141
bundle_LinksRemoved(dl->bundle);
usr.sbin/ppp/datalink.c
148
if (bundle_Phase(dl->bundle) == PHASE_DEAD ||
usr.sbin/ppp/datalink.c
149
bundle_Phase(dl->bundle) == PHASE_TERMINATE)
usr.sbin/ppp/datalink.c
150
bundle_NewPhase(dl->bundle, PHASE_ESTABLISH);
usr.sbin/ppp/datalink.c
151
} else if (dl->bundle->CleaningUp ||
usr.sbin/ppp/datalink.c
159
bundle_LinkClosed(dl->bundle, dl);
usr.sbin/ppp/datalink.c
160
if (!dl->bundle->CleaningUp &&
usr.sbin/ppp/datalink.c
165
if (bundle_Phase(dl->bundle) == PHASE_DEAD ||
usr.sbin/ppp/datalink.c
166
bundle_Phase(dl->bundle) == PHASE_TERMINATE)
usr.sbin/ppp/datalink.c
167
bundle_NewPhase(dl->bundle, PHASE_ESTABLISH);
usr.sbin/ppp/datalink.c
176
bundle_Notify(dl->bundle, EX_RECONNECT);
usr.sbin/ppp/datalink.c
182
bundle_Notify(dl->bundle, EX_REDIAL);
usr.sbin/ppp/datalink.c
261
!dl->bundle->CleaningUp)
usr.sbin/ppp/datalink.c
303
if (dl->bundle->CleaningUp ||
usr.sbin/ppp/datalink.c
311
bundle_LinkClosed(dl->bundle, dl);
usr.sbin/ppp/datalink.c
313
if (!dl->bundle->CleaningUp) {
usr.sbin/ppp/datalink.c
317
bundle_Notify(dl->bundle, EX_REDIAL);
usr.sbin/ppp/datalink.c
447
datalink_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset)
usr.sbin/ppp/datalink.c
460
descriptor_Read(&dl->chat.desc, bundle, fdset);
usr.sbin/ppp/datalink.c
469
descriptor_Read(&dl->chap.desc, bundle, fdset);
usr.sbin/ppp/datalink.c
471
descriptor_Read(&dl->physical->desc, bundle, fdset);
usr.sbin/ppp/datalink.c
477
datalink_Write(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/datalink.c
492
if ((result = descriptor_Write(&dl->chat.desc, bundle, fdset)) == -1) {
usr.sbin/ppp/datalink.c
504
switch (descriptor_Write(&dl->chap.desc, bundle, fdset)) {
usr.sbin/ppp/datalink.c
512
switch (descriptor_Write(&dl->physical->desc, bundle, fdset)) {
usr.sbin/ppp/datalink.c
580
if (bundle_Phase(dl->bundle) != PHASE_NETWORK)
usr.sbin/ppp/datalink.c
581
bundle_NewPhase(dl->bundle, PHASE_AUTHENTICATE);
usr.sbin/ppp/datalink.c
617
switch (mp_Up(&dl->bundle->ncp.mp, dl)) {
usr.sbin/ppp/datalink.c
623
auth_Select(dl->bundle, dl->peer.authname);
usr.sbin/ppp/datalink.c
624
bundle_CalculateBandwidth(dl->bundle);
usr.sbin/ppp/datalink.c
629
bundle_CalculateBandwidth(dl->bundle);
usr.sbin/ppp/datalink.c
635
} else if (bundle_Phase(dl->bundle) == PHASE_NETWORK) {
usr.sbin/ppp/datalink.c
638
bundle_CalculateBandwidth(dl->bundle);
usr.sbin/ppp/datalink.c
642
dl->bundle->ncp.mp.peer = dl->peer;
usr.sbin/ppp/datalink.c
643
ncp_SetLink(&dl->bundle->ncp, &dl->physical->link);
usr.sbin/ppp/datalink.c
644
auth_Select(dl->bundle, dl->peer.authname);
usr.sbin/ppp/datalink.c
652
bundle_NewPhase(dl->bundle, PHASE_NETWORK);
usr.sbin/ppp/datalink.c
791
datalink_Create(const char *name, struct bundle *bundle, int type)
usr.sbin/ppp/datalink.c
821
dl->bundle = bundle;
usr.sbin/ppp/datalink.c
844
dl->parent = &bundle->fsm;
usr.sbin/ppp/datalink.c
893
dl->bundle = odl->bundle;
usr.sbin/ppp/datalink.c
970
if (bundle_Phase(dl->bundle) == PHASE_DEAD ||
usr.sbin/ppp/datalink.c
971
bundle_Phase(dl->bundle) == PHASE_TERMINATE)
usr.sbin/ppp/datalink.c
972
bundle_NewPhase(dl->bundle, PHASE_ESTABLISH);
usr.sbin/ppp/datalink.h
122
struct bundle *bundle; /* for the moment */
usr.sbin/ppp/datalink.h
129
extern struct datalink *datalink_Create(const char *name, struct bundle *, int);
usr.sbin/ppp/datalink.h
131
extern struct datalink *iov2datalink(struct bundle *, struct iovec *, int *,
usr.sbin/ppp/datalink.h
53
struct bundle;
usr.sbin/ppp/deflate.c
444
DeflateInitOptsOutput(struct bundle *bundle __unused, struct fsm_opt *o,
usr.sbin/ppp/deflate.c
453
DeflateSetOptsOutput(struct bundle *bundle __unused, struct fsm_opt *o,
usr.sbin/ppp/deflate.c
468
DeflateSetOptsInput(struct bundle *bundle __unused, struct fsm_opt *o,
usr.sbin/ppp/deflate.c
490
DeflateInitInput(struct bundle *bundle __unused, struct fsm_opt *o)
usr.sbin/ppp/deflate.c
513
DeflateInitOutput(struct bundle *bundle __unused, struct fsm_opt *o)
usr.sbin/ppp/descriptor.h
40
struct bundle;
usr.sbin/ppp/descriptor.h
47
void (*Read)(struct fdescriptor *, struct bundle *, const fd_set *);
usr.sbin/ppp/descriptor.h
48
int (*Write)(struct fdescriptor *, struct bundle *, const fd_set *);
usr.sbin/ppp/ether.c
415
ether_DescriptorRead(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/ether.c
431
physical_DescriptorRead(d, bundle, fdset);
usr.sbin/ppp/ether.c
609
TUN_NAME, p->dl->bundle->unit);
usr.sbin/ppp/exec.c
177
p->dl->bundle, 0, realpid);
usr.sbin/ppp/filter.c
417
filter = &arg->bundle->filter.in;
usr.sbin/ppp/filter.c
419
filter = &arg->bundle->filter.out;
usr.sbin/ppp/filter.c
421
filter = &arg->bundle->filter.dial;
usr.sbin/ppp/filter.c
423
filter = &arg->bundle->filter.alive;
usr.sbin/ppp/filter.c
430
filter_Parse(&arg->bundle->ncp, arg->argc - arg->argn - 1,
usr.sbin/ppp/filter.c
508
filter = &arg->bundle->filter.in;
usr.sbin/ppp/filter.c
510
filter = &arg->bundle->filter.out;
usr.sbin/ppp/filter.c
512
filter = &arg->bundle->filter.dial;
usr.sbin/ppp/filter.c
514
filter = &arg->bundle->filter.alive;
usr.sbin/ppp/filter.c
522
filter[0] = &arg->bundle->filter.in;
usr.sbin/ppp/filter.c
523
filter[1] = &arg->bundle->filter.out;
usr.sbin/ppp/filter.c
524
filter[2] = &arg->bundle->filter.dial;
usr.sbin/ppp/filter.c
525
filter[3] = &arg->bundle->filter.alive;
usr.sbin/ppp/fsm.c
1082
Enabled(fp->bundle, OPT_IDCHECK)) {
usr.sbin/ppp/fsm.c
1092
(!Enabled(fp->bundle, OPT_IDCHECK) && codep->check_reqid)))
usr.sbin/ppp/fsm.c
143
int maxcode, int LogLevel, struct bundle *bundle,
usr.sbin/ppp/fsm.c
160
fp->bundle = bundle;
usr.sbin/ppp/fsm.c
219
link_PushPacket(fp->link, bp, fp->bundle, LINK_QUEUES(fp->link) - 1,
usr.sbin/ppp/fsm.c
922
fsm_Close(&fp->bundle->ncp.ipcp.fsm);
usr.sbin/ppp/fsm.c
930
fsm_Close(&fp->bundle->ncp.ipv6cp.fsm);
usr.sbin/ppp/fsm.h
100
struct bundle;
usr.sbin/ppp/fsm.h
137
struct bundle *bundle;
usr.sbin/ppp/fsm.h
185
struct bundle *, struct link *, const struct fsm_parent *,
usr.sbin/ppp/hdlc.c
141
hdlc_LayerPush(struct bundle *bundle __unused, struct link *l __unused,
usr.sbin/ppp/hdlc.c
301
hdlc_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/hdlc.h
105
extern void hdlc_DecodePacket(struct bundle *, u_short, struct mbuf *,
usr.sbin/ppp/hdlc.h
58
struct bundle;
usr.sbin/ppp/iface.c
643
struct iface *iface = arg->bundle->iface, *current;
usr.sbin/ppp/ip.c
532
PacketCheck(struct bundle *bundle, u_int32_t family,
usr.sbin/ppp/ip.c
625
if (tos == IPTOS_LOWDELAY && bundle->ncp.cfg.urgent.tos)
usr.sbin/ppp/ip.c
628
if (!frag && ncp_IsUrgentUdpPort(&bundle->ncp, ntohs(uh->uh_sport),
usr.sbin/ppp/ip.c
643
if (Enabled(bundle, OPT_FILTERDECAP) &&
usr.sbin/ppp/ip.c
655
result = PacketCheck(bundle, AF_INET, payload + sizeof *uh + 4,
usr.sbin/ppp/ip.c
721
if (Enabled(bundle, OPT_FILTERDECAP)) {
usr.sbin/ppp/ip.c
723
result = PacketCheck(bundle, AF_INET6, payload, nb - (payload - packet),
usr.sbin/ppp/ip.c
741
if (Enabled(bundle, OPT_FILTERDECAP) &&
usr.sbin/ppp/ip.c
744
result = PacketCheck(bundle, AF_INET, payload, nb - (payload - packet),
usr.sbin/ppp/ip.c
789
if (tos == IPTOS_LOWDELAY && bundle->ncp.cfg.urgent.tos)
usr.sbin/ppp/ip.c
792
if (!frag && ncp_IsUrgentTcpPort(&bundle->ncp, ntohs(th->th_sport),
usr.sbin/ppp/ip.c
855
FilterCheck(packet, family, &bundle->filter.alive, &alivesecs))
usr.sbin/ppp/ip.c
880
ip_Input(struct bundle *bundle, struct link *l, struct mbuf *bp, u_int32_t af)
usr.sbin/ppp/ip.c
898
if (PacketCheck(bundle, af, tun.data, nb, &bundle->filter.in,
usr.sbin/ppp/ip.c
903
if (!FilterCheck(tun.data, af, &bundle->filter.alive, &alivesecs)) {
usr.sbin/ppp/ip.c
906
bundle_StartIdleTimer(bundle, secs);
usr.sbin/ppp/ip.c
909
if (bundle->dev.header) {
usr.sbin/ppp/ip.c
916
nw = write(bundle->dev.fd, data, nb);
usr.sbin/ppp/ip.c
929
ipv4_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/ip.c
933
if (bundle->ncp.ipcp.fsm.state != ST_OPENED) {
usr.sbin/ppp/ip.c
941
nb = ip_Input(bundle, l, bp, AF_INET);
usr.sbin/ppp/ip.c
942
ipcp_AddInOctets(&bundle->ncp.ipcp, nb);
usr.sbin/ppp/ip.c
949
ipv6_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/ip.c
953
if (bundle->ncp.ipv6cp.fsm.state != ST_OPENED) {
usr.sbin/ppp/ip.c
961
nb = ip_Input(bundle, l, bp, AF_INET6);
usr.sbin/ppp/ip.c
962
ipv6cp_AddInOctets(&bundle->ncp.ipv6cp, nb);
usr.sbin/ppp/ip.h
35
struct bundle;
usr.sbin/ppp/ip.h
37
extern int ip_PushPacket(struct link *, struct bundle *);
usr.sbin/ppp/ip.h
38
extern int PacketCheck(struct bundle *, u_int32_t, const unsigned char *, int,
usr.sbin/ppp/ip.h
42
extern struct mbuf *ipv4_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/ip.h
44
extern struct mbuf *ipv6_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/ipcp.c
1081
bundle_AdjustFilters(fp->bundle, &ncpaddr, NULL);
usr.sbin/ppp/ipcp.c
1300
bundle_AdjustDNS(fp->bundle);
usr.sbin/ppp/ipcp.c
1303
bundle_AdjustDNS(fp->bundle);
usr.sbin/ppp/ipcp.c
1327
ipcp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/ipcp.c
1331
if (bundle_Phase(bundle) == PHASE_NETWORK)
usr.sbin/ppp/ipcp.c
1332
fsm_Input(&bundle->ncp.ipcp.fsm, bp);
usr.sbin/ppp/ipcp.c
1334
if (bundle_Phase(bundle) < PHASE_NETWORK)
usr.sbin/ppp/ipcp.c
1336
l->name, bundle_PhaseName(bundle));
usr.sbin/ppp/ipcp.c
1343
ipcp_UseHisIPaddr(struct bundle *bundle, struct in_addr hisaddr)
usr.sbin/ppp/ipcp.c
1345
struct ipcp *ipcp = &bundle->ncp.ipcp;
usr.sbin/ppp/ipcp.c
1358
ipcp_UseHisaddr(struct bundle *bundle, const char *hisaddr, int setaddr)
usr.sbin/ppp/ipcp.c
1361
struct ncp *ncp = &bundle->ncp;
usr.sbin/ppp/ipcp.c
1372
ipcp->peer_ip = ChooseHisAddr(bundle, ipcp->my_ip);
usr.sbin/ppp/ipcp.c
1396
bundle_AdjustFilters(bundle, NULL, &ncpaddr);
usr.sbin/ppp/ipcp.c
1430
struct bundle *bundle = ipcp->fsm.bundle;
usr.sbin/ppp/ipcp.c
1455
if (!FilterCheck(MBUF_CTOP(bp), AF_INET, &bundle->filter.alive,
usr.sbin/ppp/ipcp.c
1459
bundle_StartIdleTimer(bundle, secs);
usr.sbin/ppp/ipcp.c
1461
link_PushPacket(l, bp, bundle, 0, PROTO_IP);
usr.sbin/ppp/ipcp.c
263
bundle_AdjustDNS(ipcp->fsm.bundle);
usr.sbin/ppp/ipcp.c
348
struct ipcp *ipcp = &arg->bundle->ncp.ipcp;
usr.sbin/ppp/ipcp.c
419
arg->bundle->ncp.ipcp.cfg.vj.slots = slots;
usr.sbin/ppp/ipcp.c
423
arg->bundle->ncp.ipcp.cfg.vj.slotcomp = 1;
usr.sbin/ppp/ipcp.c
425
arg->bundle->ncp.ipcp.cfg.vj.slotcomp = 0;
usr.sbin/ppp/ipcp.c
434
ipcp_Init(struct ipcp *ipcp, struct bundle *bundle, struct link *l,
usr.sbin/ppp/ipcp.c
444
bundle, l, parent, &ipcp_Callbacks, timer_names);
usr.sbin/ppp/ipcp.c
510
struct iface *iface = ipcp->fsm.bundle->iface;
usr.sbin/ppp/ipcp.c
570
|| (ipcp->fsm.bundle->radius.valid && ipcp->fsm.bundle->radius.vj)
usr.sbin/ppp/ipcp.c
608
int (*proxyfun)(struct bundle *, struct in_addr),
usr.sbin/ppp/ipcp.c
611
struct bundle *bundle = ipcp->fsm.bundle;
usr.sbin/ppp/ipcp.c
624
if (Enabled(bundle, OPT_PROXYALL)) {
usr.sbin/ppp/ipcp.c
638
if (!(ret = (*proxyfun)(bundle, ip)))
usr.sbin/ppp/ipcp.c
645
} else if (Enabled(bundle, OPT_PROXY))
usr.sbin/ppp/ipcp.c
646
ret = (*proxyfun)(bundle, peer);
usr.sbin/ppp/ipcp.c
655
struct bundle *bundle = ipcp->fsm.bundle;
usr.sbin/ppp/ipcp.c
676
if (!iface_Add(bundle->iface, &bundle->ncp, &myrange, &hisncpaddr,
usr.sbin/ppp/ipcp.c
680
if (!Enabled(bundle, OPT_IFACEALIAS))
usr.sbin/ppp/ipcp.c
681
iface_Clear(bundle->iface, &bundle->ncp, AF_INET,
usr.sbin/ppp/ipcp.c
684
if (bundle->ncp.cfg.sendpipe > 0 || bundle->ncp.cfg.recvpipe > 0) {
usr.sbin/ppp/ipcp.c
687
rt_Update(bundle, sadst, sagw, samask);
usr.sbin/ppp/ipcp.c
690
if (Enabled(bundle, OPT_SROUTES))
usr.sbin/ppp/ipcp.c
691
route_Change(bundle, bundle->ncp.route, &myncpaddr, &hisncpaddr);
usr.sbin/ppp/ipcp.c
694
if (bundle->radius.valid)
usr.sbin/ppp/ipcp.c
695
route_Change(bundle, bundle->radius.routes, &myncpaddr, &hisncpaddr);
usr.sbin/ppp/ipcp.c
702
ChooseHisAddr(struct bundle *bundle, struct in_addr gw)
usr.sbin/ppp/ipcp.c
707
for (f = 0; f < bundle->ncp.ipcp.cfg.peer_list.nItems; f++) {
usr.sbin/ppp/ipcp.c
708
try = iplist_next(&bundle->ncp.ipcp.cfg.peer_list);
usr.sbin/ppp/ipcp.c
711
if (ipcp_SetIPaddress(&bundle->ncp.ipcp, gw, try)) {
usr.sbin/ppp/ipcp.c
717
if (f == bundle->ncp.ipcp.cfg.peer_list.nItems) {
usr.sbin/ppp/ipcp.c
815
Enabled(fp->bundle, OPT_THROUGHPUT));
usr.sbin/ppp/ipcp.c
837
struct bundle *bundle = ipcp->fsm.bundle;
usr.sbin/ppp/ipcp.c
839
if (Enabled(bundle, OPT_PROXY) || Enabled(bundle, OPT_PROXYALL))
usr.sbin/ppp/ipcp.c
849
struct bundle *bundle = ipcp->fsm.bundle;
usr.sbin/ppp/ipcp.c
851
if (Enabled(bundle, OPT_PROXY) || Enabled(bundle, OPT_PROXYALL))
usr.sbin/ppp/ipcp.c
868
radius_Account(&fp->bundle->radius, &fp->bundle->radacct,
usr.sbin/ppp/ipcp.c
869
fp->bundle->links, RAD_STOP, &ipcp->peer_ip, &ipcp->ifmask,
usr.sbin/ppp/ipcp.c
872
if (fp->bundle->radius.cfg.file[0] != '\0' && fp->bundle->radius.filterid)
usr.sbin/ppp/ipcp.c
873
system_Select(fp->bundle, fp->bundle->radius.filterid, LINKDOWNFILE,
usr.sbin/ppp/ipcp.c
881
if (system_Select(fp->bundle, addr, LINKDOWNFILE, NULL, NULL) < 0) {
usr.sbin/ppp/ipcp.c
882
if (bundle_GetLabel(fp->bundle)) {
usr.sbin/ppp/ipcp.c
883
if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle),
usr.sbin/ppp/ipcp.c
885
system_Select(fp->bundle, "MYADDR", LINKDOWNFILE, NULL, NULL);
usr.sbin/ppp/ipcp.c
887
system_Select(fp->bundle, "MYADDR", LINKDOWNFILE, NULL, NULL);
usr.sbin/ppp/ipcp.c
903
if (!iface_SetFlags(ipcp->fsm.bundle->iface->name, IFF_UP)) {
usr.sbin/ppp/ipcp.c
905
ipcp->fsm.bundle->iface->name);
usr.sbin/ppp/ipcp.c
910
if (ipcp->fsm.bundle->NatEnabled)
usr.sbin/ppp/ipcp.c
936
radius_Account(&fp->bundle->radius, &fp->bundle->radacct, fp->bundle->links,
usr.sbin/ppp/ipcp.c
939
if (fp->bundle->radius.cfg.file[0] != '\0' && fp->bundle->radius.filterid)
usr.sbin/ppp/ipcp.c
940
system_Select(fp->bundle, fp->bundle->radius.filterid, LINKUPFILE,
usr.sbin/ppp/ipcp.c
948
if (system_Select(fp->bundle, tbuff, LINKUPFILE, NULL, NULL) < 0) {
usr.sbin/ppp/ipcp.c
949
if (bundle_GetLabel(fp->bundle)) {
usr.sbin/ppp/ipcp.c
950
if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle),
usr.sbin/ppp/ipcp.c
952
system_Select(fp->bundle, "MYADDR", LINKUPFILE, NULL, NULL);
usr.sbin/ppp/ipcp.c
954
system_Select(fp->bundle, "MYADDR", LINKUPFILE, NULL, NULL);
usr.sbin/ppp/ipcp.c
966
struct bundle *bundle = ipcp->fsm.bundle;
usr.sbin/ppp/ipcp.c
967
struct iface *iface = bundle->iface;
usr.sbin/ppp/ipcp.c
994
ipcp->peer_ip = ChooseHisAddr(bundle, myaddr);
usr.sbin/ppp/ipcp.h
107
struct bundle;
usr.sbin/ppp/ipcp.h
112
extern void ipcp_Init(struct ipcp *, struct bundle *, struct link *,
usr.sbin/ppp/ipcp.h
119
extern struct mbuf *ipcp_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/ipcp.h
122
extern int ipcp_UseHisIPaddr(struct bundle *, struct in_addr);
usr.sbin/ppp/ipcp.h
123
extern int ipcp_UseHisaddr(struct bundle *, const char *, int);
usr.sbin/ppp/ipv6cp.c
198
struct bundle *bundle = ipv6cp->fsm.bundle;
usr.sbin/ppp/ipv6cp.c
230
if (!iface_Add(bundle->iface, &bundle->ncp, &myrange, &ipv6cp->hisaddr,
usr.sbin/ppp/ipv6cp.c
234
if (!Enabled(bundle, OPT_IFACEALIAS))
usr.sbin/ppp/ipv6cp.c
235
iface_Clear(bundle->iface, &bundle->ncp, AF_INET6,
usr.sbin/ppp/ipv6cp.c
240
rt_Set(bundle, RTM_ADD, &range, &ipv6cp->myaddr, 1, 0);
usr.sbin/ppp/ipv6cp.c
242
if (bundle->ncp.cfg.sendpipe > 0 || bundle->ncp.cfg.recvpipe > 0) {
usr.sbin/ppp/ipv6cp.c
248
rt_Update(bundle, sadst, sagw, samask);
usr.sbin/ppp/ipv6cp.c
251
if (Enabled(bundle, OPT_SROUTES))
usr.sbin/ppp/ipv6cp.c
252
route_Change(bundle, bundle->ncp.route, &ipv6cp->myaddr, &ipv6cp->hisaddr);
usr.sbin/ppp/ipv6cp.c
255
if (bundle->radius.valid)
usr.sbin/ppp/ipv6cp.c
256
route_Change(bundle, bundle->radius.routes, &ipv6cp->myaddr,
usr.sbin/ppp/ipv6cp.c
264
ipv6cp_Init(struct ipv6cp *ipv6cp, struct bundle *bundle, struct link *l,
usr.sbin/ppp/ipv6cp.c
272
bundle, l, parent, &ipv6cp_Callbacks, timer_names);
usr.sbin/ppp/ipv6cp.c
325
struct ipv6cp *ipv6cp = &arg->bundle->ncp.ipv6cp;
usr.sbin/ppp/ipv6cp.c
350
ipv6cp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/ipv6cp.c
354
if (bundle_Phase(bundle) == PHASE_NETWORK)
usr.sbin/ppp/ipv6cp.c
355
fsm_Input(&bundle->ncp.ipv6cp.fsm, bp);
usr.sbin/ppp/ipv6cp.c
357
if (bundle_Phase(bundle) < PHASE_NETWORK)
usr.sbin/ppp/ipv6cp.c
359
" (ignored)\n", l->name, bundle_PhaseName(bundle));
usr.sbin/ppp/ipv6cp.c
397
if (!iface_SetFlags(ipv6cp->fsm.bundle->iface->name, IFF_UP)) {
usr.sbin/ppp/ipv6cp.c
399
" flag on %s\n", ipv6cp->fsm.bundle->iface->name);
usr.sbin/ppp/ipv6cp.c
422
struct bundle *bundle = ipv6cp->fsm.bundle;
usr.sbin/ppp/ipv6cp.c
447
if (!FilterCheck(MBUF_CTOP(bp), AF_INET6, &bundle->filter.alive,
usr.sbin/ppp/ipv6cp.c
451
bundle_StartIdleTimer(bundle, secs);
usr.sbin/ppp/ipv6cp.c
453
link_PushPacket(l, bp, bundle, 0, PROTO_IPV6);
usr.sbin/ppp/ipv6cp.c
479
if (!Enabled(fp->bundle, OPT_IPCP)) {
usr.sbin/ppp/ipv6cp.c
484
if (system_Select(fp->bundle, tbuff, LINKUPFILE, NULL, NULL) < 0) {
usr.sbin/ppp/ipv6cp.c
485
if (bundle_GetLabel(fp->bundle)) {
usr.sbin/ppp/ipv6cp.c
486
if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle),
usr.sbin/ppp/ipv6cp.c
488
system_Select(fp->bundle, "MYADDR6", LINKUPFILE, NULL, NULL);
usr.sbin/ppp/ipv6cp.c
490
system_Select(fp->bundle, "MYADDR6", LINKUPFILE, NULL, NULL);
usr.sbin/ppp/ipv6cp.c
514
if (!Enabled(fp->bundle, OPT_IPCP)) {
usr.sbin/ppp/ipv6cp.c
519
if (system_Select(fp->bundle, addr, LINKDOWNFILE, NULL, NULL) < 0) {
usr.sbin/ppp/ipv6cp.c
520
if (bundle_GetLabel(fp->bundle)) {
usr.sbin/ppp/ipv6cp.c
521
if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle),
usr.sbin/ppp/ipv6cp.c
523
system_Select(fp->bundle, "MYADDR6", LINKDOWNFILE, NULL, NULL);
usr.sbin/ppp/ipv6cp.c
525
system_Select(fp->bundle, "MYADDR6", LINKDOWNFILE, NULL, NULL);
usr.sbin/ppp/ipv6cp.c
542
Enabled(fp->bundle, OPT_THROUGHPUT));
usr.sbin/ppp/ipv6cp.c
711
bundle_AdjustFilters(fp->bundle, &ipv6cp->myaddr, NULL);
usr.sbin/ppp/ipv6cp.h
63
struct bundle;
usr.sbin/ppp/ipv6cp.h
68
extern void ipv6cp_Init(struct ipv6cp *, struct bundle *, struct link *,
usr.sbin/ppp/ipv6cp.h
75
extern struct mbuf *ipv6cp_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/layer.h
44
struct bundle;
usr.sbin/ppp/layer.h
49
struct mbuf *(*push)(struct bundle *, struct link *, struct mbuf *,
usr.sbin/ppp/layer.h
51
struct mbuf *(*pull)(struct bundle *, struct link *, struct mbuf *,
usr.sbin/ppp/lcp.c
1161
mp = &lcp->fsm.bundle->ncp.mp;
usr.sbin/ppp/lcp.c
1188
mp = &lcp->fsm.bundle->ncp.mp;
usr.sbin/ppp/lcp.c
1289
lcp_Input(struct bundle *bundle __unused, struct link *l, struct mbuf *bp)
usr.sbin/ppp/lcp.c
247
lcp_Init(struct lcp *lcp, struct bundle *bundle, struct link *l,
usr.sbin/ppp/lcp.c
254
bundle, l, parent, &lcp_Callbacks, lcp_TimerNames);
usr.sbin/ppp/lcp.c
302
lcp->want_mrru = lcp->fsm.bundle->ncp.mp.cfg.mrru;
usr.sbin/ppp/lcp.c
303
lcp->want_shortseq = IsEnabled(lcp->fsm.bundle->ncp.mp.cfg.shortseq) ? 1 : 0;
usr.sbin/ppp/lcp.c
475
mp = &lcp->fsm.bundle->ncp.mp;
usr.sbin/ppp/lcp.c
509
command_Expand(exp, 1, argv, lcp->fsm.bundle, 1, getpid());
usr.sbin/ppp/lcp.c
682
mp = &lcp->fsm.bundle->ncp.mp;
usr.sbin/ppp/lcp.h
129
struct bundle;
usr.sbin/ppp/lcp.h
134
extern void lcp_Init(struct lcp *, struct bundle *, struct link *,
usr.sbin/ppp/lcp.h
142
extern struct mbuf *lcp_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/link.c
224
link_PushPacket(struct link *l, struct mbuf *bp, struct bundle *b, int pri,
usr.sbin/ppp/link.c
251
link_PullPacket(struct link *l, char *buf, size_t len, struct bundle *b)
usr.sbin/ppp/link.c
326
struct mbuf *(*fn)(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/link.c
348
Despatch(struct bundle *bundle, struct link *l, struct mbuf *bp, u_short proto)
usr.sbin/ppp/link.c
354
bp = (*despatcher[f].fn)(bundle, l, bp);
usr.sbin/ppp/link.c
74
static void Despatch(struct bundle *, struct link *, struct mbuf *, u_short);
usr.sbin/ppp/link.h
37
struct bundle;
usr.sbin/ppp/link.h
71
extern void link_PushPacket(struct link *, struct mbuf *, struct bundle *,
usr.sbin/ppp/link.h
73
extern void link_PullPacket(struct link *, char *, size_t, struct bundle *);
usr.sbin/ppp/lqr.c
150
link_PushPacket(lcp->fsm.link, bp, lcp->fsm.bundle,
usr.sbin/ppp/lqr.c
194
lqr_Input(struct bundle *bundle __unused, struct link *l, struct mbuf *bp)
usr.sbin/ppp/lqr.c
360
lqr_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/lqr.c
432
lqr_LayerPull(struct bundle *b __unused, struct link *l __unused,
usr.sbin/ppp/lqr.h
61
struct bundle;
usr.sbin/ppp/lqr.h
70
extern struct mbuf *lqr_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/main.c
105
static void DoLoop(struct bundle *);
usr.sbin/ppp/main.c
108
static struct bundle *SignalBundle;
usr.sbin/ppp/main.c
307
struct bundle *bundle;
usr.sbin/ppp/main.c
383
if ((bundle = bundle_Create(TUN_PREFIX, sw.mode, sw.unit)) == NULL)
usr.sbin/ppp/main.c
389
prompt->bundle = bundle; /* couldn't do it earlier */
usr.sbin/ppp/main.c
391
prompt_Printf(prompt, "Using interface: %s\n", bundle->iface->name);
usr.sbin/ppp/main.c
393
SignalBundle = bundle;
usr.sbin/ppp/main.c
394
bundle->NatEnabled = sw.nat;
usr.sbin/ppp/main.c
396
bundle->cfg.opt |= OPT_IFACEALIAS;
usr.sbin/ppp/main.c
398
if (system_Select(bundle, "default", CONFFILE, prompt, NULL) < 0)
usr.sbin/ppp/main.c
417
bundle_SetLabel(bundle, lastlabel);
usr.sbin/ppp/main.c
418
system_Select(bundle, argv[arg], CONFFILE, prompt, NULL);
usr.sbin/ppp/main.c
423
bundle_SetLabel(bundle, lastlabel);
usr.sbin/ppp/main.c
426
ncprange_family(&bundle->ncp.ipcp.cfg.peer_range) == AF_UNSPEC) {
usr.sbin/ppp/main.c
496
bundle->notify.fd = bgpipe[1];
usr.sbin/ppp/main.c
499
bundle_ChangedPID(bundle);
usr.sbin/ppp/main.c
500
bundle_LockTun(bundle); /* we have a new pid */
usr.sbin/ppp/main.c
529
DoLoop(bundle);
usr.sbin/ppp/main.c
536
DoLoop(struct bundle *bundle)
usr.sbin/ppp/main.c
559
for (; !bundle_IsDead(bundle); bundle_CleanDatalinks(bundle)) {
usr.sbin/ppp/main.c
566
descriptor_UpdateSet(&bundle->desc, rfds, wfds, efds, &nfds);
usr.sbin/ppp/main.c
571
bundle_CleanDatalinks(bundle);
usr.sbin/ppp/main.c
572
if (bundle_IsDead(bundle))
usr.sbin/ppp/main.c
638
if (!bundle_Exception(bundle, i)) {
usr.sbin/ppp/main.c
650
descriptor_Read(&server.desc, bundle, rfds);
usr.sbin/ppp/main.c
654
if (descriptor_IsSet(&bundle->desc, rfds)) {
usr.sbin/ppp/main.c
655
descriptor_Read(&bundle->desc, bundle, rfds);
usr.sbin/ppp/main.c
659
if (descriptor_IsSet(&bundle->desc, wfds))
usr.sbin/ppp/main.c
660
if (descriptor_Write(&bundle->desc, bundle, wfds) <= 0 && nothing_done) {
usr.sbin/ppp/mp.c
1001
addr = arg->bundle->ncp.ipcp.my_ip;
usr.sbin/ppp/mp.c
1078
mpserver_Read(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/mp.c
1083
bundle_ReceiveDatalink(bundle, s->fd);
usr.sbin/ppp/mp.c
1087
mpserver_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused,
usr.sbin/ppp/mp.c
175
bundle_CalculateBandwidth(fp->bundle); /* Against ccp_MTUOverhead */
usr.sbin/ppp/mp.c
200
mp->bundle->bandwidth;
usr.sbin/ppp/mp.c
203
bundle_AutoAdjust(mp->bundle, percent, AUTO_UP);
usr.sbin/ppp/mp.c
206
bundle_AutoAdjust(mp->bundle, percent, AUTO_DOWN);
usr.sbin/ppp/mp.c
225
if (bundle_WantAutoloadTimer(mp->bundle))
usr.sbin/ppp/mp.c
241
mp_Init(struct mp *mp, struct bundle *bundle)
usr.sbin/ppp/mp.c
254
mp->bundle = bundle;
usr.sbin/ppp/mp.c
285
lcp_Init(&mp->link.lcp, mp->bundle, &mp->link, NULL);
usr.sbin/ppp/mp.c
286
ccp_Init(&mp->link.ccp, mp->bundle, &mp->link, &mp->fsmp);
usr.sbin/ppp/mp.c
365
ncp_SetLink(&mp->bundle->ncp, &mp->link);
usr.sbin/ppp/mp.c
447
for (dl = mp->bundle->links; dl; dl = dl->next)
usr.sbin/ppp/mp.c
580
link_PullPacket(&mp->link, MBUF_CTOP(q), q->m_len, mp->bundle);
usr.sbin/ppp/mp.c
613
mp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/mp.c
617
if (!bundle->ncp.mp.active)
usr.sbin/ppp/mp.c
626
mp_Assemble(&bundle->ncp.mp, bp, p);
usr.sbin/ppp/mp.c
633
mp_Output(struct mp *mp, struct bundle *bundle, struct link *l,
usr.sbin/ppp/mp.c
663
link_PushPacket(l, m, bundle, LINK_QUEUES(l) - 1, PROTO_MP);
usr.sbin/ppp/mp.c
667
mp_FillPhysicalQueues(struct bundle *bundle)
usr.sbin/ppp/mp.c
669
struct mp *mp = &bundle->ncp.mp;
usr.sbin/ppp/mp.c
678
for (fdl = NULL, dl = bundle->links; dl; dl = dl->next) {
usr.sbin/ppp/mp.c
692
fdl = bundle->links;
usr.sbin/ppp/mp.c
701
dl = bundle->links;
usr.sbin/ppp/mp.c
746
if (!ncp_PushPacket(&bundle->ncp, &mp->out.af, bestlink))
usr.sbin/ppp/mp.c
783
mp_Output(mp, bundle, &dl->physical->link, mo, begin, end);
usr.sbin/ppp/mp.c
791
dl = bundle->links;
usr.sbin/ppp/mp.c
820
bundle_CalculateBandwidth(arg->bundle);
usr.sbin/ppp/mp.c
828
struct mp *mp = &arg->bundle->ncp.mp;
usr.sbin/ppp/mp.c
959
struct mp *mp = &arg->bundle->ncp.mp;
usr.sbin/ppp/mp.c
962
switch (bundle_Phase(arg->bundle)) {
usr.sbin/ppp/mp.c
967
if (bundle_HighestState(arg->bundle) >= DATALINK_LCP) {
usr.sbin/ppp/mp.c
985
strcpy(mp->cfg.enddisc.address, arg->bundle->cfg.label);
usr.sbin/ppp/mp.c
988
if (arg->bundle->ncp.ipcp.my_ip.s_addr == INADDR_ANY)
usr.sbin/ppp/mp.c
989
ncprange_getip4addr(&arg->bundle->ncp.ipcp.cfg.my_range, &addr);
usr.sbin/ppp/mp.c
991
addr = arg->bundle->ncp.ipcp.my_ip;
usr.sbin/ppp/mp.c
994
mp->cfg.enddisc.len = sizeof arg->bundle->ncp.ipcp.my_ip.s_addr;
usr.sbin/ppp/mp.c
998
if (arg->bundle->ncp.ipcp.my_ip.s_addr == INADDR_ANY)
usr.sbin/ppp/mp.c
999
ncprange_getip4addr(&arg->bundle->ncp.ipcp.cfg.my_range, &addr);
usr.sbin/ppp/mp.h
110
struct bundle *bundle; /* Parent */
usr.sbin/ppp/mp.h
133
extern void mp_Init(struct mp *, struct bundle *);
usr.sbin/ppp/mp.h
137
extern struct mbuf *mp_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/mp.h
138
extern int mp_FillPhysicalQueues(struct bundle *);
usr.sbin/ppp/mp.h
32
struct bundle;
usr.sbin/ppp/mppe.c
435
struct radius *r = &fp->bundle->radius;
usr.sbin/ppp/mppe.c
466
if (*fp->bundle->radius.cfg.file && fp->bundle->radius.mppe.policy)
usr.sbin/ppp/mppe.c
467
return fp->bundle->radius.mppe.policy == MPPE_POLICY_REQUIRED ? 1 : 0;
usr.sbin/ppp/mppe.c
474
MPPE_ConfigVal(struct bundle *bundle __unused, const struct ccp_config *cfg)
usr.sbin/ppp/mppe.c
484
if (*bundle->radius.cfg.file && bundle->radius.mppe.types) {
usr.sbin/ppp/mppe.c
485
if (bundle->radius.mppe.types & MPPE_TYPE_40BIT)
usr.sbin/ppp/mppe.c
487
if (bundle->radius.mppe.types & MPPE_TYPE_128BIT)
usr.sbin/ppp/mppe.c
513
MPPEInitOptsOutput(struct bundle *bundle, struct fsm_opt *o,
usr.sbin/ppp/mppe.c
529
mval = MPPE_ConfigVal(bundle, cfg);
usr.sbin/ppp/mppe.c
537
MPPESetOptsOutput(struct bundle *bundle, struct fsm_opt *o,
usr.sbin/ppp/mppe.c
548
mval = MPPE_ConfigVal(bundle, cfg);
usr.sbin/ppp/mppe.c
576
MPPESetOptsInput(struct bundle *bundle, struct fsm_opt *o,
usr.sbin/ppp/mppe.c
592
mval = MPPE_ConfigVal(bundle, cfg);
usr.sbin/ppp/mppe.c
680
MPPEInitInput(struct bundle *bundle __unused, struct fsm_opt *o)
usr.sbin/ppp/mppe.c
697
if (*bundle->radius.cfg.file && bundle->radius.mppe.recvkey) {
usr.sbin/ppp/mppe.c
698
if (mip->keylen > bundle->radius.mppe.recvkeylen)
usr.sbin/ppp/mppe.c
699
mip->keylen = bundle->radius.mppe.recvkeylen;
usr.sbin/ppp/mppe.c
702
memcpy(mip->mastkey, bundle->radius.mppe.recvkey, mip->keylen);
usr.sbin/ppp/mppe.c
736
MPPEInitOutput(struct bundle *bundle __unused, struct fsm_opt *o)
usr.sbin/ppp/mppe.c
753
if (*bundle->radius.cfg.file && bundle->radius.mppe.sendkey) {
usr.sbin/ppp/mppe.c
754
if (mop->keylen > bundle->radius.mppe.sendkeylen)
usr.sbin/ppp/mppe.c
755
mop->keylen = bundle->radius.mppe.sendkeylen;
usr.sbin/ppp/mppe.c
758
memcpy(mop->mastkey, bundle->radius.mppe.sendkey, mop->keylen);
usr.sbin/ppp/nat_cmd.c
105
if (!arg->bundle->NatEnabled) {
usr.sbin/ppp/nat_cmd.c
202
if (!arg->bundle->NatEnabled) {
usr.sbin/ppp/nat_cmd.c
239
if (!arg->bundle->NatEnabled) {
usr.sbin/ppp/nat_cmd.c
474
nat_LayerPush(struct bundle *bundle, struct link *l __unused, struct mbuf *bp,
usr.sbin/ppp/nat_cmd.c
477
if (!bundle->NatEnabled || *proto != PROTO_IP)
usr.sbin/ppp/nat_cmd.c
491
nat_LayerPull(struct bundle *bundle, struct link *l __unused, struct mbuf *bp,
usr.sbin/ppp/nat_cmd.c
499
if (!bundle->NatEnabled || *proto != PROTO_IP)
usr.sbin/ppp/nat_cmd.c
555
PacketCheck(bundle, AF_INET, MBUF_CTOP(bp), bp->m_len, NULL,
usr.sbin/ppp/ncp.c
109
mp_Init(&ncp->mp, bundle);
usr.sbin/ppp/ncp.c
112
ipcp_Init(&ncp->ipcp, bundle, &bundle->links->physical->link,
usr.sbin/ppp/ncp.c
113
&bundle->fsm);
usr.sbin/ppp/ncp.c
115
ipv6cp_Init(&ncp->ipv6cp, bundle, &bundle->links->physical->link,
usr.sbin/ppp/ncp.c
116
&bundle->fsm);
usr.sbin/ppp/ncp.c
141
ncp_fsmStart(struct ncp *ncp, struct bundle *bundle)
usr.sbin/ppp/ncp.c
146
if (Enabled(bundle, OPT_IPCP)) {
usr.sbin/ppp/ncp.c
154
if (Enabled(bundle, OPT_IPV6CP)) {
usr.sbin/ppp/ncp.c
301
ncp_FillPhysicalQueues(struct ncp *ncp, struct bundle *bundle)
usr.sbin/ppp/ncp.c
305
if (bundle->ncp.mp.active)
usr.sbin/ppp/ncp.c
306
total = mp_FillPhysicalQueues(bundle);
usr.sbin/ppp/ncp.c
311
for (total = 0, dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/ncp.c
320
return total + ncp_QueueLen(&bundle->ncp);
usr.sbin/ppp/ncp.c
330
struct bundle *bundle = l->lcp.fsm.bundle;
usr.sbin/ppp/ncp.c
335
if ((res = ipcp_PushPacket(&bundle->ncp.ipcp, l)))
usr.sbin/ppp/ncp.c
338
res = ipv6cp_PushPacket(&bundle->ncp.ipv6cp, l);
usr.sbin/ppp/ncp.c
340
if ((res = ipv6cp_PushPacket(&bundle->ncp.ipv6cp, l)))
usr.sbin/ppp/ncp.c
343
res = ipcp_PushPacket(&bundle->ncp.ipcp, l);
usr.sbin/ppp/ncp.c
346
res = ipcp_PushPacket(&bundle->ncp.ipcp, l);
usr.sbin/ppp/ncp.c
426
struct ncp *ncp = &arg->bundle->ncp;
usr.sbin/ppp/ncp.c
95
ncp_Init(struct ncp *ncp, struct bundle *bundle)
usr.sbin/ppp/ncp.h
58
extern void ncp_Init(struct ncp *, struct bundle *);
usr.sbin/ppp/ncp.h
60
extern int ncp_fsmStart(struct ncp *, struct bundle *);
usr.sbin/ppp/ncp.h
67
extern size_t ncp_FillPhysicalQueues(struct ncp *, struct bundle *);
usr.sbin/ppp/netgraph.c
399
ng_DescriptorRead(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/netgraph.c
409
physical_DescriptorRead(d, bundle, fdset);
usr.sbin/ppp/pap.c
105
memcpy(cp, bundle->cfg.auth.name, namelen);
usr.sbin/ppp/pap.c
108
memcpy(cp, bundle->cfg.auth.key, keylen);
usr.sbin/ppp/pap.c
109
link_PushPacket(&authp->physical->link, bp, bundle,
usr.sbin/ppp/pap.c
138
link_PushPacket(&authp->physical->link, bp, authp->physical->dl->bundle,
usr.sbin/ppp/pap.c
145
struct bundle *bundle = authp->physical->dl->bundle;
usr.sbin/ppp/pap.c
149
if (*bundle->radius.cfg.file && bundle->radius.repstr)
usr.sbin/ppp/pap.c
150
SendPapCode(authp, PAP_ACK, bundle->radius.repstr);
usr.sbin/ppp/pap.c
155
if (Enabled(bundle, OPT_UTMP))
usr.sbin/ppp/pap.c
180
pap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/pap.c
194
if (bundle_Phase(bundle) != PHASE_NETWORK &&
usr.sbin/ppp/pap.c
195
bundle_Phase(bundle) != PHASE_AUTHENTICATE) {
usr.sbin/ppp/pap.c
214
Enabled(bundle, OPT_IDCHECK)) {
usr.sbin/ppp/pap.c
267
if (*bundle->radius.cfg.file) {
usr.sbin/ppp/pap.c
268
if (!radius_Authenticate(&bundle->radius, authp, authp->in.name,
usr.sbin/ppp/pap.c
273
if (auth_Validate(bundle, authp->in.name, key))
usr.sbin/ppp/pap.c
85
struct bundle *bundle = authp->physical->dl->bundle;
usr.sbin/ppp/pap.c
91
namelen = strlen(bundle->cfg.auth.name);
usr.sbin/ppp/pap.c
92
keylen = strlen(bundle->cfg.auth.key);
usr.sbin/ppp/pap.c
95
log_Printf(LogPHASE, "Pap Output: %s ********\n", bundle->cfg.auth.name);
usr.sbin/ppp/pap.c
96
if (*bundle->cfg.auth.name == '\0')
usr.sbin/ppp/pap.h
41
extern struct mbuf *pap_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/physical.c
103
static int physical_DescriptorWrite(struct fdescriptor *, struct bundle *,
usr.sbin/ppp/physical.c
168
p->link.stats.parent = dl->bundle->ncp.mp.active ?
usr.sbin/ppp/physical.c
169
&dl->bundle->ncp.mp.link.stats.total : NULL;
usr.sbin/ppp/physical.c
203
lcp_Init(&p->link.lcp, dl->bundle, &p->link, &dl->fsmp);
usr.sbin/ppp/physical.c
204
ccp_Init(&p->link.ccp, dl->bundle, &p->link, &dl->fsmp);
usr.sbin/ppp/physical.c
359
bundle_setsid(p->dl->bundle, 0);
usr.sbin/ppp/physical.c
384
physical_DescriptorWrite(struct fdescriptor *d, struct bundle *bundle __unused,
usr.sbin/ppp/physical.c
516
physical_DescriptorRead(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/physical.c
557
link_PullPacket(&p->link, rbuff, p->input.sz, bundle);
usr.sbin/ppp/physical.c
565
link_PullPacket(&p->link, rbuff, n, bundle);
usr.sbin/ppp/physical.c
591
p->link.lcp.fsm.bundle = dl->bundle;
usr.sbin/ppp/physical.c
600
p->link.ccp.fsm.bundle = dl->bundle;
usr.sbin/ppp/physical.c
617
p->link.stats.parent = dl->bundle->ncp.mp.active ?
usr.sbin/ppp/physical.c
618
&dl->bundle->ncp.mp.link.stats.total : NULL;
usr.sbin/ppp/physical.c
639
Enabled(dl->bundle, OPT_THROUGHPUT));
usr.sbin/ppp/physical.c
682
if (Enabled(p->dl->bundle, OPT_KEEPSESSION) ||
usr.sbin/ppp/physical.c
969
fprintf(lockfile, "%s%d\n", TUN_NAME, p->dl->bundle->unit);
usr.sbin/ppp/physical.c
978
Enabled(p->dl->bundle, OPT_THROUGHPUT));
usr.sbin/ppp/physical.h
159
extern void physical_DescriptorRead(struct fdescriptor *, struct bundle *,
usr.sbin/ppp/physical.h
24
struct bundle;
usr.sbin/ppp/pred.c
156
Pred1InitInput(struct bundle *bundle __unused, struct fsm_opt *o __unused)
usr.sbin/ppp/pred.c
166
Pred1InitOutput(struct bundle *bundle __unused, struct fsm_opt *o __unused)
usr.sbin/ppp/pred.c
305
Pred1InitOptsOutput(struct bundle *bundle __unused, struct fsm_opt *o,
usr.sbin/ppp/pred.c
312
Pred1SetOpts(struct bundle *bundle __unused, struct fsm_opt *o,
usr.sbin/ppp/prompt.c
105
if (p->bundle->ncp.ipcp.fsm.state == ST_OPENED)
usr.sbin/ppp/prompt.c
108
else if (!Enabled(p->bundle, OPT_IPCP) &&
usr.sbin/ppp/prompt.c
109
p->bundle->ncp.ipv6cp.fsm.state == ST_OPENED)
usr.sbin/ppp/prompt.c
112
else if (bundle_Phase(p->bundle) == PHASE_NETWORK)
usr.sbin/ppp/prompt.c
114
else if (bundle_Phase(p->bundle) == PHASE_AUTHENTICATE)
usr.sbin/ppp/prompt.c
183
prompt_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset __unused)
usr.sbin/ppp/prompt.c
203
if (!command_Decode(bundle, linebuff, n, p, p->src.from))
usr.sbin/ppp/prompt.c
283
arg.bundle = bundle;
usr.sbin/ppp/prompt.c
304
prompt_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, const fd_set *fdset __unused)
usr.sbin/ppp/prompt.c
312
prompt_Create(struct server *s, struct bundle *bundle, int fd)
usr.sbin/ppp/prompt.c
351
p->bundle = bundle;
usr.sbin/ppp/prompt.h
38
struct bundle;
usr.sbin/ppp/prompt.h
48
struct bundle *bundle; /* who I'm controlling */
usr.sbin/ppp/prompt.h
70
extern struct prompt *prompt_Create(struct server *, struct bundle *, int);
usr.sbin/ppp/proto.c
74
proto_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/proto.c
87
proto_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/radius.c
225
struct bundle *bundle;
usr.sbin/ppp/radius.c
353
bundle = r->cx.auth->physical->dl->bundle;
usr.sbin/ppp/radius.c
364
!ncprange_aton(&dest, &bundle->ncp, argv[0])) ||
usr.sbin/ppp/radius.c
365
!ncpaddr_aton(&gw, &bundle->ncp, argv[1]))
usr.sbin/ppp/radius.c
384
ncpaddr_setip4(&gw, bundle->ncp.ipcp.peer_ip);
usr.sbin/ppp/radius.c
562
radius_Read(struct fdescriptor *d, struct bundle *bundle __unused, const fd_set *fdset __unused)
usr.sbin/ppp/radius.c
601
radius_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, const fd_set *fdset __unused)
usr.sbin/ppp/radius.c
938
dl->bundle->cfg.auth.name, (long)getpid(),
usr.sbin/ppp/radius.c
943
dl->bundle->ncp.mp.active ?
usr.sbin/ppp/radius.c
944
dl->bundle->ncp.mp.server.socket.sun_path : "");
usr.sbin/ppp/radius.h
81
struct bundle;
usr.sbin/ppp/route.c
381
route_IfDelete(struct bundle *bundle, int all)
usr.sbin/ppp/route.c
391
log_Printf(LogDEBUG, "route_IfDelete (%d)\n", bundle->iface->index);
usr.sbin/ppp/route.c
431
if (rtm->rtm_index == bundle->iface->index &&
usr.sbin/ppp/route.c
455
rt_Set(bundle, RTM_DELETE, &range, NULL, 0, 0);
usr.sbin/ppp/route.c
473
route_UpdateMTU(struct bundle *bundle)
usr.sbin/ppp/route.c
482
log_Printf(LogDEBUG, "route_UpdateMTU (%d)\n", bundle->iface->index);
usr.sbin/ppp/route.c
516
sa[RTAX_GATEWAY] && rtm->rtm_index == bundle->iface->index) {
usr.sbin/ppp/route.c
521
ncprange_ntoa(&dst), bundle->iface->mtu);
usr.sbin/ppp/route.c
523
rt_Update(bundle, sa[RTAX_DST], sa[RTAX_GATEWAY], sa[RTAX_NETMASK]);
usr.sbin/ppp/route.c
545
route_Change(struct bundle *bundle, struct sticky_route *r,
usr.sbin/ppp/route.c
554
rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
usr.sbin/ppp/route.c
559
rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
usr.sbin/ppp/route.c
564
if (bundle->ncp.ipcp.ns.dns[0].s_addr == INADDR_NONE)
usr.sbin/ppp/route.c
566
rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
usr.sbin/ppp/route.c
570
if (bundle->ncp.ipcp.ns.dns[1].s_addr == INADDR_NONE)
usr.sbin/ppp/route.c
572
rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
usr.sbin/ppp/route.c
580
rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
usr.sbin/ppp/route.c
585
rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
usr.sbin/ppp/route.c
593
rt_Set(bundle, RTM_ADD, &r->dst, &r->gw, 1, 0);
usr.sbin/ppp/route.c
731
rt_Set(struct bundle *bundle, int cmd, const struct ncprange *dst,
usr.sbin/ppp/route.c
754
rtmes.m_rtm.rtm_seq = ++bundle->routing_seq;
usr.sbin/ppp/route.c
759
if (bundle->ncp.cfg.sendpipe > 0) {
usr.sbin/ppp/route.c
760
rtmes.m_rtm.rtm_rmx.rmx_sendpipe = bundle->ncp.cfg.sendpipe;
usr.sbin/ppp/route.c
763
if (bundle->ncp.cfg.recvpipe > 0) {
usr.sbin/ppp/route.c
764
rtmes.m_rtm.rtm_rmx.rmx_recvpipe = bundle->ncp.cfg.recvpipe;
usr.sbin/ppp/route.c
771
add_scope((struct sockaddr *)&sadst, bundle->iface->index);
usr.sbin/ppp/route.c
784
add_scope((struct sockaddr *)&sagw, bundle->iface->index);
usr.sbin/ppp/route.c
855
rt_Update(struct bundle *bundle, const struct sockaddr *dst,
usr.sbin/ppp/route.c
873
rtmes.m_rtm.rtm_seq = ++bundle->routing_seq;
usr.sbin/ppp/route.c
877
if (bundle->ncp.cfg.sendpipe > 0) {
usr.sbin/ppp/route.c
878
rtmes.m_rtm.rtm_rmx.rmx_sendpipe = bundle->ncp.cfg.sendpipe;
usr.sbin/ppp/route.c
882
if (bundle->ncp.cfg.recvpipe > 0) {
usr.sbin/ppp/route.c
883
rtmes.m_rtm.rtm_rmx.rmx_recvpipe = bundle->ncp.cfg.recvpipe;
usr.sbin/ppp/route.c
887
rtmes.m_rtm.rtm_rmx.rmx_mtu = bundle->iface->mtu;
usr.sbin/ppp/route.h
32
struct bundle;
usr.sbin/ppp/route.h
58
extern void route_IfDelete(struct bundle *, int);
usr.sbin/ppp/route.h
59
extern void route_UpdateMTU(struct bundle *);
usr.sbin/ppp/route.h
61
extern void route_Change(struct bundle *, struct sticky_route *,
usr.sbin/ppp/route.h
67
extern void route_Clean(struct bundle *, struct sticky_route *);
usr.sbin/ppp/route.h
71
extern int rt_Set(struct bundle *, int, const struct ncprange *,
usr.sbin/ppp/route.h
73
extern void rt_Update(struct bundle *, const struct sockaddr *,
usr.sbin/ppp/server.c
158
if ((p = prompt_Create(s, bundle, wfd)) == NULL) {
usr.sbin/ppp/server.c
189
descriptor_Read(&p->desc, bundle, fdset);
usr.sbin/ppp/server.c
196
server_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, const fd_set *fdset __unused)
usr.sbin/ppp/server.c
216
server_Reopen(struct bundle *bundle)
usr.sbin/ppp/server.c
227
server_Close(bundle);
usr.sbin/ppp/server.c
231
ret = server_LocalOpen(bundle, name, mask);
usr.sbin/ppp/server.c
234
server_Close(bundle);
usr.sbin/ppp/server.c
235
ret = server_TcpOpen(bundle, port);
usr.sbin/ppp/server.c
243
server_LocalOpen(struct bundle *bundle, const char *name, mode_t mask)
usr.sbin/ppp/server.c
252
server_Close(bundle);
usr.sbin/ppp/server.c
287
server_Close(bundle);
usr.sbin/ppp/server.c
310
server_TcpOpen(struct bundle *bundle, u_short port)
usr.sbin/ppp/server.c
320
server_Close(bundle);
usr.sbin/ppp/server.c
361
server_Close(bundle);
usr.sbin/ppp/server.c
380
server_Close(struct bundle *bundle __unused)
usr.sbin/ppp/server.c
403
server_Clear(struct bundle *bundle)
usr.sbin/ppp/server.c
407
ret = server_Close(bundle);
usr.sbin/ppp/server.c
90
server_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset)
usr.sbin/ppp/server.h
30
struct bundle;
usr.sbin/ppp/server.h
58
extern enum server_stat server_LocalOpen(struct bundle *, const char *, mode_t);
usr.sbin/ppp/server.h
59
extern enum server_stat server_TcpOpen(struct bundle *, u_short);
usr.sbin/ppp/server.h
60
extern enum server_stat server_Reopen(struct bundle *);
usr.sbin/ppp/server.h
61
extern int server_Close(struct bundle *);
usr.sbin/ppp/server.h
62
extern int server_Clear(struct bundle *);
usr.sbin/ppp/slcompress.c
578
arg->bundle->ncp.ipcp.vj.slstat.sls_compressed,
usr.sbin/ppp/slcompress.c
579
arg->bundle->ncp.ipcp.vj.slstat.sls_packets);
usr.sbin/ppp/slcompress.c
581
arg->bundle->ncp.ipcp.vj.slstat.sls_misses,
usr.sbin/ppp/slcompress.c
582
arg->bundle->ncp.ipcp.vj.slstat.sls_searches);
usr.sbin/ppp/slcompress.c
584
arg->bundle->ncp.ipcp.vj.slstat.sls_compressedin,
usr.sbin/ppp/slcompress.c
585
arg->bundle->ncp.ipcp.vj.slstat.sls_uncompressedin);
usr.sbin/ppp/slcompress.c
587
arg->bundle->ncp.ipcp.vj.slstat.sls_errorin,
usr.sbin/ppp/slcompress.c
588
arg->bundle->ncp.ipcp.vj.slstat.sls_tossed);
usr.sbin/ppp/sync.c
54
sync_LayerPush(struct bundle *bundle __unused, struct link *l __unused, struct mbuf *bp,
usr.sbin/ppp/sync.c
63
sync_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/systems.c
338
ReadSystem(struct bundle *bundle, const char *name, const char *file,
usr.sbin/ppp/systems.c
381
n = ReadSystem(bundle, name, arg, prompt, cx, how);
usr.sbin/ppp/systems.c
431
command_Run(bundle, argc, (char const *const *)argv, prompt,
usr.sbin/ppp/systems.c
499
system_Select(struct bundle *bundle, const char *name, const char *file,
usr.sbin/ppp/systems.c
504
return ReadSystem(bundle, name, file, prompt, cx, SYSTEM_EXEC);
usr.sbin/ppp/systems.h
34
struct bundle;
usr.sbin/ppp/systems.h
37
extern int system_Select(struct bundle *bundle, const char *, const char *,
usr.sbin/ppp/tcpmss.c
145
tcpmss_Check(struct bundle *bundle, struct mbuf *bp)
usr.sbin/ppp/tcpmss.c
150
if (!Enabled(bundle, OPT_TCPMSSFIXUP))
usr.sbin/ppp/tcpmss.c
166
MAXMSS(bundle->iface->mtu));
usr.sbin/ppp/tcpmss.c
172
tcpmss_LayerPush(struct bundle *bundle, struct link *l __unused, struct mbuf *bp,
usr.sbin/ppp/tcpmss.c
175
return tcpmss_Check(bundle, bp);
usr.sbin/ppp/tcpmss.c
179
tcpmss_LayerPull(struct bundle *bundle, struct link *l __unused, struct mbuf *bp,
usr.sbin/ppp/tcpmss.c
182
return tcpmss_Check(bundle, bp);
usr.sbin/ppp/tun.c
110
info.mtu = bundle->iface->mtu;
usr.sbin/ppp/tun.c
112
info.baudrate = bundle->bandwidth;
usr.sbin/ppp/tun.c
116
if (ID0ioctl(bundle->dev.fd, TUNSIFINFO, &info) < 0)
usr.sbin/ppp/tun.c
85
tun_configure(struct bundle *bundle)
usr.sbin/ppp/tun.c
98
sprintf(ifr.ifr_name, "tun%d", bundle->unit);
usr.sbin/ppp/tun.c
99
ifr.ifr_mtu = bundle->iface->mtu;
usr.sbin/ppp/tun.h
38
struct bundle;
usr.sbin/ppp/tun.h
40
extern void tun_configure(struct bundle *);
usr.sbin/ppp/vjcomp.c
166
vj_LayerPull(struct bundle *bundle, struct link *l __unused, struct mbuf *bp,
usr.sbin/ppp/vjcomp.c
185
return VjUncompressTcp(&bundle->ncp.ipcp, bp, type);
usr.sbin/ppp/vjcomp.c
74
vj_LayerPush(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, int pri __unused,
usr.sbin/ppp/vjcomp.c
79
u_short cproto = bundle->ncp.ipcp.peer_compproto >> 16;
usr.sbin/ppp/vjcomp.c
85
type = sl_compress_tcp(bp, pip, &bundle->ncp.ipcp.vj.cslc,
usr.sbin/ppp/vjcomp.c
86
&bundle->ncp.ipcp.vj.slstat,
usr.sbin/ppp/vjcomp.c
87
bundle->ncp.ipcp.peer_compproto & 0xff);
usr.sbin/ppp/vjcomp.h
33
struct bundle;