sys/dev/cxgb/common/cxgb_t3_cpl.h
737
__u8 bundle:1;
sys/dev/cxgb/common/cxgb_t3_cpl.h
743
__u8 bundle:1;
sys/dev/ioat/ioat_internal.h
133
uint32_t bundle:1;
sys/dev/ioat/ioat_internal.h
166
uint32_t bundle:1;
sys/dev/ioat/ioat_internal.h
196
uint32_t bundle:1;
sys/dev/ioat/ioat_internal.h
223
uint32_t bundle:1;
sys/dev/ioat/ioat_internal.h
302
uint32_t bundle:1;
sys/dev/ioat/ioat_internal.h
340
uint32_t bundle:1;
sys/dev/ioat/ioat_internal.h
382
uint32_t bundle:1;
sys/dev/qat/include/common/adf_cfg_common.h
179
int bundle;
sys/dev/qat/include/common/adf_common_drv.h
178
void adf_update_uio_ring_arb(struct adf_uio_control_bundle *bundle);
sys/dev/qat/include/common/adf_uio.h
9
struct adf_uio_control_bundle *bundle;
sys/dev/qat/include/common/adf_uio_control.h
37
struct adf_uio_control_bundle bundle[0];
sys/dev/qat/qat_common/adf_cfg_bundle.c
102
strlcpy(bundle->sections[bundle->section_index],
sys/dev/qat/qat_common/adf_cfg_bundle.c
105
bundle->section_index++;
sys/dev/qat/qat_common/adf_cfg_bundle.c
107
if (adf_cfg_is_free(bundle)) {
sys/dev/qat/qat_common/adf_cfg_bundle.c
108
bundle->polling_mode = inst->polling_mode;
sys/dev/qat/qat_common/adf_cfg_bundle.c
109
bundle->type = (!strcmp(ADF_KERNEL_SEC, process_name) ||
sys/dev/qat/qat_common/adf_cfg_bundle.c
11
return (bundle->polling_mode == ADF_CFG_RESP_EPOLL) ||
sys/dev/qat/qat_common/adf_cfg_bundle.c
113
if (adf_cfg_is_interrupt_mode(bundle)) {
sys/dev/qat/qat_common/adf_cfg_bundle.c
114
CPU_ZERO(&bundle->affinity_mask);
sys/dev/qat/qat_common/adf_cfg_bundle.c
115
CPU_COPY(&inst->affinity_mask, &bundle->affinity_mask);
sys/dev/qat/qat_common/adf_cfg_bundle.c
12
(bundle->type == KERNEL &&
sys/dev/qat/qat_common/adf_cfg_bundle.c
13
(bundle->polling_mode != ADF_CFG_RESP_POLL));
sys/dev/qat/qat_common/adf_cfg_bundle.c
146
inst->bundle = bundle->number;
sys/dev/qat/qat_common/adf_cfg_bundle.c
152
adf_cfg_init_and_insert_inst(struct adf_cfg_bundle *bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.c
167
for (ring_pair_index = 0; ring_pair_index < bundle->max_cfg_svc_num;
sys/dev/qat/qat_common/adf_cfg_bundle.c
17
adf_cfg_can_be_shared(struct adf_cfg_bundle *bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.c
170
bundle->number,
sys/dev/qat/qat_common/adf_cfg_bundle.c
183
crypto_instance_init(cfg_instance, bundle);
sys/dev/qat/qat_common/adf_cfg_bundle.c
186
dc_instance_init(cfg_instance, bundle);
sys/dev/qat/qat_common/adf_cfg_bundle.c
189
asym_instance_init(cfg_instance, bundle);
sys/dev/qat/qat_common/adf_cfg_bundle.c
192
sym_instance_init(cfg_instance, bundle);
sys/dev/qat/qat_common/adf_cfg_bundle.c
205
cfg_instance->bundle = bank_num;
sys/dev/qat/qat_common/adf_cfg_bundle.c
21
if (adf_cfg_is_free(bundle))
sys/dev/qat/qat_common/adf_cfg_bundle.c
221
adf_cfg_bundle_init(struct adf_cfg_bundle *bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.c
228
bundle->number = bank_num;
sys/dev/qat/qat_common/adf_cfg_bundle.c
230
adf_cfg_init_ring2serv_mapping(accel_dev, bundle, device);
sys/dev/qat/qat_common/adf_cfg_bundle.c
233
adf_cfg_init_and_insert_inst(bundle, device, bank_num, accel_dev);
sys/dev/qat/qat_common/adf_cfg_bundle.c
235
CPU_FILL(&bundle->affinity_mask);
sys/dev/qat/qat_common/adf_cfg_bundle.c
236
bundle->type = FREE;
sys/dev/qat/qat_common/adf_cfg_bundle.c
237
bundle->polling_mode = -1;
sys/dev/qat/qat_common/adf_cfg_bundle.c
238
bundle->section_index = 0;
sys/dev/qat/qat_common/adf_cfg_bundle.c
24
if (bundle->polling_mode != polling_mode)
sys/dev/qat/qat_common/adf_cfg_bundle.c
240
bundle->sections = malloc(sizeof(char *) * bundle->max_section,
sys/dev/qat/qat_common/adf_cfg_bundle.c
244
for (i = 0; i < bundle->max_section; i++) {
sys/dev/qat/qat_common/adf_cfg_bundle.c
245
bundle->sections[i] =
sys/dev/qat/qat_common/adf_cfg_bundle.c
252
adf_cfg_bundle_clear(struct adf_cfg_bundle *bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.c
257
for (i = 0; i < bundle->max_section; i++) {
sys/dev/qat/qat_common/adf_cfg_bundle.c
258
if (bundle->sections && bundle->sections[i]) {
sys/dev/qat/qat_common/adf_cfg_bundle.c
259
free(bundle->sections[i], M_QAT);
sys/dev/qat/qat_common/adf_cfg_bundle.c
260
bundle->sections[i] = NULL;
sys/dev/qat/qat_common/adf_cfg_bundle.c
264
free(bundle->sections, M_QAT);
sys/dev/qat/qat_common/adf_cfg_bundle.c
265
bundle->sections = NULL;
sys/dev/qat/qat_common/adf_cfg_bundle.c
267
adf_cfg_rel_ring2serv_mapping(bundle);
sys/dev/qat/qat_common/adf_cfg_bundle.c
27
return !adf_cfg_is_interrupt_mode(bundle) ||
sys/dev/qat/qat_common/adf_cfg_bundle.c
272
struct adf_cfg_bundle *bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.c
278
int num_req_rings = bundle->num_of_rings / 2;
sys/dev/qat/qat_common/adf_cfg_bundle.c
281
for (ring_pair_index = 0; ring_pair_index < bundle->max_cfg_svc_num;
sys/dev/qat/qat_common/adf_cfg_bundle.c
284
bundle->number,
sys/dev/qat/qat_common/adf_cfg_bundle.c
29
bundle->sections[0],
sys/dev/qat/qat_common/adf_cfg_bundle.c
292
ASSIGN_SERV_TO_RINGS(bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.c
299
if (ring_pair_index == bundle->max_cfg_svc_num)
sys/dev/qat/qat_common/adf_cfg_bundle.c
301
ASSIGN_SERV_TO_RINGS(bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.c
308
ASSIGN_SERV_TO_RINGS(bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.c
315
ASSIGN_SERV_TO_RINGS(bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.c
322
ASSIGN_SERV_TO_RINGS(bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.c
329
ASSIGN_SERV_TO_RINGS(bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.c
34
adf_cfg_is_free(struct adf_cfg_bundle *bundle)
sys/dev/qat/qat_common/adf_cfg_bundle.c
349
struct adf_cfg_bundle *bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.c
356
bundle->num_of_rings = hw_data->num_rings_per_bank;
sys/dev/qat/qat_common/adf_cfg_bundle.c
358
bundle->max_cfg_svc_num = ADF_CFG_NUM_SERVICES;
sys/dev/qat/qat_common/adf_cfg_bundle.c
36
return bundle->type == FREE;
sys/dev/qat/qat_common/adf_cfg_bundle.c
360
bundle->max_cfg_svc_num = 1;
sys/dev/qat/qat_common/adf_cfg_bundle.c
362
bundle->rings =
sys/dev/qat/qat_common/adf_cfg_bundle.c
363
malloc(bundle->num_of_rings * sizeof(struct adf_cfg_ring *),
sys/dev/qat/qat_common/adf_cfg_bundle.c
367
for (ring_num = 0; ring_num < bundle->num_of_rings; ring_num++) {
sys/dev/qat/qat_common/adf_cfg_bundle.c
372
(ring_num < bundle->num_of_rings / 2) ? TX : RX;
sys/dev/qat/qat_common/adf_cfg_bundle.c
374
bundle->rings[ring_num] = ring_in_bundle;
sys/dev/qat/qat_common/adf_cfg_bundle.c
377
adf_cfg_assign_serv_to_rings(hw_data, bundle, device);
sys/dev/qat/qat_common/adf_cfg_bundle.c
383
adf_cfg_rel_ring2serv_mapping(struct adf_cfg_bundle *bundle)
sys/dev/qat/qat_common/adf_cfg_bundle.c
387
if (bundle->rings) {
sys/dev/qat/qat_common/adf_cfg_bundle.c
388
for (i = 0; i < bundle->num_of_rings; i++)
sys/dev/qat/qat_common/adf_cfg_bundle.c
389
free(bundle->rings[i], M_QAT);
sys/dev/qat/qat_common/adf_cfg_bundle.c
391
free(bundle->rings, M_QAT);
sys/dev/qat/qat_common/adf_cfg_bundle.c
41
struct adf_cfg_bundle *bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.c
48
if (adf_cfg_can_be_shared(bundle, process_name, inst->polling_mode)) {
sys/dev/qat/qat_common/adf_cfg_bundle.c
55
if (bundle->number == device->instances[i]->bundle &&
sys/dev/qat/qat_common/adf_cfg_bundle.c
64
if ((bundle->number + 1) ==
sys/dev/qat/qat_common/adf_cfg_bundle.c
65
device->instances[i]->bundle)
sys/dev/qat/qat_common/adf_cfg_bundle.c
74
adf_cfg_get_ring_pairs_from_bundle(struct adf_cfg_bundle *bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.c
80
adf_cfg_is_interrupt_mode(bundle)) {
sys/dev/qat/qat_common/adf_cfg_bundle.c
9
adf_cfg_is_interrupt_mode(struct adf_cfg_bundle *bundle)
sys/dev/qat/qat_common/adf_cfg_bundle.h
29
bool adf_cfg_is_free(struct adf_cfg_bundle *bundle);
sys/dev/qat/qat_common/adf_cfg_bundle.h
31
int adf_cfg_get_ring_pairs_from_bundle(struct adf_cfg_bundle *bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.h
38
struct adf_cfg_bundle *bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.h
42
int adf_cfg_bundle_init(struct adf_cfg_bundle *bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.h
47
void adf_cfg_bundle_clear(struct adf_cfg_bundle *bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.h
51
struct adf_cfg_bundle *bundle,
sys/dev/qat/qat_common/adf_cfg_bundle.h
54
int adf_cfg_rel_ring2serv_mapping(struct adf_cfg_bundle *bundle);
sys/dev/qat/qat_common/adf_cfg_instance.c
100
for (i = 0; i < bundle->num_of_rings / 2; i++) {
sys/dev/qat/qat_common/adf_cfg_instance.c
101
if ((bundle->in_use >> bundle->rings[i]->number) & 0x1)
sys/dev/qat/qat_common/adf_cfg_instance.c
104
if (bundle->rings[i]->serv_type == ADF_ACCEL_SERV_ASYM &&
sys/dev/qat/qat_common/adf_cfg_instance.c
105
bundle->rings[i]->mode == TX) {
sys/dev/qat/qat_common/adf_cfg_instance.c
106
instance->asym_tx = bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
107
bundle->in_use |= 1 << bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
112
for (i = bundle->num_of_rings / 2; i < bundle->num_of_rings; i++) {
sys/dev/qat/qat_common/adf_cfg_instance.c
113
if ((bundle->in_use >> bundle->rings[i]->number) & 0x1)
sys/dev/qat/qat_common/adf_cfg_instance.c
116
if (bundle->rings[i]->serv_type == ADF_ACCEL_SERV_ASYM &&
sys/dev/qat/qat_common/adf_cfg_instance.c
117
bundle->rings[i]->mode == RX) {
sys/dev/qat/qat_common/adf_cfg_instance.c
118
instance->asym_rx = bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
119
bundle->in_use |= 1 << bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
12
for (i = 0; i < bundle->num_of_rings / 2; i++) {
sys/dev/qat/qat_common/adf_cfg_instance.c
127
struct adf_cfg_bundle *bundle)
sys/dev/qat/qat_common/adf_cfg_instance.c
13
if ((bundle->in_use >> bundle->rings[i]->number) & 0x1)
sys/dev/qat/qat_common/adf_cfg_instance.c
132
for (i = 0; i < bundle->num_of_rings / 2; i++) {
sys/dev/qat/qat_common/adf_cfg_instance.c
133
if ((bundle->in_use >> bundle->rings[i]->number) & 0x1)
sys/dev/qat/qat_common/adf_cfg_instance.c
136
if (bundle->rings[i]->serv_type == ADF_ACCEL_SERV_SYM &&
sys/dev/qat/qat_common/adf_cfg_instance.c
137
bundle->rings[i]->mode == TX) {
sys/dev/qat/qat_common/adf_cfg_instance.c
138
instance->sym_tx = bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
139
bundle->in_use |= 1 << bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
144
for (i = 0 + bundle->num_of_rings / 2; i < bundle->num_of_rings; i++) {
sys/dev/qat/qat_common/adf_cfg_instance.c
145
if ((bundle->in_use >> bundle->rings[i]->number) & 0x1)
sys/dev/qat/qat_common/adf_cfg_instance.c
148
if (bundle->rings[i]->serv_type == ADF_ACCEL_SERV_SYM &&
sys/dev/qat/qat_common/adf_cfg_instance.c
149
bundle->rings[i]->mode == RX) {
sys/dev/qat/qat_common/adf_cfg_instance.c
150
instance->sym_rx = bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
151
bundle->in_use |= 1 << bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
16
if (bundle->rings[i]->serv_type == ADF_ACCEL_SERV_ASYM &&
sys/dev/qat/qat_common/adf_cfg_instance.c
17
bundle->rings[i]->mode == TX) {
sys/dev/qat/qat_common/adf_cfg_instance.c
18
instance->asym_tx = bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
19
bundle->in_use |= 1 << bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
24
for (i = 0; i < bundle->num_of_rings / 2; i++) {
sys/dev/qat/qat_common/adf_cfg_instance.c
25
if ((bundle->in_use >> bundle->rings[i]->number) & 0x1)
sys/dev/qat/qat_common/adf_cfg_instance.c
28
if (bundle->rings[i]->serv_type == ADF_ACCEL_SERV_SYM &&
sys/dev/qat/qat_common/adf_cfg_instance.c
29
bundle->rings[i]->mode == TX) {
sys/dev/qat/qat_common/adf_cfg_instance.c
30
instance->sym_tx = bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
31
bundle->in_use |= 1 << bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
36
for (i = bundle->num_of_rings / 2; i < bundle->num_of_rings; i++) {
sys/dev/qat/qat_common/adf_cfg_instance.c
37
if ((bundle->in_use >> bundle->rings[i]->number) & 0x1)
sys/dev/qat/qat_common/adf_cfg_instance.c
40
if (bundle->rings[i]->serv_type == ADF_ACCEL_SERV_ASYM &&
sys/dev/qat/qat_common/adf_cfg_instance.c
41
bundle->rings[i]->mode == RX) {
sys/dev/qat/qat_common/adf_cfg_instance.c
42
instance->asym_rx = bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
43
bundle->in_use |= 1 << bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
48
for (i = bundle->num_of_rings / 2; i < bundle->num_of_rings; i++) {
sys/dev/qat/qat_common/adf_cfg_instance.c
49
if ((bundle->in_use >> bundle->rings[i]->number) & 0x1)
sys/dev/qat/qat_common/adf_cfg_instance.c
52
if (bundle->rings[i]->serv_type == ADF_ACCEL_SERV_SYM &&
sys/dev/qat/qat_common/adf_cfg_instance.c
53
bundle->rings[i]->mode == RX) {
sys/dev/qat/qat_common/adf_cfg_instance.c
54
instance->sym_rx = bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
55
bundle->in_use |= 1 << bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
63
struct adf_cfg_bundle *bundle)
sys/dev/qat/qat_common/adf_cfg_instance.c
68
for (i = 0; i < bundle->num_of_rings / 2; i++) {
sys/dev/qat/qat_common/adf_cfg_instance.c
69
if ((bundle->in_use >> bundle->rings[i]->number) & 0x1)
sys/dev/qat/qat_common/adf_cfg_instance.c
7
struct adf_cfg_bundle *bundle)
sys/dev/qat/qat_common/adf_cfg_instance.c
72
if (bundle->rings[i]->serv_type == ADF_ACCEL_SERV_DC &&
sys/dev/qat/qat_common/adf_cfg_instance.c
73
bundle->rings[i]->mode == TX) {
sys/dev/qat/qat_common/adf_cfg_instance.c
74
instance->dc_tx = bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
75
bundle->in_use |= 1 << bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
80
for (i = bundle->num_of_rings / 2; i < bundle->num_of_rings; i++) {
sys/dev/qat/qat_common/adf_cfg_instance.c
81
if ((bundle->in_use >> bundle->rings[i]->number) & 0x1)
sys/dev/qat/qat_common/adf_cfg_instance.c
84
if (bundle->rings[i]->serv_type == ADF_ACCEL_SERV_DC &&
sys/dev/qat/qat_common/adf_cfg_instance.c
85
bundle->rings[i]->mode == RX) {
sys/dev/qat/qat_common/adf_cfg_instance.c
86
instance->dc_rx = bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
87
bundle->in_use |= 1 << bundle->rings[i]->number;
sys/dev/qat/qat_common/adf_cfg_instance.c
95
struct adf_cfg_bundle *bundle)
sys/dev/qat/qat_common/adf_cfg_instance.h
11
struct adf_cfg_bundle *bundle);
sys/dev/qat/qat_common/adf_cfg_instance.h
13
struct adf_cfg_bundle *bundle);
sys/dev/qat/qat_common/adf_cfg_instance.h
15
struct adf_cfg_bundle *bundle);
sys/dev/qat/qat_common/adf_cfg_instance.h
17
struct adf_cfg_bundle *bundle);
sys/dev/qat/qat_common/adf_cfg_section.c
1130
struct adf_cfg_bundle *bundle = cfg_dev->bundles[index];
sys/dev/qat/qat_common/adf_cfg_section.c
1132
if (!bundle)
sys/dev/qat/qat_common/adf_cfg_section.c
1135
if (bundle->type != KERNEL &&
sys/dev/qat/qat_common/adf_cfg_section.c
1136
bundle->polling_mode != ADF_CFG_RESP_EPOLL)
sys/dev/qat/qat_common/adf_cfg_section.c
1139
if (bundle->number >= num_msix)
sys/dev/qat/qat_common/adf_cfg_section.c
1142
computed_core = CPU_FFS(&bundle->affinity_mask) - 1;
sys/dev/qat/qat_common/adf_cfg_section.c
175
bank_number = crypto_inst->bundle;
sys/dev/qat/qat_common/adf_cfg_section.c
250
bank_number = dc_inst->bundle;
sys/dev/qat/qat_common/adf_cfg_section.c
298
bank_number = asym_inst->bundle;
sys/dev/qat/qat_common/adf_cfg_section.c
356
bank_number = sym_inst->bundle;
sys/dev/qat/qat_common/adf_ctl_drv.c
225
struct adf_uio_control_bundle *bundle = NULL;
sys/dev/qat/qat_common/adf_ctl_drv.c
253
bundle = &accel->bundle[reserve.bank_nr];
sys/dev/qat/qat_common/adf_ctl_drv.c
255
return bundle;
sys/dev/qat/qat_common/adf_ctl_drv.c
261
struct adf_uio_control_bundle *bundle;
sys/dev/qat/qat_common/adf_ctl_drv.c
267
bundle = adf_ctl_ioctl_bundle(reserve);
sys/dev/qat/qat_common/adf_ctl_drv.c
268
if (!bundle) {
sys/dev/qat/qat_common/adf_ctl_drv.c
273
mutex_lock(&bundle->lock);
sys/dev/qat/qat_common/adf_ctl_drv.c
274
if (bundle->rings_used & reserve.ring_mask) {
sys/dev/qat/qat_common/adf_ctl_drv.c
278
mutex_unlock(&bundle->lock);
sys/dev/qat/qat_common/adf_ctl_drv.c
283
mutex_lock(&bundle->list_lock);
sys/dev/qat/qat_common/adf_ctl_drv.c
284
list_for_each_entry(instance_rings, &bundle->list, list) {
sys/dev/qat/qat_common/adf_ctl_drv.c
290
mutex_unlock(&bundle->list_lock);
sys/dev/qat/qat_common/adf_ctl_drv.c
294
mutex_unlock(&bundle->lock);
sys/dev/qat/qat_common/adf_ctl_drv.c
299
bundle->rings_used |= reserve.ring_mask;
sys/dev/qat/qat_common/adf_ctl_drv.c
300
mutex_unlock(&bundle->lock);
sys/dev/qat/qat_common/adf_ctl_drv.c
308
struct adf_uio_control_bundle *bundle;
sys/dev/qat/qat_common/adf_ctl_drv.c
314
bundle = adf_ctl_ioctl_bundle(reserve);
sys/dev/qat/qat_common/adf_ctl_drv.c
315
if (!bundle) {
sys/dev/qat/qat_common/adf_ctl_drv.c
322
mutex_lock(&bundle->list_lock);
sys/dev/qat/qat_common/adf_ctl_drv.c
323
list_for_each_entry(instance_rings, &bundle->list, list) {
sys/dev/qat/qat_common/adf_ctl_drv.c
329
mutex_unlock(&bundle->list_lock);
sys/dev/qat/qat_common/adf_ctl_drv.c
344
mutex_lock(&bundle->lock);
sys/dev/qat/qat_common/adf_ctl_drv.c
345
bundle->rings_used &= ~reserve.ring_mask;
sys/dev/qat/qat_common/adf_ctl_drv.c
346
mutex_unlock(&bundle->lock);
sys/dev/qat/qat_common/adf_ctl_drv.c
354
struct adf_uio_control_bundle *bundle;
sys/dev/qat/qat_common/adf_ctl_drv.c
358
bundle = adf_ctl_ioctl_bundle(reserve);
sys/dev/qat/qat_common/adf_ctl_drv.c
359
if (!bundle) {
sys/dev/qat/qat_common/adf_ctl_drv.c
364
mutex_lock(&bundle->lock);
sys/dev/qat/qat_common/adf_ctl_drv.c
365
bundle->rings_enabled |= reserve.ring_mask;
sys/dev/qat/qat_common/adf_ctl_drv.c
366
adf_update_uio_ring_arb(bundle);
sys/dev/qat/qat_common/adf_ctl_drv.c
367
mutex_unlock(&bundle->lock);
sys/dev/qat/qat_common/adf_ctl_drv.c
375
struct adf_uio_control_bundle *bundle;
sys/dev/qat/qat_common/adf_ctl_drv.c
379
bundle = adf_ctl_ioctl_bundle(reserve);
sys/dev/qat/qat_common/adf_ctl_drv.c
380
if (!bundle) {
sys/dev/qat/qat_common/adf_ctl_drv.c
385
mutex_lock(&bundle->lock);
sys/dev/qat/qat_common/adf_ctl_drv.c
386
bundle->rings_enabled &= ~reserve.ring_mask;
sys/dev/qat/qat_common/adf_ctl_drv.c
387
adf_update_uio_ring_arb(bundle);
sys/dev/qat/qat_common/adf_ctl_drv.c
388
mutex_unlock(&bundle->lock);
sys/dev/qat/qat_common/adf_freebsd_uio.c
203
handle->bundle = bundle_nr;
sys/dev/qat/qat_common/adf_freebsd_uio.c
265
struct adf_uio_control_bundle *bundle = NULL;
sys/dev/qat/qat_common/adf_freebsd_uio.c
284
bundle = &accel->bundle[handle->bundle];
sys/dev/qat/qat_common/adf_freebsd_uio.c
285
if (!bundle->obj) {
sys/dev/qat/qat_common/adf_freebsd_uio.c
295
mutex_lock(&bundle->list_lock);
sys/dev/qat/qat_common/adf_freebsd_uio.c
296
list_add_tail(&instance_rings->list, &bundle->list);
sys/dev/qat/qat_common/adf_freebsd_uio.c
297
mutex_unlock(&bundle->list_lock);
sys/dev/qat/qat_common/adf_freebsd_uio.c
299
vm_object_reference(bundle->obj);
sys/dev/qat/qat_common/adf_freebsd_uio.c
300
*object = bundle->obj;
sys/dev/qat/qat_common/adf_freebsd_uio.c
309
struct adf_uio_control_bundle *bundle;
sys/dev/qat/qat_common/adf_freebsd_uio.c
318
bundle = &accel->bundle[i];
sys/dev/qat/qat_common/adf_freebsd_uio.c
319
priv = &bundle->uio_priv;
sys/dev/qat/qat_common/adf_freebsd_uio.c
320
bundle->hardware_bundle_number =
sys/dev/qat/qat_common/adf_freebsd_uio.c
323
INIT_LIST_HEAD(&bundle->list);
sys/dev/qat/qat_common/adf_freebsd_uio.c
324
priv->bundle = bundle;
sys/dev/qat/qat_common/adf_freebsd_uio.c
327
mutex_init(&bundle->lock);
sys/dev/qat/qat_common/adf_freebsd_uio.c
328
mutex_init(&bundle->list_lock);
sys/dev/qat/qat_common/adf_freebsd_uio.c
332
bundle->csr_addr = (void *)accel->bar->virt_addr;
sys/dev/qat/qat_common/adf_freebsd_uio.c
344
struct adf_uio_control_bundle *bundle;
sys/dev/qat/qat_common/adf_freebsd_uio.c
348
bundle = &accel->bundle[i];
sys/dev/qat/qat_common/adf_freebsd_uio.c
349
bundle->obj =
sys/dev/qat/qat_common/adf_freebsd_uio.c
350
adf_uio_map_bar(accel_dev, bundle->hardware_bundle_number);
sys/dev/qat/qat_common/adf_freebsd_uio.c
351
if (!bundle->obj) {
sys/dev/qat/qat_common/adf_freebsd_uio.c
418
struct adf_uio_control_bundle *bundle;
sys/dev/qat/qat_common/adf_freebsd_uio.c
424
bundle = &accel->bundle[i];
sys/dev/qat/qat_common/adf_freebsd_uio.c
425
vm_object_deallocate(bundle->obj);
sys/dev/qat/qat_common/adf_freebsd_uio.c
47
int bundle;
sys/dev/qat/qat_common/adf_freebsd_uio.c
57
struct adf_uio_control_bundle *bundle = NULL;
sys/dev/qat/qat_common/adf_freebsd_uio.c
63
bundle = &accel->bundle[handle->bundle];
sys/dev/qat/qat_common/adf_freebsd_uio.c
65
mutex_lock(&bundle->lock);
sys/dev/qat/qat_common/adf_freebsd_uio.c
66
adf_uio_do_cleanup_orphan(bundle->hardware_bundle_number, accel);
sys/dev/qat/qat_common/adf_freebsd_uio.c
67
mutex_unlock(&bundle->lock);
sys/dev/qat/qat_common/adf_freebsd_uio.c
84
mutex_lock(&bundle->list_lock);
sys/dev/qat/qat_common/adf_freebsd_uio.c
85
list_for_each_entry_safe(instance_rings, tmp, &bundle->list, list)
sys/dev/qat/qat_common/adf_freebsd_uio.c
93
mutex_unlock(&bundle->list_lock);
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
121
struct adf_uio_control_bundle *bundle;
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
136
bundle = &accel->bundle[bank];
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
137
orphan_bundle->bundle = bundle;
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
138
mutex_lock(&bundle->list_lock);
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
139
list_for_each(entry, &bundle->list)
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
148
mutex_unlock(&bundle->list_lock);
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
175
put_orphan_bundle(struct bundle_orphan_ring *bundle)
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
177
if (!bundle)
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
180
free(bundle, M_QAT);
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
197
mutex_lock(&orphan->bundle->lock);
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
198
orphan->bundle->rings_enabled &= ~mask;
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
199
adf_update_uio_ring_arb(orphan->bundle);
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
200
mutex_unlock(&orphan->bundle->lock);
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
217
struct bundle_orphan_ring *bundle,
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
225
for_each_set_bit(idx, &bundle->tx_mask, tx_rx_offset)
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
228
csr_ops->read_csr_ring_tail(bundle->csr_base,
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
231
tx_head = csr_ops->read_csr_ring_head(bundle->csr_base,
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
243
if (bundle->asym_mask & (1 << idx))
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
325
struct adf_uio_control_bundle *bundle;
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
346
accel_dev, orphan->bundle->hardware_bundle_number);
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
354
orphan->bundle->rings_enabled &=
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
377
bundle = &accel->bundle[bank];
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
382
mutex_lock(&bundle->list_lock);
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
383
list_for_each_entry_safe(instance_rings, tmp, &bundle->list, list)
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
386
bundle->rings_used &= ~instance_rings->ring_mask;
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
390
mutex_unlock(&bundle->list_lock);
sys/dev/qat/qat_common/adf_freebsd_uio_cleanup.c
47
struct adf_uio_control_bundle *bundle;
sys/dev/qat/qat_common/adf_hw_arbiter.c
117
adf_update_uio_ring_arb(struct adf_uio_control_bundle *bundle)
sys/dev/qat/qat_common/adf_hw_arbiter.c
121
struct adf_accel_dev *accel_dev = bundle->uio_priv.accel->accel_dev;
sys/dev/qat/qat_common/adf_hw_arbiter.c
128
arben_tx = bundle->rings_enabled & arb_mask;
sys/dev/qat/qat_common/adf_hw_arbiter.c
129
arben_rx = (bundle->rings_enabled >> shift) & arb_mask;
sys/dev/qat/qat_common/adf_hw_arbiter.c
131
csr_ops->write_csr_ring_srv_arb_en(bundle->csr_addr,
sys/dev/qat/qat_common/adf_hw_arbiter.c
132
bundle->hardware_bundle_number,
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
107
__malloc void *_uverbs_alloc(struct uverbs_attr_bundle *bundle, size_t size,
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
111
container_of(bundle, struct bundle_priv, bundle);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
150
static int uverbs_set_output(const struct uverbs_attr_bundle *bundle,
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
154
container_of(bundle, struct bundle_priv, bundle);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
189
uverbs_alloc(&pbundle->bundle,
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
214
idr_vals[i], &pbundle->bundle);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
244
struct uverbs_attr *e = &pbundle->bundle.attrs[attr_bkey];
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
292
p = uverbs_alloc(&pbundle->bundle, uattr->len);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
325
uattr->data_s64, &pbundle->bundle);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
381
if (test_bit(attr_bkey, pbundle->bundle.attr_present))
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
388
__set_bit(attr_bkey, pbundle->bundle.attr_present);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
405
&pbundle->bundle.ufile->device->disassociate_srcu);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
409
pbundle->uattrs = uverbs_alloc(&pbundle->bundle, uattrs_size);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
423
pbundle->bundle.attr_present,
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
428
uverbs_fill_udata(&pbundle->bundle,
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
429
&pbundle->bundle.driver_udata,
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
432
pbundle->bundle.driver_udata = (struct ib_udata){};
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
436
&pbundle->bundle.attrs[destroy_bkey].obj_attr;
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
438
ret = uobj_destroy(destroy_attr->uobject, &pbundle->bundle);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
443
ret = handler(&pbundle->bundle);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
446
ret = handler(&pbundle->bundle);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
456
uverbs_attr_get(&pbundle->bundle, UVERBS_ATTR_UHW_OUT);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
459
ret = uverbs_set_output(&pbundle->bundle, attr);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
483
struct uverbs_attr *attr = &pbundle->bundle.attrs[i];
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
488
&pbundle->bundle);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
494
struct uverbs_attr *attr = &pbundle->bundle.attrs[i];
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
508
commit, &pbundle->bundle);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
562
pbundle->bundle.ufile = ufile;
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
563
pbundle->bundle.context = NULL; /* only valid if bundle has uobject */
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
568
sizeof(*pbundle->bundle.attrs),
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
570
memset(pbundle->bundle.attr_present, 0,
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
571
sizeof(pbundle->bundle.attr_present));
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
665
void uverbs_fill_udata(struct uverbs_attr_bundle *bundle,
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
670
container_of(bundle, struct bundle_priv, bundle);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
672
uverbs_attr_get(&pbundle->bundle, attr_in);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
674
uverbs_attr_get(&pbundle->bundle, attr_out);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
68
struct uverbs_attr_bundle bundle;
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
698
int uverbs_copy_to(const struct uverbs_attr_bundle *bundle, size_t idx,
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
701
const struct uverbs_attr *attr = uverbs_attr_get(bundle, idx);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
711
return uverbs_set_output(bundle, attr);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
720
int uverbs_output_written(const struct uverbs_attr_bundle *bundle, size_t idx)
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
722
const struct uverbs_attr *attr = uverbs_attr_get(bundle, idx);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
727
return uverbs_set_output(bundle, attr);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
753
int uverbs_copy_to_struct_or_zero(const struct uverbs_attr_bundle *bundle,
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
756
const struct uverbs_attr *attr = uverbs_attr_get(bundle, idx);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
766
return uverbs_copy_to(bundle, idx, from, size);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
83
sizeof(*pbundle->bundle.attrs) * method_elm->key_bitmap_len +
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
564
struct uverbs_attr_bundle bundle;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
599
memset(bundle.attr_present, 0, sizeof(bundle.attr_present));
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
600
bundle.ufile = file;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
601
bundle.context = NULL; /* only valid if bundle has uobject */
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
608
bundle.driver_udata.inlen =
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
611
if (bundle.driver_udata.inlen)
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
612
bundle.driver_udata.inbuf = buf + in_len;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
614
bundle.driver_udata.inbuf = NULL;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
616
memset(&bundle.driver_udata, 0,
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
617
sizeof(bundle.driver_udata));
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
631
bundle.driver_udata.outlen =
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
634
if (bundle.driver_udata.outlen)
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
635
bundle.driver_udata.outbuf =
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
639
bundle.driver_udata.outbuf = NULL;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
642
bundle.driver_udata.outlen = 0;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
643
bundle.driver_udata.outbuf = NULL;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
647
&bundle.ucore, buf, u64_to_user_ptr(response),
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
652
ib_uverbs_init_udata_buf_or_null(&bundle.ucore, buf,
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
657
&bundle.driver_udata, buf + bundle.ucore.inlen,
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
658
u64_to_user_ptr(ex_hdr.response + bundle.ucore.outlen),
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
664
ret = method_elm->handler(&bundle);
sys/ofed/drivers/infiniband/core/rdma_core.h
185
void uverbs_fill_udata(struct uverbs_attr_bundle *bundle,
sys/ofed/drivers/infiniband/core/rdma_core.h
71
int uverbs_output_written(const struct uverbs_attr_bundle *bundle, size_t idx);
sys/ofed/include/rdma/uverbs_ioctl.h
875
__malloc void *_uverbs_alloc(struct uverbs_attr_bundle *bundle, size_t size,
sys/ofed/include/rdma/uverbs_ioctl.h
878
static inline __malloc void *uverbs_alloc(struct uverbs_attr_bundle *bundle,
sys/ofed/include/rdma/uverbs_ioctl.h
881
return _uverbs_alloc(bundle, size, GFP_KERNEL);
sys/ofed/include/rdma/uverbs_ioctl.h
884
static inline __malloc void *uverbs_zalloc(struct uverbs_attr_bundle *bundle,
sys/ofed/include/rdma/uverbs_ioctl.h
887
return _uverbs_alloc(bundle, size, GFP_KERNEL | __GFP_ZERO);
sys/ofed/include/rdma/uverbs_ioctl.h
892
int uverbs_copy_to_struct_or_zero(const struct uverbs_attr_bundle *bundle,
sys/ofed/include/rdma/uverbs_ioctl.h
912
static inline __malloc void *uverbs_alloc(struct uverbs_attr_bundle *bundle,
sys/ofed/include/rdma/uverbs_ioctl.h
917
static inline __malloc void *uverbs_zalloc(struct uverbs_attr_bundle *bundle,
sys/ofed/include/rdma/uverbs_ioctl.h
930
uverbs_copy_to_struct_or_zero(const struct uverbs_attr_bundle *bundle,
tests/sys/kern/unix_passfd_test.c
1233
ATF_TP_ADD_TC(tp, bundle);
tests/sys/kern/unix_passfd_test.c
655
ATF_TC_WITHOUT_HEAD(bundle);
tests/sys/kern/unix_passfd_test.c
656
ATF_TC_BODY(bundle, tc)
usr.sbin/ppp/acf.c
59
acf_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/acf.c
73
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
147
arp_SetProxy(struct bundle *bundle, struct in_addr addr)
usr.sbin/ppp/arp.c
149
return (arp_ProxySub(bundle, addr, 1));
usr.sbin/ppp/arp.c
156
arp_ClearProxy(struct bundle *bundle, struct in_addr addr)
usr.sbin/ppp/arp.c
158
return (arp_ProxySub(bundle, addr, 0));
usr.sbin/ppp/arp.c
167
arp_SetProxy(struct bundle *bundle, struct in_addr addr, int s)
usr.sbin/ppp/arp.c
204
arp_ClearProxy(struct bundle *bundle, struct in_addr addr, int s)
usr.sbin/ppp/arp.h
32
struct bundle;
usr.sbin/ppp/arp.h
34
extern int arp_ClearProxy(struct bundle *, struct in_addr);
usr.sbin/ppp/arp.h
35
extern int arp_SetProxy(struct bundle *, struct in_addr);
usr.sbin/ppp/async.c
102
async_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/async.c
189
async_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/async.h
47
struct bundle;
usr.sbin/ppp/auth.c
215
auth_Select(struct bundle *bundle, const char *name)
usr.sbin/ppp/auth.c
223
ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE);
usr.sbin/ppp/auth.c
228
if (bundle->radius.valid && bundle->radius.ip.s_addr != INADDR_NONE &&
usr.sbin/ppp/auth.c
229
bundle->radius.ip.s_addr != RADIUS_INADDR_POOL) {
usr.sbin/ppp/auth.c
231
if (!ipcp_UseHisIPaddr(bundle, bundle->radius.ip))
usr.sbin/ppp/auth.c
233
ipcp_Setup(&bundle->ncp.ipcp, bundle->radius.mask.s_addr);
usr.sbin/ppp/auth.c
255
if (!bundle->radius.valid || bundle->radius.ip.s_addr == INADDR_NONE) {
usr.sbin/ppp/auth.c
258
!ipcp_UseHisaddr(bundle, vector[2], 1))
usr.sbin/ppp/auth.c
260
ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE);
usr.sbin/ppp/auth.c
265
bundle_SetLabel(bundle, vector[3]);
usr.sbin/ppp/auth.c
282
ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE);
usr.sbin/ppp/auth.c
286
if (bundle->radius.valid)
usr.sbin/ppp/auth.c
296
auth_Validate(struct bundle *bundle, const char *name, const char *key)
usr.sbin/ppp/auth.c
339
if (Enabled(bundle, OPT_PASSWDAUTH))
usr.sbin/ppp/auth.h
32
struct bundle;
usr.sbin/ppp/auth.h
63
extern int auth_Validate(struct bundle *, const char *, const char *);
usr.sbin/ppp/auth.h
66
extern int auth_Select(struct bundle *, const char *);
usr.sbin/ppp/bundle.c
1004
bundle2datalink(struct bundle *bundle, const char *name)
usr.sbin/ppp/bundle.c
1009
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
1012
} else if (bundle->links && !bundle->links->next)
usr.sbin/ppp/bundle.c
1013
return bundle->links;
usr.sbin/ppp/bundle.c
1026
for (dl = arg->bundle->links; dl; dl = dl->next) {
usr.sbin/ppp/bundle.c
1040
t = &arg->bundle->ncp.mp.link.stats.total;
usr.sbin/ppp/bundle.c
1053
optval(struct bundle *bundle, int opt)
usr.sbin/ppp/bundle.c
1055
return Enabled(bundle, opt) ? "enabled" : "disabled";
usr.sbin/ppp/bundle.c
1063
prompt_Printf(arg->prompt, "Phase %s\n", bundle_PhaseName(arg->bundle));
usr.sbin/ppp/bundle.c
1064
prompt_Printf(arg->prompt, " Device: %s\n", arg->bundle->dev.Name);
usr.sbin/ppp/bundle.c
1066
arg->bundle->iface->name, arg->bundle->bandwidth);
usr.sbin/ppp/bundle.c
1068
if (arg->bundle->upat) {
usr.sbin/ppp/bundle.c
1069
int secs = bundle_Uptime(arg->bundle);
usr.sbin/ppp/bundle.c
1075
(unsigned long)ncp_QueueLen(&arg->bundle->ncp),
usr.sbin/ppp/bundle.c
1076
arg->bundle->cfg.ifqueue);
usr.sbin/ppp/bundle.c
108
static int bundle_RemainingIdleTime(struct bundle *);
usr.sbin/ppp/bundle.c
1080
arg->bundle->cfg.label);
usr.sbin/ppp/bundle.c
1082
arg->bundle->cfg.auth.name);
usr.sbin/ppp/bundle.c
1096
arg->bundle->cfg.choked.timeout);
usr.sbin/ppp/bundle.c
1099
radius_Show(&arg->bundle->radius, arg->prompt);
usr.sbin/ppp/bundle.c
1103
if (arg->bundle->cfg.idle.timeout) {
usr.sbin/ppp/bundle.c
1104
prompt_Printf(arg->prompt, "%us", arg->bundle->cfg.idle.timeout);
usr.sbin/ppp/bundle.c
1105
if (arg->bundle->cfg.idle.min_timeout)
usr.sbin/ppp/bundle.c
1107
arg->bundle->cfg.idle.min_timeout);
usr.sbin/ppp/bundle.c
1108
remaining = bundle_RemainingIdleTime(arg->bundle);
usr.sbin/ppp/bundle.c
1116
optval(arg->bundle, OPT_FILTERDECAP));
usr.sbin/ppp/bundle.c
1118
optval(arg->bundle, OPT_IDCHECK));
usr.sbin/ppp/bundle.c
1120
optval(arg->bundle, OPT_IFACEALIAS));
usr.sbin/ppp/bundle.c
1123
optval(arg->bundle, OPT_IPCP));
usr.sbin/ppp/bundle.c
1125
optval(arg->bundle, OPT_IPV6CP));
usr.sbin/ppp/bundle.c
1128
optval(arg->bundle, OPT_KEEPSESSION));
usr.sbin/ppp/bundle.c
1130
optval(arg->bundle, OPT_LOOPBACK));
usr.sbin/ppp/bundle.c
1132
optval(arg->bundle, OPT_PASSWDAUTH));
usr.sbin/ppp/bundle.c
1134
optval(arg->bundle, OPT_PROXY));
usr.sbin/ppp/bundle.c
1136
optval(arg->bundle, OPT_PROXYALL));
usr.sbin/ppp/bundle.c
1138
optval(arg->bundle, OPT_SROUTES));
usr.sbin/ppp/bundle.c
1140
optval(arg->bundle, OPT_TCPMSSFIXUP));
usr.sbin/ppp/bundle.c
1142
optval(arg->bundle, OPT_THROUGHPUT));
usr.sbin/ppp/bundle.c
1144
optval(arg->bundle, OPT_UTMP));
usr.sbin/ppp/bundle.c
1146
optval(arg->bundle, OPT_NAS_IP_ADDRESS));
usr.sbin/ppp/bundle.c
1148
optval(arg->bundle, OPT_NAS_IDENTIFIER));
usr.sbin/ppp/bundle.c
115
bundle_PhaseName(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1156
struct bundle *bundle = (struct bundle *)v;
usr.sbin/ppp/bundle.c
1159
bundle_StopIdleTimer(bundle);
usr.sbin/ppp/bundle.c
1160
bundle_Close(bundle, NULL, CLOSE_STAYDOWN);
usr.sbin/ppp/bundle.c
1168
bundle_StartIdleTimer(struct bundle *bundle, unsigned secs)
usr.sbin/ppp/bundle.c
117
return bundle->phase <= PHASE_TERMINATE ?
usr.sbin/ppp/bundle.c
1170
timer_Stop(&bundle->idle.timer);
usr.sbin/ppp/bundle.c
1171
if ((bundle->phys_type.open & (PHYS_DEDICATED|PHYS_DDIAL)) !=
usr.sbin/ppp/bundle.c
1172
bundle->phys_type.open && bundle->cfg.idle.timeout) {
usr.sbin/ppp/bundle.c
1176
secs = bundle->cfg.idle.timeout;
usr.sbin/ppp/bundle.c
1179
if (bundle->cfg.idle.min_timeout > secs && bundle->upat) {
usr.sbin/ppp/bundle.c
118
PhaseNames[bundle->phase] : "unknown";
usr.sbin/ppp/bundle.c
1180
unsigned up = now - bundle->upat;
usr.sbin/ppp/bundle.c
1182
if (bundle->cfg.idle.min_timeout > up &&
usr.sbin/ppp/bundle.c
1183
bundle->cfg.idle.min_timeout - up > (long long)secs)
usr.sbin/ppp/bundle.c
1185
secs = bundle->cfg.idle.min_timeout - up;
usr.sbin/ppp/bundle.c
1187
bundle->idle.timer.func = bundle_IdleTimeout;
usr.sbin/ppp/bundle.c
1188
bundle->idle.timer.name = "idle";
usr.sbin/ppp/bundle.c
1189
bundle->idle.timer.load = secs * SECTICKS;
usr.sbin/ppp/bundle.c
1190
bundle->idle.timer.arg = bundle;
usr.sbin/ppp/bundle.c
1191
timer_Start(&bundle->idle.timer);
usr.sbin/ppp/bundle.c
1192
bundle->idle.done = now + secs;
usr.sbin/ppp/bundle.c
1197
bundle_SetIdleTimer(struct bundle *bundle, unsigned timeout,
usr.sbin/ppp/bundle.c
1200
bundle->cfg.idle.timeout = timeout;
usr.sbin/ppp/bundle.c
1201
bundle->cfg.idle.min_timeout = min_timeout;
usr.sbin/ppp/bundle.c
1202
if (ncp_LayersOpen(&bundle->ncp))
usr.sbin/ppp/bundle.c
1203
bundle_StartIdleTimer(bundle, 0);
usr.sbin/ppp/bundle.c
1207
bundle_StopIdleTimer(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1209
timer_Stop(&bundle->idle.timer);
usr.sbin/ppp/bundle.c
1210
bundle->idle.done = 0;
usr.sbin/ppp/bundle.c
1214
bundle_RemainingIdleTime(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1216
if (bundle->idle.done)
usr.sbin/ppp/bundle.c
1217
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
1226
struct bundle *bundle = (struct bundle *)v;
usr.sbin/ppp/bundle.c
1229
bundle_StopSessionTimer(bundle);
usr.sbin/ppp/bundle.c
1230
bundle_Close(bundle, NULL, CLOSE_STAYDOWN);
usr.sbin/ppp/bundle.c
1234
bundle_StartSessionTimer(struct bundle *bundle, unsigned secs)
usr.sbin/ppp/bundle.c
1236
timer_Stop(&bundle->session.timer);
usr.sbin/ppp/bundle.c
1237
if ((bundle->phys_type.open & (PHYS_DEDICATED|PHYS_DDIAL)) !=
usr.sbin/ppp/bundle.c
1238
bundle->phys_type.open && bundle->radius.sessiontime) {
usr.sbin/ppp/bundle.c
124
if (new == bundle->phase)
usr.sbin/ppp/bundle.c
1242
secs = bundle->radius.sessiontime;
usr.sbin/ppp/bundle.c
1244
bundle->session.timer.func = bundle_SessionTimeout;
usr.sbin/ppp/bundle.c
1245
bundle->session.timer.name = "session";
usr.sbin/ppp/bundle.c
1246
bundle->session.timer.load = secs * SECTICKS;
usr.sbin/ppp/bundle.c
1247
bundle->session.timer.arg = bundle;
usr.sbin/ppp/bundle.c
1248
timer_Start(&bundle->session.timer);
usr.sbin/ppp/bundle.c
1249
bundle->session.done = now + secs;
usr.sbin/ppp/bundle.c
1254
bundle_StopSessionTimer(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1256
timer_Stop(&bundle->session.timer);
usr.sbin/ppp/bundle.c
1257
bundle->session.done = 0;
usr.sbin/ppp/bundle.c
1263
bundle_IsDead(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1265
return !bundle->links || (bundle->phase == PHASE_DEAD && bundle->CleaningUp);
usr.sbin/ppp/bundle.c
1269
bundle_DatalinkLinkout(struct bundle *bundle, struct datalink *dl)
usr.sbin/ppp/bundle.c
1273
for (dlp = &bundle->links; *dlp; dlp = &(*dlp)->next)
usr.sbin/ppp/bundle.c
1277
bundle_LinksRemoved(bundle);
usr.sbin/ppp/bundle.c
1285
bundle_DatalinkLinkin(struct bundle *bundle, struct datalink *dl)
usr.sbin/ppp/bundle.c
1287
struct datalink **dlp = &bundle->links;
usr.sbin/ppp/bundle.c
1295
bundle_LinkAdded(bundle, dl);
usr.sbin/ppp/bundle.c
1296
mp_CheckAutoloadTimer(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
1300
bundle_CleanDatalinks(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1302
struct datalink **dlp = &bundle->links;
usr.sbin/ppp/bundle.c
1315
bundle_LinksRemoved(bundle);
usr.sbin/ppp/bundle.c
1319
bundle_DatalinkClone(struct bundle *bundle, struct datalink *dl,
usr.sbin/ppp/bundle.c
132
bundle->phase = new;
usr.sbin/ppp/bundle.c
1322
if (bundle2datalink(bundle, name)) {
usr.sbin/ppp/bundle.c
1327
bundle_DatalinkLinkin(bundle, datalink_Clone(dl, name));
usr.sbin/ppp/bundle.c
1332
bundle_DatalinkRemove(struct bundle *bundle, struct datalink *dl)
usr.sbin/ppp/bundle.c
1334
dl = bundle_DatalinkLinkout(bundle, dl);
usr.sbin/ppp/bundle.c
1340
bundle_SetLabel(struct bundle *bundle, const char *label)
usr.sbin/ppp/bundle.c
1343
strncpy(bundle->cfg.label, label, sizeof bundle->cfg.label - 1);
usr.sbin/ppp/bundle.c
1345
*bundle->cfg.label = '\0';
usr.sbin/ppp/bundle.c
1349
bundle_GetLabel(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1351
return *bundle->cfg.label ? bundle->cfg.label : NULL;
usr.sbin/ppp/bundle.c
1375
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
1510
dl = iov2datalink(bundle, iov, &niov, sizeof iov / sizeof *iov, fd[0],
usr.sbin/ppp/bundle.c
1522
bundle_DatalinkLinkin(bundle, dl);
usr.sbin/ppp/bundle.c
1524
bundle_CalculateBandwidth(dl->bundle);
usr.sbin/ppp/bundle.c
154
bundle_Close(bundle, NULL, CLOSE_STAYDOWN);
usr.sbin/ppp/bundle.c
1559
bundle_LinkClosed(dl->bundle, dl);
usr.sbin/ppp/bundle.c
1560
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
1651
newsid = Enabled(dl->bundle, OPT_KEEPSESSION) ||
usr.sbin/ppp/bundle.c
1656
bundle_setsid(dl->bundle, got != -1);
usr.sbin/ppp/bundle.c
1665
bundle_RenameDatalink(struct bundle *bundle, struct datalink *ndl,
usr.sbin/ppp/bundle.c
1673
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
1682
bundle_SetMode(struct bundle *bundle, struct datalink *dl, int mode)
usr.sbin/ppp/bundle.c
1690
if (mode == PHYS_AUTO && !(bundle->phys_type.all & PHYS_AUTO))
usr.sbin/ppp/bundle.c
1692
if (bundle->ncp.ipcp.peer_ip.s_addr == INADDR_ANY) {
usr.sbin/ppp/bundle.c
1701
if (mode == PHYS_AUTO && !(bundle->phys_type.all & PHYS_AUTO) &&
usr.sbin/ppp/bundle.c
1702
bundle->phase != PHASE_NETWORK)
usr.sbin/ppp/bundle.c
1704
ipcp_InterfaceUp(&bundle->ncp.ipcp);
usr.sbin/ppp/bundle.c
1707
bundle_LinksRemoved(bundle);
usr.sbin/ppp/bundle.c
1713
bundle_setsid(struct bundle *bundle, int holdsession)
usr.sbin/ppp/bundle.c
1725
if (!holdsession && bundle_IsDead(bundle)) {
usr.sbin/ppp/bundle.c
174
bundle_Notify(struct bundle *bundle, char c)
usr.sbin/ppp/bundle.c
176
if (bundle->notify.fd != -1) {
usr.sbin/ppp/bundle.c
1762
bundle_LockTun(bundle); /* update pid */
usr.sbin/ppp/bundle.c
1766
bundle_ChangedPID(bundle);
usr.sbin/ppp/bundle.c
1775
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
1787
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
1830
bundle_HighestState(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1835
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
1843
bundle_Exception(struct bundle *bundle, int fd)
usr.sbin/ppp/bundle.c
1847
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
1857
bundle_AdjustFilters(struct bundle *bundle, struct ncpaddr *local,
usr.sbin/ppp/bundle.c
186
close(bundle->notify.fd);
usr.sbin/ppp/bundle.c
1860
filter_AdjustAddr(&bundle->filter.in, local, remote, NULL);
usr.sbin/ppp/bundle.c
1861
filter_AdjustAddr(&bundle->filter.out, local, remote, NULL);
usr.sbin/ppp/bundle.c
1862
filter_AdjustAddr(&bundle->filter.dial, local, remote, NULL);
usr.sbin/ppp/bundle.c
1863
filter_AdjustAddr(&bundle->filter.alive, local, remote, NULL);
usr.sbin/ppp/bundle.c
1867
bundle_AdjustDNS(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1869
struct in_addr *dns = bundle->ncp.ipcp.ns.dns;
usr.sbin/ppp/bundle.c
187
bundle->notify.fd = -1;
usr.sbin/ppp/bundle.c
1871
filter_AdjustAddr(&bundle->filter.in, NULL, NULL, dns);
usr.sbin/ppp/bundle.c
1872
filter_AdjustAddr(&bundle->filter.out, NULL, NULL, dns);
usr.sbin/ppp/bundle.c
1873
filter_AdjustAddr(&bundle->filter.dial, NULL, NULL, dns);
usr.sbin/ppp/bundle.c
1874
filter_AdjustAddr(&bundle->filter.alive, NULL, NULL, dns);
usr.sbin/ppp/bundle.c
1878
bundle_CalculateBandwidth(struct bundle *bundle)
usr.sbin/ppp/bundle.c
1883
bundle->bandwidth = 0;
usr.sbin/ppp/bundle.c
1884
bundle->iface->mtu = 0;
usr.sbin/ppp/bundle.c
1887
for (dl = bundle->links; dl; dl = dl->next) {
usr.sbin/ppp/bundle.c
1897
bundle->bandwidth += sp;
usr.sbin/ppp/bundle.c
1898
if (!bundle->ncp.mp.active) {
usr.sbin/ppp/bundle.c
1899
bundle->iface->mtu = dl->physical->link.lcp.his_mru;
usr.sbin/ppp/bundle.c
1905
if (bundle->bandwidth == 0)
usr.sbin/ppp/bundle.c
1906
bundle->bandwidth = 115200; /* Shrug */
usr.sbin/ppp/bundle.c
1908
if (bundle->ncp.mp.active) {
usr.sbin/ppp/bundle.c
1909
bundle->iface->mtu = bundle->ncp.mp.peer_mrru;
usr.sbin/ppp/bundle.c
1910
overhead = ccp_MTUOverhead(&bundle->ncp.mp.link.ccp);
usr.sbin/ppp/bundle.c
1913
} else if (!bundle->iface->mtu)
usr.sbin/ppp/bundle.c
1914
bundle->iface->mtu = DEF_MRU;
usr.sbin/ppp/bundle.c
1917
if (bundle->radius.valid && bundle->radius.mtu &&
usr.sbin/ppp/bundle.c
1918
bundle->radius.mtu < bundle->iface->mtu) {
usr.sbin/ppp/bundle.c
1920
bundle->radius.mtu);
usr.sbin/ppp/bundle.c
1921
bundle->iface->mtu = bundle->radius.mtu;
usr.sbin/ppp/bundle.c
1927
bundle->iface->mtu, bundle->iface->mtu - maxoverhead);
usr.sbin/ppp/bundle.c
1928
bundle->iface->mtu -= maxoverhead;
usr.sbin/ppp/bundle.c
1931
tun_configure(bundle);
usr.sbin/ppp/bundle.c
1933
route_UpdateMTU(bundle);
usr.sbin/ppp/bundle.c
1937
bundle_AutoAdjust(struct bundle *bundle, int percent, int what)
usr.sbin/ppp/bundle.c
1942
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
1968
mp_CheckAutoloadTimer(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
1973
mp_CheckAutoloadTimer(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
1979
bundle_WantAutoloadTimer(struct bundle *bundle)
usr.sbin/ppp/bundle.c
198
struct bundle *bundle = (struct bundle *)v;
usr.sbin/ppp/bundle.c
1984
if (bundle->phase == PHASE_NETWORK) {
usr.sbin/ppp/bundle.c
1985
for (autolink = opened = 0, dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.c
2002
bundle_ChangedPID(struct bundle *bundle)
usr.sbin/ppp/bundle.c
2005
ioctl(bundle->dev.fd, TUNSIFPID, 0);
usr.sbin/ppp/bundle.c
2010
bundle_Uptime(struct bundle *bundle)
usr.sbin/ppp/bundle.c
2012
if (bundle->upat)
usr.sbin/ppp/bundle.c
2013
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(pidfile, sizeof pidfile, "%stun%d.pid", _PATH_VARRUN, bundle->unit);
usr.sbin/ppp/bundle.c
685
bundle_UnlockTun(struct bundle *bundle)
usr.sbin/ppp/bundle.c
689
snprintf(pidfile, sizeof pidfile, "%stun%d.pid", _PATH_VARRUN, bundle->unit);
usr.sbin/ppp/bundle.c
693
struct bundle *
usr.sbin/ppp/bundle.c
696
static struct bundle bundle; /* there can be only one */
usr.sbin/ppp/bundle.c
706
if (bundle.iface != NULL) { /* Already allocated ! */
usr.sbin/ppp/bundle.c
723
for (bundle.unit = minunit; bundle.unit != maxunit; bundle.unit++) {
usr.sbin/ppp/bundle.c
724
snprintf(bundle.dev.Name, sizeof bundle.dev.Name, "%s%d",
usr.sbin/ppp/bundle.c
725
prefix, bundle.unit);
usr.sbin/ppp/bundle.c
726
bundle.dev.fd = ID0open(bundle.dev.Name, O_RDWR);
usr.sbin/ppp/bundle.c
727
if (bundle.dev.fd >= 0)
usr.sbin/ppp/bundle.c
731
if (bundle.unit == minunit && !kldtried++) {
usr.sbin/ppp/bundle.c
737
bundle.unit--;
usr.sbin/ppp/bundle.c
749
if (bundle.dev.fd < 0) {
usr.sbin/ppp/bundle.c
758
log_SetTun(bundle.unit, NULL);
usr.sbin/ppp/bundle.c
760
ifname = strrchr(bundle.dev.Name, '/');
usr.sbin/ppp/bundle.c
762
ifname = bundle.dev.Name;
usr.sbin/ppp/bundle.c
766
bundle.iface = iface_Create(ifname);
usr.sbin/ppp/bundle.c
767
if (bundle.iface == NULL) {
usr.sbin/ppp/bundle.c
768
close(bundle.dev.fd);
usr.sbin/ppp/bundle.c
775
if (ID0ioctl(bundle.dev.fd, TUNSIFMODE, &iff) < 0)
usr.sbin/ppp/bundle.c
783
if (ID0ioctl(bundle.dev.fd, TUNSLMODE, &iff) < 0)
usr.sbin/ppp/bundle.c
791
if (ID0ioctl(bundle.dev.fd, TUNSIFHEAD, &iff) < 0) {
usr.sbin/ppp/bundle.c
794
bundle.dev.header = 0;
usr.sbin/ppp/bundle.c
796
bundle.dev.header = 1;
usr.sbin/ppp/bundle.c
800
bundle.dev.header = 1;
usr.sbin/ppp/bundle.c
807
bundle.dev.header = 0;
usr.sbin/ppp/bundle.c
813
bundle.bandwidth = 0;
usr.sbin/ppp/bundle.c
814
bundle.routing_seq = 0;
usr.sbin/ppp/bundle.c
815
bundle.phase = PHASE_DEAD;
usr.sbin/ppp/bundle.c
816
bundle.CleaningUp = 0;
usr.sbin/ppp/bundle.c
817
bundle.NatEnabled = 0;
usr.sbin/ppp/bundle.c
819
bundle.fsm.LayerStart = bundle_LayerStart;
usr.sbin/ppp/bundle.c
820
bundle.fsm.LayerUp = bundle_LayerUp;
usr.sbin/ppp/bundle.c
821
bundle.fsm.LayerDown = bundle_LayerDown;
usr.sbin/ppp/bundle.c
822
bundle.fsm.LayerFinish = bundle_LayerFinish;
usr.sbin/ppp/bundle.c
823
bundle.fsm.object = &bundle;
usr.sbin/ppp/bundle.c
825
bundle.cfg.idle.timeout = NCP_IDLE_TIMEOUT;
usr.sbin/ppp/bundle.c
826
bundle.cfg.idle.min_timeout = 0;
usr.sbin/ppp/bundle.c
827
*bundle.cfg.auth.name = '\0';
usr.sbin/ppp/bundle.c
828
*bundle.cfg.auth.key = '\0';
usr.sbin/ppp/bundle.c
829
bundle.cfg.optmask = (1ull << OPT_IDCHECK) | (1ull << OPT_LOOPBACK) |
usr.sbin/ppp/bundle.c
835
opt_enable(&bundle, OPT_IPCP);
usr.sbin/ppp/bundle.c
837
opt_enable(&bundle, OPT_IPV6CP);
usr.sbin/ppp/bundle.c
839
*bundle.cfg.label = '\0';
usr.sbin/ppp/bundle.c
840
bundle.cfg.ifqueue = DEF_IFQUEUE;
usr.sbin/ppp/bundle.c
841
bundle.cfg.choked.timeout = CHOKED_TIMEOUT;
usr.sbin/ppp/bundle.c
842
bundle.phys_type.all = type;
usr.sbin/ppp/bundle.c
843
bundle.phys_type.open = 0;
usr.sbin/ppp/bundle.c
844
bundle.upat = 0;
usr.sbin/ppp/bundle.c
846
bundle.links = datalink_Create("deflink", &bundle, type);
usr.sbin/ppp/bundle.c
847
if (bundle.links == NULL) {
usr.sbin/ppp/bundle.c
849
iface_Free(bundle.iface);
usr.sbin/ppp/bundle.c
850
bundle.iface = NULL;
usr.sbin/ppp/bundle.c
851
close(bundle.dev.fd);
usr.sbin/ppp/bundle.c
855
bundle.desc.type = BUNDLE_DESCRIPTOR;
usr.sbin/ppp/bundle.c
856
bundle.desc.UpdateSet = bundle_UpdateSet;
usr.sbin/ppp/bundle.c
857
bundle.desc.IsSet = bundle_IsSet;
usr.sbin/ppp/bundle.c
858
bundle.desc.Read = bundle_DescriptorRead;
usr.sbin/ppp/bundle.c
859
bundle.desc.Write = bundle_DescriptorWrite;
usr.sbin/ppp/bundle.c
861
ncp_Init(&bundle.ncp, &bundle);
usr.sbin/ppp/bundle.c
863
memset(&bundle.filter, '\0', sizeof bundle.filter);
usr.sbin/ppp/bundle.c
864
bundle.filter.in.fragok = bundle.filter.in.logok = 1;
usr.sbin/ppp/bundle.c
865
bundle.filter.in.name = "IN";
usr.sbin/ppp/bundle.c
866
bundle.filter.out.fragok = bundle.filter.out.logok = 1;
usr.sbin/ppp/bundle.c
867
bundle.filter.out.name = "OUT";
usr.sbin/ppp/bundle.c
868
bundle.filter.dial.name = "DIAL";
usr.sbin/ppp/bundle.c
869
bundle.filter.dial.logok = 1;
usr.sbin/ppp/bundle.c
870
bundle.filter.alive.name = "ALIVE";
usr.sbin/ppp/bundle.c
871
bundle.filter.alive.logok = 1;
usr.sbin/ppp/bundle.c
875
bundle.filter.in.rule[i].f_action = A_NONE;
usr.sbin/ppp/bundle.c
876
bundle.filter.out.rule[i].f_action = A_NONE;
usr.sbin/ppp/bundle.c
877
bundle.filter.dial.rule[i].f_action = A_NONE;
usr.sbin/ppp/bundle.c
878
bundle.filter.alive.rule[i].f_action = A_NONE;
usr.sbin/ppp/bundle.c
881
memset(&bundle.idle.timer, '\0', sizeof bundle.idle.timer);
usr.sbin/ppp/bundle.c
882
bundle.idle.done = 0;
usr.sbin/ppp/bundle.c
883
bundle.notify.fd = -1;
usr.sbin/ppp/bundle.c
884
memset(&bundle.choked.timer, '\0', sizeof bundle.choked.timer);
usr.sbin/ppp/bundle.c
886
radius_Init(&bundle.radius);
usr.sbin/ppp/bundle.c
890
iface_Clear(bundle.iface, &bundle.ncp, 0, IFACE_CLEAR_ALL);
usr.sbin/ppp/bundle.c
892
bundle_LockTun(&bundle);
usr.sbin/ppp/bundle.c
894
return &bundle;
usr.sbin/ppp/bundle.c
898
bundle_DownInterface(struct bundle *bundle)
usr.sbin/ppp/bundle.c
900
route_IfDelete(bundle, 1);
usr.sbin/ppp/bundle.c
901
iface_ClearFlags(bundle->iface->name, IFF_UP);
usr.sbin/ppp/bundle.c
905
bundle_Destroy(struct bundle *bundle)
usr.sbin/ppp/bundle.c
914
timer_Stop(&bundle->idle.timer);
usr.sbin/ppp/bundle.c
915
timer_Stop(&bundle->choked.timer);
usr.sbin/ppp/bundle.c
916
mp_Down(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
917
iface_Clear(bundle->iface, &bundle->ncp, 0, IFACE_CLEAR_ALL);
usr.sbin/ppp/bundle.c
918
bundle_DownInterface(bundle);
usr.sbin/ppp/bundle.c
922
radius_Destroy(&bundle->radius);
usr.sbin/ppp/bundle.c
926
dl = bundle->links;
usr.sbin/ppp/bundle.c
930
ncp_Destroy(&bundle->ncp);
usr.sbin/ppp/bundle.c
932
close(bundle->dev.fd);
usr.sbin/ppp/bundle.c
933
bundle_UnlockTun(bundle);
usr.sbin/ppp/bundle.c
936
bundle_Notify(bundle, EX_ERRDEAD);
usr.sbin/ppp/bundle.c
938
iface_Destroy(bundle->iface);
usr.sbin/ppp/bundle.c
939
bundle->iface = NULL;
usr.sbin/ppp/bundle.c
943
bundle_LinkClosed(struct bundle *bundle, struct datalink *dl)
usr.sbin/ppp/bundle.c
960
for (odl = bundle->links; odl; odl = odl->next)
usr.sbin/ppp/bundle.c
966
bundle_DownInterface(bundle);
usr.sbin/ppp/bundle.c
967
ncp2initial(&bundle->ncp);
usr.sbin/ppp/bundle.c
968
mp_Down(&bundle->ncp.mp);
usr.sbin/ppp/bundle.c
969
bundle_NewPhase(bundle, PHASE_DEAD);
usr.sbin/ppp/bundle.c
971
if (bundle->radius.sessiontime)
usr.sbin/ppp/bundle.c
972
bundle_StopSessionTimer(bundle);
usr.sbin/ppp/bundle.c
974
bundle_StopIdleTimer(bundle);
usr.sbin/ppp/bundle.c
979
bundle_Open(struct bundle *bundle, const char *name, int mask, int force)
usr.sbin/ppp/bundle.c
986
for (dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/bundle.h
161
((d)->type == BUNDLE_DESCRIPTOR ? (struct bundle *)(d) : NULL)
usr.sbin/ppp/bundle.h
163
extern struct bundle *bundle_Create(const char *, int, int);
usr.sbin/ppp/bundle.h
164
extern void bundle_Destroy(struct bundle *);
usr.sbin/ppp/bundle.h
165
extern const char *bundle_PhaseName(struct bundle *);
usr.sbin/ppp/bundle.h
167
extern void bundle_NewPhase(struct bundle *, u_int);
usr.sbin/ppp/bundle.h
168
extern void bundle_LinksRemoved(struct bundle *);
usr.sbin/ppp/bundle.h
169
extern void bundle_Close(struct bundle *, const char *, int);
usr.sbin/ppp/bundle.h
170
extern void bundle_Down(struct bundle *, int);
usr.sbin/ppp/bundle.h
171
extern void bundle_Open(struct bundle *, const char *, int, int);
usr.sbin/ppp/bundle.h
172
extern void bundle_LinkClosed(struct bundle *, struct datalink *);
usr.sbin/ppp/bundle.h
176
extern void bundle_StartIdleTimer(struct bundle *, unsigned secs);
usr.sbin/ppp/bundle.h
177
extern void bundle_SetIdleTimer(struct bundle *, unsigned, unsigned);
usr.sbin/ppp/bundle.h
178
extern void bundle_StopIdleTimer(struct bundle *);
usr.sbin/ppp/bundle.h
179
extern int bundle_IsDead(struct bundle *);
usr.sbin/ppp/bundle.h
180
extern struct datalink *bundle2datalink(struct bundle *, const char *);
usr.sbin/ppp/bundle.h
183
extern void bundle_StartSessionTimer(struct bundle *, unsigned secs);
usr.sbin/ppp/bundle.h
184
extern void bundle_StopSessionTimer(struct bundle *);
usr.sbin/ppp/bundle.h
187
extern void bundle_RegisterDescriptor(struct bundle *, struct fdescriptor *);
usr.sbin/ppp/bundle.h
188
extern void bundle_UnRegisterDescriptor(struct bundle *, struct fdescriptor *);
usr.sbin/ppp/bundle.h
190
extern void bundle_SetTtyCommandMode(struct bundle *, struct datalink *);
usr.sbin/ppp/bundle.h
192
extern int bundle_DatalinkClone(struct bundle *, struct datalink *,
usr.sbin/ppp/bundle.h
194
extern void bundle_DatalinkRemove(struct bundle *, struct datalink *);
usr.sbin/ppp/bundle.h
195
extern void bundle_CleanDatalinks(struct bundle *);
usr.sbin/ppp/bundle.h
196
extern void bundle_SetLabel(struct bundle *, const char *);
usr.sbin/ppp/bundle.h
197
extern const char *bundle_GetLabel(struct bundle *);
usr.sbin/ppp/bundle.h
200
extern void bundle_ReceiveDatalink(struct bundle *, int);
usr.sbin/ppp/bundle.h
201
extern int bundle_SetMode(struct bundle *, struct datalink *, int);
usr.sbin/ppp/bundle.h
202
extern int bundle_RenameDatalink(struct bundle *, struct datalink *,
usr.sbin/ppp/bundle.h
204
extern void bundle_setsid(struct bundle *, int);
usr.sbin/ppp/bundle.h
205
extern void bundle_LockTun(struct bundle *);
usr.sbin/ppp/bundle.h
206
extern unsigned bundle_HighestState(struct bundle *);
usr.sbin/ppp/bundle.h
207
extern int bundle_Exception(struct bundle *, int);
usr.sbin/ppp/bundle.h
208
extern void bundle_AdjustFilters(struct bundle *, struct ncpaddr *,
usr.sbin/ppp/bundle.h
210
extern void bundle_AdjustDNS(struct bundle *);
usr.sbin/ppp/bundle.h
211
extern void bundle_CalculateBandwidth(struct bundle *);
usr.sbin/ppp/bundle.h
212
extern void bundle_AutoAdjust(struct bundle *, int, int);
usr.sbin/ppp/bundle.h
213
extern int bundle_WantAutoloadTimer(struct bundle *);
usr.sbin/ppp/bundle.h
214
extern void bundle_ChangedPID(struct bundle *);
usr.sbin/ppp/bundle.h
215
extern void bundle_Notify(struct bundle *, char);
usr.sbin/ppp/bundle.h
216
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
622
cbcp_Input(struct bundle *bundle __unused, struct link *l, struct mbuf *bp)
usr.sbin/ppp/cbcp.h
63
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
378
(*algorithm[f]->o.OptInit)(fp->bundle, &(*o)->val, &ccp->cfg);
usr.sbin/ppp/ccp.c
527
(fp->bundle, &ccp->in.opt);
usr.sbin/ppp/ccp.c
546
(fp->bundle, &(*o)->val);
usr.sbin/ppp/ccp.c
608
switch ((*algorithm[f]->i.Set)(fp->bundle, &ccp->in.opt, &ccp->cfg)) {
usr.sbin/ppp/ccp.c
634
if ((*algorithm[f]->o.Set)(fp->bundle, &o->val, &ccp->cfg) ==
usr.sbin/ppp/ccp.c
674
ccp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/ccp.c
678
if (bundle_Phase(bundle) == PHASE_NETWORK)
usr.sbin/ppp/ccp.c
681
if (bundle_Phase(bundle) < PHASE_NETWORK)
usr.sbin/ppp/ccp.c
683
l->ccp.fsm.link->name, bundle_PhaseName(bundle));
usr.sbin/ppp/ccp.c
718
ccp_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/ccp.c
748
ccp_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/ccp.c
790
return !link2physical(ccp->fsm.link) || !ccp->fsm.bundle->ncp.mp.active ?
usr.sbin/ppp/ccp.h
130
int (*Set)(struct bundle *, struct fsm_opt *, const struct ccp_config *);
usr.sbin/ppp/ccp.h
131
void *(*Init)(struct bundle *, struct fsm_opt *);
usr.sbin/ppp/ccp.h
139
void (*OptInit)(struct bundle *, struct fsm_opt *,
usr.sbin/ppp/ccp.h
141
int (*Set)(struct bundle *, struct fsm_opt *, const struct ccp_config *);
usr.sbin/ppp/ccp.h
142
void *(*Init)(struct bundle *, struct fsm_opt *);
usr.sbin/ppp/ccp.h
150
extern void ccp_Init(struct ccp *, struct bundle *, struct link *,
usr.sbin/ppp/ccp.h
157
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
693
chap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/chap.c
711
if (bundle_Phase(bundle) != PHASE_NETWORK &&
usr.sbin/ppp/chap.c
712
bundle_Phase(bundle) != PHASE_AUTHENTICATE) {
usr.sbin/ppp/chap.c
731
Enabled(bundle, OPT_IDCHECK)) {
usr.sbin/ppp/chap.c
837
if (*bundle->cfg.auth.key == '!' && bundle->cfg.auth.key[1] != '!')
usr.sbin/ppp/chap.c
838
chap_StartChild(chap, bundle->cfg.auth.key + 1,
usr.sbin/ppp/chap.c
839
bundle->cfg.auth.name);
usr.sbin/ppp/chap.c
841
chap_Respond(chap, bundle->cfg.auth.name, bundle->cfg.auth.key +
usr.sbin/ppp/chap.c
842
(*bundle->cfg.auth.key == '!' ? 1 : 0)
usr.sbin/ppp/chap.c
864
if (*bundle->radius.cfg.file) {
usr.sbin/ppp/chap.c
865
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
379
chat_Read(struct fdescriptor *d, struct bundle *bundle __unused,
usr.sbin/ppp/chat.c
494
chat_Write(struct fdescriptor *d, struct bundle *bundle __unused,
usr.sbin/ppp/chat.c
663
strncpy(result, c->physical->dl->bundle->cfg.auth.key, reslen);
usr.sbin/ppp/chat.c
677
strncpy(result, c->physical->dl->bundle->cfg.auth.name, reslen);
usr.sbin/ppp/chat.c
737
physical->dl->bundle, 0, getpid());
usr.sbin/ppp/command.c
1091
FindExec(struct bundle *bundle, struct cmdtab const *cmds, int argc, int argn,
usr.sbin/ppp/command.c
1107
cx = bundle2datalink(bundle, NULL);
usr.sbin/ppp/command.c
1123
arg.bundle = bundle;
usr.sbin/ppp/command.c
1191
command_Run(struct bundle *bundle, int argc, char const *const *argv,
usr.sbin/ppp/command.c
1222
FindExec(bundle, Commands, argc, 0, argv, prompt, cx);
usr.sbin/ppp/command.c
1227
command_Decode(struct bundle *bundle, char *buff, int nb, struct prompt *prompt,
usr.sbin/ppp/command.c
1236
command_Run(bundle, argc, (char const *const *)argv, prompt, label, NULL);
usr.sbin/ppp/command.c
1246
FindExec(arg->bundle, ShowCommands, arg->argc, arg->argn, arg->argv,
usr.sbin/ppp/command.c
1290
bundle_Open(arg->bundle, arg->cx ? arg->cx->name : NULL, PHYS_ALL, 1);
usr.sbin/ppp/command.c
1294
arg->cx : bundle2datalink(arg->bundle, NULL);
usr.sbin/ppp/command.c
1299
bundle_Open(arg->bundle, cx->name, PHYS_ALL, 1);
usr.sbin/ppp/command.c
1323
if (arg->bundle->ncp.ipcp.fsm.state == ST_OPENED)
usr.sbin/ppp/command.c
1324
fsm_Reopen(&arg->bundle->ncp.ipcp.fsm);
usr.sbin/ppp/command.c
1326
bundle_Open(arg->bundle, NULL, PHYS_ALL, 1);
usr.sbin/ppp/command.c
1339
bundle_Close(arg->bundle, arg->cx ? arg->cx->name : NULL, CLOSE_STAYDOWN);
usr.sbin/ppp/command.c
1342
bundle_Close(arg->bundle, arg->cx ? arg->cx->name : NULL, CLOSE_LCP);
usr.sbin/ppp/command.c
1370
bundle_Down(arg->bundle, CLOSE_STAYDOWN);
usr.sbin/ppp/command.c
1376
bundle_Down(arg->bundle, CLOSE_LCP);
usr.sbin/ppp/command.c
1379
&arg->bundle->ncp.mp.link.ccp.fsm;
usr.sbin/ppp/command.c
1465
if (server_Clear(arg->bundle))
usr.sbin/ppp/command.c
1469
switch (server_Reopen(arg->bundle)) {
usr.sbin/ppp/command.c
1483
if (server_Close(arg->bundle))
usr.sbin/ppp/command.c
1507
(int)(ptr - port), port, arg->bundle->unit, ptr + 2);
usr.sbin/ppp/command.c
1510
res = server_LocalOpen(arg->bundle, port, imask);
usr.sbin/ppp/command.c
1534
iport += arg->bundle->unit;
usr.sbin/ppp/command.c
1535
res = server_TcpOpen(arg->bundle, iport);
usr.sbin/ppp/command.c
1566
struct ncp *ncp = &arg->bundle->ncp;
usr.sbin/ppp/command.c
1601
bundle_AdjustFilters(arg->bundle, &ncpaddr, NULL);
usr.sbin/ppp/command.c
1603
if (hisaddr && !ipcp_UseHisaddr(arg->bundle, hisaddr,
usr.sbin/ppp/command.c
1604
arg->bundle->phys_type.all & PHYS_AUTO))
usr.sbin/ppp/command.c
1682
strncpy(arg->bundle->cfg.auth.key, argp,
usr.sbin/ppp/command.c
1683
sizeof arg->bundle->cfg.auth.key - 1);
usr.sbin/ppp/command.c
1684
arg->bundle->cfg.auth.key[sizeof arg->bundle->cfg.auth.key - 1] = '\0';
usr.sbin/ppp/command.c
1688
switch (bundle_Phase(arg->bundle)) {
usr.sbin/ppp/command.c
1691
bundle_PhaseName(arg->bundle));
usr.sbin/ppp/command.c
1695
strncpy(arg->bundle->cfg.auth.name, argp,
usr.sbin/ppp/command.c
1696
sizeof arg->bundle->cfg.auth.name - 1);
usr.sbin/ppp/command.c
1697
arg->bundle->cfg.auth.name[sizeof arg->bundle->cfg.auth.name-1] = '\0';
usr.sbin/ppp/command.c
1736
arg->bundle->ncp.mp.cfg.autoload.min = v1;
usr.sbin/ppp/command.c
1737
arg->bundle->ncp.mp.cfg.autoload.max = v2;
usr.sbin/ppp/command.c
1738
arg->bundle->ncp.mp.cfg.autoload.period = v3;
usr.sbin/ppp/command.c
1739
mp_RestartAutoloadTimer(&arg->bundle->ncp.mp);
usr.sbin/ppp/command.c
1849
bundle_SetMode(arg->bundle, cx, mode);
usr.sbin/ppp/command.c
1853
switch (bundle_Phase(arg->bundle)) {
usr.sbin/ppp/command.c
1858
if (bundle_HighestState(arg->bundle) >= DATALINK_LCP) {
usr.sbin/ppp/command.c
1881
arg->bundle->ncp.mp.cfg.mrru = long_val;
usr.sbin/ppp/command.c
2022
arg->bundle->cfg.ifqueue = long_val < 0 ? 0 : long_val;
usr.sbin/ppp/command.c
2041
min = arg->bundle->cfg.idle.min_timeout;
usr.sbin/ppp/command.c
2044
bundle_SetIdleTimer(arg->bundle, timeout, min);
usr.sbin/ppp/command.c
2057
arg->bundle->radius.alive.interval = atoi(argp);
usr.sbin/ppp/command.c
2058
if (arg->bundle->radius.alive.interval && !*arg->bundle->radius.cfg.file) {
usr.sbin/ppp/command.c
2061
} else if (arg->bundle->ncp.ipcp.fsm.state == ST_OPENED) {
usr.sbin/ppp/command.c
2062
if (arg->bundle->radius.alive.interval)
usr.sbin/ppp/command.c
2063
radius_StartTimer(arg->bundle);
usr.sbin/ppp/command.c
2065
radius_StopTimer(&arg->bundle->radius);
usr.sbin/ppp/command.c
2108
&arg->bundle->ncp.ipcp.cfg.fsm.timeout,
usr.sbin/ppp/command.c
2109
&arg->bundle->ncp.ipcp.cfg.fsm.maxreq,
usr.sbin/ppp/command.c
2110
&arg->bundle->ncp.ipcp.cfg.fsm.maxtrm, DEF_FSMTRIES);
usr.sbin/ppp/command.c
2116
&arg->bundle->ncp.ipv6cp.cfg.fsm.timeout,
usr.sbin/ppp/command.c
2117
&arg->bundle->ncp.ipv6cp.cfg.fsm.maxreq,
usr.sbin/ppp/command.c
2118
&arg->bundle->ncp.ipv6cp.cfg.fsm.maxtrm, DEF_FSMTRIES);
usr.sbin/ppp/command.c
2125
ipaddr = arg->bundle->ncp.ipcp.cfg.ns.dns;
usr.sbin/ppp/command.c
2128
ipaddr = arg->bundle->ncp.ipcp.cfg.ns.nbns;
usr.sbin/ppp/command.c
2133
ncpaddr_aton(ncpaddr, &arg->bundle->ncp, arg->argv[arg->argn]);
usr.sbin/ppp/command.c
2137
ncpaddr_aton(ncpaddr + 1, &arg->bundle->ncp, arg->argv[arg->argn + 1]);
usr.sbin/ppp/command.c
2203
arg->bundle->cfg.choked.timeout = atoi(argp);
usr.sbin/ppp/command.c
2204
if (arg->bundle->cfg.choked.timeout <= 0)
usr.sbin/ppp/command.c
2205
arg->bundle->cfg.choked.timeout = CHOKED_TIMEOUT;
usr.sbin/ppp/command.c
2210
arg->bundle->ncp.cfg.sendpipe = long_val;
usr.sbin/ppp/command.c
2215
arg->bundle->ncp.cfg.recvpipe = long_val;
usr.sbin/ppp/command.c
2221
*arg->bundle->radius.cfg.file = '\0';
usr.sbin/ppp/command.c
2227
strncpy(arg->bundle->radius.cfg.file, argp,
usr.sbin/ppp/command.c
2228
sizeof arg->bundle->radius.cfg.file - 1);
usr.sbin/ppp/command.c
2229
arg->bundle->radius.cfg.file
usr.sbin/ppp/command.c
2230
[sizeof arg->bundle->radius.cfg.file - 1] = '\0';
usr.sbin/ppp/command.c
2274
ncp_SetUrgentTOS(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2275
ncp_ClearUrgentTcpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2276
ncp_ClearUrgentUdpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2278
ncp_SetUrgentTOS(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2280
ncp_ClearUrgentUdpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2283
ncp_AddUrgentUdpPort(&arg->bundle->ncp, atoi(arg->argv[f] + 1));
usr.sbin/ppp/command.c
2285
ncp_RemoveUrgentUdpPort(&arg->bundle->ncp, atoi(arg->argv[f] + 1));
usr.sbin/ppp/command.c
2288
ncp_ClearUrgentUdpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2289
ncp_AddUrgentUdpPort(&arg->bundle->ncp, atoi(arg->argv[f]));
usr.sbin/ppp/command.c
2293
ncp_ClearUrgentTcpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2294
ncp_ClearUrgentUdpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2295
ncp_ClearUrgentTOS(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2298
ncp_SetUrgentTcpLen(&arg->bundle->ncp, 0);
usr.sbin/ppp/command.c
2300
ncp_SetUrgentTcpLen(&arg->bundle->ncp, atoi(arg->argv[arg->argn + 1]));
usr.sbin/ppp/command.c
2302
ncp_SetUrgentTOS(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2305
ncp_ClearUrgentTcpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2309
ncp_AddUrgentTcpPort(&arg->bundle->ncp, atoi(arg->argv[f] + 1));
usr.sbin/ppp/command.c
2311
ncp_RemoveUrgentTcpPort(&arg->bundle->ncp, atoi(arg->argv[f] + 1));
usr.sbin/ppp/command.c
2314
ncp_ClearUrgentTcpPorts(&arg->bundle->ncp);
usr.sbin/ppp/command.c
2315
ncp_AddUrgentTcpPort(&arg->bundle->ncp, atoi(arg->argv[f]));
usr.sbin/ppp/command.c
2334
arg->bundle->radius.port_id_type = RPI_DEFAULT;
usr.sbin/ppp/command.c
2336
arg->bundle->radius.port_id_type = RPI_PID;
usr.sbin/ppp/command.c
2338
arg->bundle->radius.port_id_type = RPI_IFNUM;
usr.sbin/ppp/command.c
2340
arg->bundle->radius.port_id_type = RPI_TUNNUM;
usr.sbin/ppp/command.c
2347
if (arg->bundle->radius.port_id_type && !*arg->bundle->radius.cfg.file) {
usr.sbin/ppp/command.c
2495
FindExec(arg->bundle, SetCommands, arg->argc, arg->argn, arg->argv,
usr.sbin/ppp/command.c
2526
if (!ncprange_aton(&dest, &arg->bundle->ncp, arg->argv[arg->argn]))
usr.sbin/ppp/command.c
2545
host = arg->bundle->ncp.ipcp.my_ip;
usr.sbin/ppp/command.c
2548
host = arg->bundle->ncp.ipcp.peer_ip;
usr.sbin/ppp/command.c
2551
host = arg->bundle->ncp.ipcp.ns.dns[0];
usr.sbin/ppp/command.c
2554
host = arg->bundle->ncp.ipcp.ns.dns[1];
usr.sbin/ppp/command.c
2568
ncpaddr_setip4(&gw, arg->bundle->ncp.ipcp.peer_ip);
usr.sbin/ppp/command.c
2572
if (!ncpaddr_getip6(&arg->bundle->ncp.ipv6cp.hisaddr, &host6))
usr.sbin/ppp/command.c
2578
if (!ncpaddr_aton(&gw, &arg->bundle->ncp, arg->argv[arg->argn + gw_arg])) {
usr.sbin/ppp/command.c
2588
if (rt_Set(arg->bundle, RTM_ADD, &dest, &gw, arg->cmd->args ? 1 : 0,
usr.sbin/ppp/command.c
2591
route_Add(&arg->bundle->ncp.route, addrs, &dest, &gw);
usr.sbin/ppp/command.c
2604
route_IfDelete(arg->bundle, 0);
usr.sbin/ppp/command.c
2605
route_DeleteAll(&arg->bundle->ncp.route);
usr.sbin/ppp/command.c
2609
ncprange_setip4host(&dest, arg->bundle->ncp.ipcp.my_ip);
usr.sbin/ppp/command.c
2613
ncprange_sethost(&dest, &arg->bundle->ncp.ipv6cp.myaddr);
usr.sbin/ppp/command.c
2617
ncprange_setip4host(&dest, arg->bundle->ncp.ipcp.peer_ip);
usr.sbin/ppp/command.c
2621
ncprange_sethost(&dest, &arg->bundle->ncp.ipv6cp.hisaddr);
usr.sbin/ppp/command.c
2625
ncprange_setip4host(&dest, arg->bundle->ncp.ipcp.ns.dns[0]);
usr.sbin/ppp/command.c
2628
ncprange_setip4host(&dest, arg->bundle->ncp.ipcp.ns.dns[1]);
usr.sbin/ppp/command.c
2631
ncprange_aton(&dest, &arg->bundle->ncp, arg->argv[arg->argn]);
usr.sbin/ppp/command.c
2634
rt_Set(arg->bundle, RTM_DELETE, &dest, NULL, arg->cmd->args ? 1 : 0, 0);
usr.sbin/ppp/command.c
2635
route_Delete(&arg->bundle->ncp.route, addrs, &dest);
usr.sbin/ppp/command.c
2649
if (!arg->bundle->NatEnabled) {
usr.sbin/ppp/command.c
2650
if (arg->bundle->ncp.ipcp.fsm.state == ST_OPENED)
usr.sbin/ppp/command.c
2651
LibAliasSetAddress(la, arg->bundle->ncp.ipcp.my_ip);
usr.sbin/ppp/command.c
2652
arg->bundle->NatEnabled = 1;
usr.sbin/ppp/command.c
2656
arg->bundle->NatEnabled = 0;
usr.sbin/ppp/command.c
2657
opt_disable(arg->bundle, OPT_IFACEALIAS);
usr.sbin/ppp/command.c
2674
if (arg->bundle->NatEnabled) {
usr.sbin/ppp/command.c
2680
if (arg->bundle->NatEnabled) {
usr.sbin/ppp/command.c
2703
cx = arg->bundle->links;
usr.sbin/ppp/command.c
2707
FindExec(arg->bundle, Commands, arg->argc, arg->argn+1, arg->argv,
usr.sbin/ppp/command.c
2709
for (cx = arg->bundle->links; cx; cx = cx->next)
usr.sbin/ppp/command.c
2717
if (!bundle2datalink(arg->bundle, name)) {
usr.sbin/ppp/command.c
2725
cx = bundle2datalink(arg->bundle, name);
usr.sbin/ppp/command.c
2727
FindExec(arg->bundle, Commands, arg->argc, arg->argn+1, arg->argv,
usr.sbin/ppp/command.c
2747
else if (!arg->bundle->ncp.mp.cfg.mrru) {
usr.sbin/ppp/command.c
2748
struct datalink *dl = bundle2datalink(arg->bundle, NULL);
usr.sbin/ppp/command.c
2752
return &arg->bundle->ncp.mp.link;
usr.sbin/ppp/command.c
2816
!Enabled(arg->bundle, OPT_NAS_IDENTIFIER)) ||
usr.sbin/ppp/command.c
2818
!Enabled(arg->bundle, OPT_NAS_IP_ADDRESS)))) {
usr.sbin/ppp/command.c
2825
opt_enable(arg->bundle, opt);
usr.sbin/ppp/command.c
2827
opt_disable(arg->bundle, opt);
usr.sbin/ppp/command.c
2835
unsigned long long save = arg->bundle->cfg.optmask;
usr.sbin/ppp/command.c
2839
if (Enabled(arg->bundle, OPT_IFACEALIAS) && !arg->bundle->NatEnabled) {
usr.sbin/ppp/command.c
2840
arg->bundle->cfg.optmask = save;
usr.sbin/ppp/command.c
2903
arg->bundle->ncp.ipcp.cfg.ns.dns_neg &= keep;
usr.sbin/ppp/command.c
2904
arg->bundle->ncp.ipcp.cfg.ns.dns_neg |= add;
usr.sbin/ppp/command.c
2926
arg->bundle->ncp.mp.cfg.negenddisc &= keep;
usr.sbin/ppp/command.c
2927
arg->bundle->ncp.mp.cfg.negenddisc |= add;
usr.sbin/ppp/command.c
2950
switch (bundle_Phase(arg->bundle)) {
usr.sbin/ppp/command.c
2955
if (bundle_HighestState(arg->bundle) >= DATALINK_LCP) {
usr.sbin/ppp/command.c
296
bundle_DatalinkClone(arg->bundle, arg->cx, name);
usr.sbin/ppp/command.c
2966
arg->bundle->ncp.mp.cfg.shortseq &= keep;
usr.sbin/ppp/command.c
2967
arg->bundle->ncp.mp.cfg.shortseq |= add;
usr.sbin/ppp/command.c
2970
arg->bundle->ncp.ipcp.cfg.vj.neg &= keep;
usr.sbin/ppp/command.c
2971
arg->bundle->ncp.ipcp.cfg.vj.neg |= add;
usr.sbin/ppp/command.c
3095
FindExec(arg->bundle, NegotiateCommands + (keep == NEG_HISMASK ?
usr.sbin/ppp/command.c
313
bundle_DatalinkRemove(arg->bundle, arg->cx);
usr.sbin/ppp/command.c
3132
cx = bundle2datalink(arg->bundle, NULL);
usr.sbin/ppp/command.c
3139
t = &arg->bundle->ncp.ipcp.throughput;
usr.sbin/ppp/command.c
3142
t = &arg->bundle->ncp.ipv6cp.throughput;
usr.sbin/ppp/command.c
3181
FindExec(arg->bundle, arg->cmd->args, arg->argc, arg->argn, arg->argv,
usr.sbin/ppp/command.c
3200
if (!iface_Name(arg->bundle->iface, arg->argv[n]))
usr.sbin/ppp/command.c
3203
log_SetTun(arg->bundle->unit, arg->bundle->iface->name);
usr.sbin/ppp/command.c
323
if (bundle_RenameDatalink(arg->bundle, arg->cx, arg->argv[arg->argn]))
usr.sbin/ppp/command.c
3254
return !iface_Add(arg->bundle->iface, &arg->bundle->ncp, &ifa, &peer, how);
usr.sbin/ppp/command.c
3270
if (arg->bundle->ncp.ipcp.fsm.state == ST_OPENED &&
usr.sbin/ppp/command.c
3272
arg->bundle->ncp.ipcp.my_ip.s_addr == ifa4.s_addr) {
usr.sbin/ppp/command.c
3278
ok = iface_Delete(arg->bundle->iface, &arg->bundle->ncp, &ifa);
usr.sbin/ppp/command.c
3311
how = arg->bundle->ncp.ipcp.fsm.state == ST_OPENED ||
usr.sbin/ppp/command.c
3312
arg->bundle->phys_type.all & PHYS_AUTO ?
usr.sbin/ppp/command.c
3314
iface_Clear(arg->bundle->iface, &arg->bundle->ncp, family, how);
usr.sbin/ppp/command.c
3335
command_Expand(argv, argc, arg->argv + arg->argn, arg->bundle, 1, getpid());
usr.sbin/ppp/command.c
337
mode = arg->bundle->phys_type.all;
usr.sbin/ppp/command.c
347
bundle_SetLabel(arg->bundle, arg->argv[arg->argc - 1]);
usr.sbin/ppp/command.c
348
system_Select(arg->bundle, arg->argv[n], CONFFILE, arg->prompt, arg->cx);
usr.sbin/ppp/command.c
350
bundle_SetLabel(arg->bundle, arg->argv[arg->argc - 1]);
usr.sbin/ppp/command.c
355
bundle_SetLabel(arg->bundle, "default");
usr.sbin/ppp/command.c
356
system_Select(arg->bundle, "default", CONFFILE, arg->prompt, arg->cx);
usr.sbin/ppp/command.c
357
bundle_SetLabel(arg->bundle, "default");
usr.sbin/ppp/command.c
376
command_Expand(argv, argc, arg->argv + arg->argn, arg->bundle, 1, getpid());
usr.sbin/ppp/command.c
400
(arg->bundle->phys_type.all & ~(PHYS_INTERACTIVE|PHYS_AUTO)))) {
usr.sbin/ppp/command.c
409
bundle_Open(arg->bundle, arg->cx ? arg->cx->name : NULL, PHYS_ALL, 1);
usr.sbin/ppp/command.c
522
struct bundle *bundle, int inc0, pid_t pid)
usr.sbin/ppp/command.c
535
secs = bundle_Uptime(bundle);
usr.sbin/ppp/command.c
538
oin = bundle->ncp.ipcp.throughput.OctetsIn;
usr.sbin/ppp/command.c
539
oout = bundle->ncp.ipcp.throughput.OctetsOut;
usr.sbin/ppp/command.c
540
pin = bundle->ncp.ipcp.throughput.PacketsIn;
usr.sbin/ppp/command.c
541
pout = bundle->ncp.ipcp.throughput.PacketsOut;
usr.sbin/ppp/command.c
543
oin += bundle->ncp.ipv6cp.throughput.OctetsIn;
usr.sbin/ppp/command.c
544
oout += bundle->ncp.ipv6cp.throughput.OctetsOut;
usr.sbin/ppp/command.c
545
pin += bundle->ncp.ipv6cp.throughput.PacketsIn;
usr.sbin/ppp/command.c
546
pout += bundle->ncp.ipv6cp.throughput.PacketsOut;
usr.sbin/ppp/command.c
551
nargv[arg] = subst(nargv[arg], "AUTHNAME", bundle->cfg.auth.name);
usr.sbin/ppp/command.c
552
nargv[arg] = substip(nargv[arg], "DNS0", bundle->ncp.ipcp.ns.dns[0]);
usr.sbin/ppp/command.c
553
nargv[arg] = substip(nargv[arg], "DNS1", bundle->ncp.ipcp.ns.dns[1]);
usr.sbin/ppp/command.c
555
mp_Enddisc(bundle->ncp.mp.cfg.enddisc.class,
usr.sbin/ppp/command.c
556
bundle->ncp.mp.cfg.enddisc.address,
usr.sbin/ppp/command.c
557
bundle->ncp.mp.cfg.enddisc.len));
usr.sbin/ppp/command.c
558
nargv[arg] = substip(nargv[arg], "HISADDR", bundle->ncp.ipcp.peer_ip);
usr.sbin/ppp/command.c
560
nargv[arg] = substipv6(nargv[arg], "HISADDR6", &bundle->ncp.ipv6cp.hisaddr);
usr.sbin/ppp/command.c
562
nargv[arg] = subst(nargv[arg], "INTERFACE", bundle->iface->name);
usr.sbin/ppp/command.c
564
bundle->ncp.ipcp.throughput.OctetsIn);
usr.sbin/ppp/command.c
566
bundle->ncp.ipcp.throughput.OctetsOut);
usr.sbin/ppp/command.c
568
bundle->ncp.ipcp.throughput.PacketsIn);
usr.sbin/ppp/command.c
570
bundle->ncp.ipcp.throughput.PacketsOut);
usr.sbin/ppp/command.c
573
bundle->ncp.ipv6cp.throughput.OctetsIn);
usr.sbin/ppp/command.c
575
bundle->ncp.ipv6cp.throughput.OctetsOut);
usr.sbin/ppp/command.c
577
bundle->ncp.ipv6cp.throughput.PacketsIn);
usr.sbin/ppp/command.c
579
bundle->ncp.ipv6cp.throughput.PacketsOut);
usr.sbin/ppp/command.c
581
nargv[arg] = subst(nargv[arg], "LABEL", bundle_GetLabel(bundle));
usr.sbin/ppp/command.c
582
nargv[arg] = substip(nargv[arg], "MYADDR", bundle->ncp.ipcp.my_ip);
usr.sbin/ppp/command.c
584
nargv[arg] = substipv6(nargv[arg], "MYADDR6", &bundle->ncp.ipv6cp.myaddr);
usr.sbin/ppp/command.c
587
bundle->radius.ipv6prefix);
usr.sbin/ppp/command.c
595
mp_Enddisc(bundle->ncp.mp.peer.enddisc.class,
usr.sbin/ppp/command.c
596
bundle->ncp.mp.peer.enddisc.address,
usr.sbin/ppp/command.c
597
bundle->ncp.mp.peer.enddisc.len));
usr.sbin/ppp/command.c
604
nargv[arg] = subst(nargv[arg], "USER", bundle->ncp.mp.peer.authname);
usr.sbin/ppp/command.c
684
command_Expand(argv, argc, arg->argv + arg->argn, arg->bundle, 0, pid);
usr.sbin/ppp/command.c
741
ipcp_LoadDNS(&arg->bundle->ncp.ipcp);
usr.sbin/ppp/command.c
743
ipcp_RestoreDNS(&arg->bundle->ncp.ipcp);
usr.sbin/ppp/command.c
745
ipcp_WriteDNS(&arg->bundle->ncp.ipcp);
usr.sbin/ppp/command.c
747
arg->bundle->ncp.ipcp.ns.writable = 0;
usr.sbin/ppp/command.c
749
arg->bundle->ncp.ipcp.ns.writable = 1;
usr.sbin/ppp/command.h
32
struct bundle;
usr.sbin/ppp/command.h
42
struct bundle *bundle; /* Our bundle */
usr.sbin/ppp/command.h
64
extern void command_Expand(char **, int, char const *const *, struct bundle *,
usr.sbin/ppp/command.h
69
extern void command_Run(struct bundle *, int, char const *const *,
usr.sbin/ppp/command.h
71
extern int command_Decode(struct bundle *, char *, int, struct prompt *,
usr.sbin/ppp/datalink.c
117
if (dl->physical->type == PHYS_DEDICATED && !dl->bundle->CleaningUp &&
usr.sbin/ppp/datalink.c
1292
iov2datalink(struct bundle *bundle, struct iovec *iov, int *niov, int maxiov,
usr.sbin/ppp/datalink.c
1311
for (cdl = bundle->links; cdl; cdl = cdl->next)
usr.sbin/ppp/datalink.c
1346
dl->bundle = bundle;
usr.sbin/ppp/datalink.c
1351
dl->parent = &bundle->fsm;
usr.sbin/ppp/datalink.c
142
bundle_LinksRemoved(dl->bundle);
usr.sbin/ppp/datalink.c
149
if (bundle_Phase(dl->bundle) == PHASE_DEAD ||
usr.sbin/ppp/datalink.c
150
bundle_Phase(dl->bundle) == PHASE_TERMINATE)
usr.sbin/ppp/datalink.c
151
bundle_NewPhase(dl->bundle, PHASE_ESTABLISH);
usr.sbin/ppp/datalink.c
152
} else if (dl->bundle->CleaningUp ||
usr.sbin/ppp/datalink.c
160
bundle_LinkClosed(dl->bundle, dl);
usr.sbin/ppp/datalink.c
161
if (!dl->bundle->CleaningUp &&
usr.sbin/ppp/datalink.c
166
if (bundle_Phase(dl->bundle) == PHASE_DEAD ||
usr.sbin/ppp/datalink.c
167
bundle_Phase(dl->bundle) == PHASE_TERMINATE)
usr.sbin/ppp/datalink.c
168
bundle_NewPhase(dl->bundle, PHASE_ESTABLISH);
usr.sbin/ppp/datalink.c
177
bundle_Notify(dl->bundle, EX_RECONNECT);
usr.sbin/ppp/datalink.c
183
bundle_Notify(dl->bundle, EX_REDIAL);
usr.sbin/ppp/datalink.c
262
!dl->bundle->CleaningUp)
usr.sbin/ppp/datalink.c
304
if (dl->bundle->CleaningUp ||
usr.sbin/ppp/datalink.c
312
bundle_LinkClosed(dl->bundle, dl);
usr.sbin/ppp/datalink.c
314
if (!dl->bundle->CleaningUp) {
usr.sbin/ppp/datalink.c
318
bundle_Notify(dl->bundle, EX_REDIAL);
usr.sbin/ppp/datalink.c
448
datalink_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset)
usr.sbin/ppp/datalink.c
461
descriptor_Read(&dl->chat.desc, bundle, fdset);
usr.sbin/ppp/datalink.c
470
descriptor_Read(&dl->chap.desc, bundle, fdset);
usr.sbin/ppp/datalink.c
472
descriptor_Read(&dl->physical->desc, bundle, fdset);
usr.sbin/ppp/datalink.c
478
datalink_Write(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/datalink.c
493
if ((result = descriptor_Write(&dl->chat.desc, bundle, fdset)) == -1) {
usr.sbin/ppp/datalink.c
505
switch (descriptor_Write(&dl->chap.desc, bundle, fdset)) {
usr.sbin/ppp/datalink.c
513
switch (descriptor_Write(&dl->physical->desc, bundle, fdset)) {
usr.sbin/ppp/datalink.c
581
if (bundle_Phase(dl->bundle) != PHASE_NETWORK)
usr.sbin/ppp/datalink.c
582
bundle_NewPhase(dl->bundle, PHASE_AUTHENTICATE);
usr.sbin/ppp/datalink.c
618
switch (mp_Up(&dl->bundle->ncp.mp, dl)) {
usr.sbin/ppp/datalink.c
624
auth_Select(dl->bundle, dl->peer.authname);
usr.sbin/ppp/datalink.c
625
bundle_CalculateBandwidth(dl->bundle);
usr.sbin/ppp/datalink.c
630
bundle_CalculateBandwidth(dl->bundle);
usr.sbin/ppp/datalink.c
636
} else if (bundle_Phase(dl->bundle) == PHASE_NETWORK) {
usr.sbin/ppp/datalink.c
639
bundle_CalculateBandwidth(dl->bundle);
usr.sbin/ppp/datalink.c
643
dl->bundle->ncp.mp.peer = dl->peer;
usr.sbin/ppp/datalink.c
644
ncp_SetLink(&dl->bundle->ncp, &dl->physical->link);
usr.sbin/ppp/datalink.c
645
auth_Select(dl->bundle, dl->peer.authname);
usr.sbin/ppp/datalink.c
653
bundle_NewPhase(dl->bundle, PHASE_NETWORK);
usr.sbin/ppp/datalink.c
792
datalink_Create(const char *name, struct bundle *bundle, int type)
usr.sbin/ppp/datalink.c
822
dl->bundle = bundle;
usr.sbin/ppp/datalink.c
845
dl->parent = &bundle->fsm;
usr.sbin/ppp/datalink.c
894
dl->bundle = odl->bundle;
usr.sbin/ppp/datalink.c
965
if (!Enabled(dl->bundle, OPT_FORCE_SCRIPTS) &&
usr.sbin/ppp/datalink.c
972
if (bundle_Phase(dl->bundle) == PHASE_DEAD ||
usr.sbin/ppp/datalink.c
973
bundle_Phase(dl->bundle) == PHASE_TERMINATE)
usr.sbin/ppp/datalink.c
974
bundle_NewPhase(dl->bundle, PHASE_ESTABLISH);
usr.sbin/ppp/datalink.h
121
struct bundle *bundle; /* for the moment */
usr.sbin/ppp/datalink.h
128
extern struct datalink *datalink_Create(const char *name, struct bundle *, int);
usr.sbin/ppp/datalink.h
130
extern struct datalink *iov2datalink(struct bundle *, struct iovec *, int *,
usr.sbin/ppp/datalink.h
52
struct bundle;
usr.sbin/ppp/deflate.c
443
DeflateInitOptsOutput(struct bundle *bundle __unused, struct fsm_opt *o,
usr.sbin/ppp/deflate.c
452
DeflateSetOptsOutput(struct bundle *bundle __unused, struct fsm_opt *o,
usr.sbin/ppp/deflate.c
467
DeflateSetOptsInput(struct bundle *bundle __unused, struct fsm_opt *o,
usr.sbin/ppp/deflate.c
489
DeflateInitInput(struct bundle *bundle __unused, struct fsm_opt *o)
usr.sbin/ppp/deflate.c
512
DeflateInitOutput(struct bundle *bundle __unused, struct fsm_opt *o)
usr.sbin/ppp/descriptor.h
39
struct bundle;
usr.sbin/ppp/descriptor.h
46
void (*Read)(struct fdescriptor *, struct bundle *, const fd_set *);
usr.sbin/ppp/descriptor.h
47
int (*Write)(struct fdescriptor *, struct bundle *, const fd_set *);
usr.sbin/ppp/ether.c
408
ether_DescriptorRead(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/ether.c
424
physical_DescriptorRead(d, bundle, fdset);
usr.sbin/ppp/ether.c
603
TUN_NAME, p->dl->bundle->unit);
usr.sbin/ppp/exec.c
330
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
1081
Enabled(fp->bundle, OPT_IDCHECK)) {
usr.sbin/ppp/fsm.c
1091
(!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
921
fsm_Close(&fp->bundle->ncp.ipcp.fsm);
usr.sbin/ppp/fsm.c
929
fsm_Close(&fp->bundle->ncp.ipv6cp.fsm);
usr.sbin/ppp/fsm.h
136
struct bundle *bundle;
usr.sbin/ppp/fsm.h
184
struct bundle *, struct link *, const struct fsm_parent *,
usr.sbin/ppp/fsm.h
99
struct bundle;
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
109
extern void hdlc_DecodePacket(struct bundle *, u_short, struct mbuf *,
usr.sbin/ppp/hdlc.h
57
struct bundle;
usr.sbin/ppp/iface.c
434
iface = arg->bundle->iface;
usr.sbin/ppp/iface.c
743
struct iface *iface = arg->bundle->iface, *current;
usr.sbin/ppp/ip.c
558
PacketCheck(struct bundle *bundle, u_int32_t family,
usr.sbin/ppp/ip.c
651
if (tos == IPTOS_LOWDELAY && bundle->ncp.cfg.urgent.tos)
usr.sbin/ppp/ip.c
654
if (!frag && ncp_IsUrgentUdpPort(&bundle->ncp, ntohs(uh->uh_sport),
usr.sbin/ppp/ip.c
669
if (Enabled(bundle, OPT_FILTERDECAP) &&
usr.sbin/ppp/ip.c
681
result = PacketCheck(bundle, AF_INET, payload + sizeof *uh + 4,
usr.sbin/ppp/ip.c
747
if (Enabled(bundle, OPT_FILTERDECAP)) {
usr.sbin/ppp/ip.c
749
result = PacketCheck(bundle, AF_INET6, payload, nb - (payload - packet),
usr.sbin/ppp/ip.c
767
if (Enabled(bundle, OPT_FILTERDECAP) &&
usr.sbin/ppp/ip.c
770
result = PacketCheck(bundle, AF_INET, payload, nb - (payload - packet),
usr.sbin/ppp/ip.c
815
if (tos == IPTOS_LOWDELAY && bundle->ncp.cfg.urgent.tos)
usr.sbin/ppp/ip.c
818
if (!frag && ncp_IsUrgentTcpPort(&bundle->ncp, ntohs(th->th_sport),
usr.sbin/ppp/ip.c
821
else if (!frag && ncp_IsUrgentTcpLen(&bundle->ncp, datalen))
usr.sbin/ppp/ip.c
883
FilterCheck(packet, family, &bundle->filter.alive, &alivesecs))
usr.sbin/ppp/ip.c
908
ip_Input(struct bundle *bundle, struct link *l, struct mbuf *bp, u_int32_t af)
usr.sbin/ppp/ip.c
926
if (PacketCheck(bundle, af, tun.data, nb, &bundle->filter.in,
usr.sbin/ppp/ip.c
931
if (!FilterCheck(tun.data, af, &bundle->filter.alive, &alivesecs)) {
usr.sbin/ppp/ip.c
934
bundle_StartIdleTimer(bundle, secs);
usr.sbin/ppp/ip.c
937
if (bundle->dev.header) {
usr.sbin/ppp/ip.c
944
nw = write(bundle->dev.fd, data, nb);
usr.sbin/ppp/ip.c
958
ipv4_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/ip.c
962
if (bundle->ncp.ipcp.fsm.state != ST_OPENED) {
usr.sbin/ppp/ip.c
970
nb = ip_Input(bundle, l, bp, AF_INET);
usr.sbin/ppp/ip.c
971
ipcp_AddInOctets(&bundle->ncp.ipcp, nb);
usr.sbin/ppp/ip.c
978
ipv6_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/ip.c
982
if (bundle->ncp.ipv6cp.fsm.state != ST_OPENED) {
usr.sbin/ppp/ip.c
990
nb = ip_Input(bundle, l, bp, AF_INET6);
usr.sbin/ppp/ip.c
991
ipv6cp_AddInOctets(&bundle->ncp.ipv6cp, nb);
usr.sbin/ppp/ip.h
34
struct bundle;
usr.sbin/ppp/ip.h
36
extern int ip_PushPacket(struct link *, struct bundle *);
usr.sbin/ppp/ip.h
37
extern int PacketCheck(struct bundle *, u_int32_t, const unsigned char *, int,
usr.sbin/ppp/ip.h
41
extern struct mbuf *ipv4_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/ip.h
43
extern struct mbuf *ipv6_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/ipcp.c
1008
ipcp->peer_ip = ChooseHisAddr(bundle, myaddr);
usr.sbin/ppp/ipcp.c
1095
bundle_AdjustFilters(fp->bundle, &ncpaddr, NULL);
usr.sbin/ppp/ipcp.c
1314
bundle_AdjustDNS(fp->bundle);
usr.sbin/ppp/ipcp.c
1317
bundle_AdjustDNS(fp->bundle);
usr.sbin/ppp/ipcp.c
1341
ipcp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/ipcp.c
1345
if (bundle_Phase(bundle) == PHASE_NETWORK)
usr.sbin/ppp/ipcp.c
1346
fsm_Input(&bundle->ncp.ipcp.fsm, bp);
usr.sbin/ppp/ipcp.c
1348
if (bundle_Phase(bundle) < PHASE_NETWORK)
usr.sbin/ppp/ipcp.c
1350
l->name, bundle_PhaseName(bundle));
usr.sbin/ppp/ipcp.c
1357
ipcp_UseHisIPaddr(struct bundle *bundle, struct in_addr hisaddr)
usr.sbin/ppp/ipcp.c
1359
struct ipcp *ipcp = &bundle->ncp.ipcp;
usr.sbin/ppp/ipcp.c
1372
ipcp_UseHisaddr(struct bundle *bundle, const char *hisaddr, int setaddr)
usr.sbin/ppp/ipcp.c
1375
struct ncp *ncp = &bundle->ncp;
usr.sbin/ppp/ipcp.c
1386
ipcp->peer_ip = ChooseHisAddr(bundle, ipcp->my_ip);
usr.sbin/ppp/ipcp.c
1410
bundle_AdjustFilters(bundle, NULL, &ncpaddr);
usr.sbin/ppp/ipcp.c
1444
struct bundle *bundle = ipcp->fsm.bundle;
usr.sbin/ppp/ipcp.c
1469
if (!FilterCheck(MBUF_CTOP(bp), AF_INET, &bundle->filter.alive,
usr.sbin/ppp/ipcp.c
1473
bundle_StartIdleTimer(bundle, secs);
usr.sbin/ppp/ipcp.c
1475
link_PushPacket(l, bp, bundle, 0, PROTO_IP);
usr.sbin/ppp/ipcp.c
273
bundle_AdjustDNS(ipcp->fsm.bundle);
usr.sbin/ppp/ipcp.c
361
struct ipcp *ipcp = &arg->bundle->ncp.ipcp;
usr.sbin/ppp/ipcp.c
432
arg->bundle->ncp.ipcp.cfg.vj.slots = slots;
usr.sbin/ppp/ipcp.c
436
arg->bundle->ncp.ipcp.cfg.vj.slotcomp = 1;
usr.sbin/ppp/ipcp.c
438
arg->bundle->ncp.ipcp.cfg.vj.slotcomp = 0;
usr.sbin/ppp/ipcp.c
447
ipcp_Init(struct ipcp *ipcp, struct bundle *bundle, struct link *l,
usr.sbin/ppp/ipcp.c
457
bundle, l, parent, &ipcp_Callbacks, timer_names);
usr.sbin/ppp/ipcp.c
523
struct iface *iface = ipcp->fsm.bundle->iface;
usr.sbin/ppp/ipcp.c
583
|| (ipcp->fsm.bundle->radius.valid && ipcp->fsm.bundle->radius.vj)
usr.sbin/ppp/ipcp.c
621
int (*proxyfun)(struct bundle *, struct in_addr),
usr.sbin/ppp/ipcp.c
624
struct bundle *bundle = ipcp->fsm.bundle;
usr.sbin/ppp/ipcp.c
635
if (Enabled(bundle, OPT_PROXYALL)) {
usr.sbin/ppp/ipcp.c
649
if (!(ret = (*proxyfun)(bundle, ip)))
usr.sbin/ppp/ipcp.c
656
} else if (Enabled(bundle, OPT_PROXY))
usr.sbin/ppp/ipcp.c
657
ret = (*proxyfun)(bundle, peer);
usr.sbin/ppp/ipcp.c
666
struct bundle *bundle = ipcp->fsm.bundle;
usr.sbin/ppp/ipcp.c
687
if (!iface_Add(bundle->iface, &bundle->ncp, &myrange, &hisncpaddr,
usr.sbin/ppp/ipcp.c
691
if (!Enabled(bundle, OPT_IFACEALIAS))
usr.sbin/ppp/ipcp.c
692
iface_Clear(bundle->iface, &bundle->ncp, AF_INET,
usr.sbin/ppp/ipcp.c
695
if (bundle->ncp.cfg.sendpipe > 0 || bundle->ncp.cfg.recvpipe > 0) {
usr.sbin/ppp/ipcp.c
698
rt_Update(bundle, sadst, sagw, samask, NULL, NULL);
usr.sbin/ppp/ipcp.c
701
if (Enabled(bundle, OPT_SROUTES))
usr.sbin/ppp/ipcp.c
702
route_Change(bundle, bundle->ncp.route, &myncpaddr, &hisncpaddr);
usr.sbin/ppp/ipcp.c
705
if (bundle->radius.valid)
usr.sbin/ppp/ipcp.c
706
route_Change(bundle, bundle->radius.routes, &myncpaddr, &hisncpaddr);
usr.sbin/ppp/ipcp.c
713
ChooseHisAddr(struct bundle *bundle, struct in_addr gw)
usr.sbin/ppp/ipcp.c
718
for (f = 0; f < bundle->ncp.ipcp.cfg.peer_list.nItems; f++) {
usr.sbin/ppp/ipcp.c
719
try = iplist_next(&bundle->ncp.ipcp.cfg.peer_list);
usr.sbin/ppp/ipcp.c
722
if (ipcp_SetIPaddress(&bundle->ncp.ipcp, gw, try)) {
usr.sbin/ppp/ipcp.c
728
if (f == bundle->ncp.ipcp.cfg.peer_list.nItems) {
usr.sbin/ppp/ipcp.c
826
Enabled(fp->bundle, OPT_THROUGHPUT));
usr.sbin/ppp/ipcp.c
848
struct bundle *bundle = ipcp->fsm.bundle;
usr.sbin/ppp/ipcp.c
850
if (Enabled(bundle, OPT_PROXY) || Enabled(bundle, OPT_PROXYALL))
usr.sbin/ppp/ipcp.c
860
struct bundle *bundle = ipcp->fsm.bundle;
usr.sbin/ppp/ipcp.c
862
if (Enabled(bundle, OPT_PROXY) || Enabled(bundle, OPT_PROXYALL))
usr.sbin/ppp/ipcp.c
879
radius_Flush(&fp->bundle->radius);
usr.sbin/ppp/ipcp.c
880
radius_Account(&fp->bundle->radius, &fp->bundle->radacct,
usr.sbin/ppp/ipcp.c
881
fp->bundle->links, RAD_STOP, &ipcp->throughput);
usr.sbin/ppp/ipcp.c
883
if (*fp->bundle->radius.cfg.file && fp->bundle->radius.filterid)
usr.sbin/ppp/ipcp.c
884
system_Select(fp->bundle, fp->bundle->radius.filterid, LINKDOWNFILE,
usr.sbin/ppp/ipcp.c
886
radius_StopTimer(&fp->bundle->radius);
usr.sbin/ppp/ipcp.c
893
if (system_Select(fp->bundle, addr, LINKDOWNFILE, NULL, NULL) < 0) {
usr.sbin/ppp/ipcp.c
894
if (bundle_GetLabel(fp->bundle)) {
usr.sbin/ppp/ipcp.c
895
if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle),
usr.sbin/ppp/ipcp.c
897
system_Select(fp->bundle, "MYADDR", LINKDOWNFILE, NULL, NULL);
usr.sbin/ppp/ipcp.c
899
system_Select(fp->bundle, "MYADDR", LINKDOWNFILE, NULL, NULL);
usr.sbin/ppp/ipcp.c
915
if (!iface_SetFlags(ipcp->fsm.bundle->iface->name, IFF_UP)) {
usr.sbin/ppp/ipcp.c
917
ipcp->fsm.bundle->iface->name);
usr.sbin/ppp/ipcp.c
922
if (ipcp->fsm.bundle->NatEnabled)
usr.sbin/ppp/ipcp.c
948
radius_Account_Set_Ip(&fp->bundle->radacct, &ipcp->peer_ip, &ipcp->ifmask);
usr.sbin/ppp/ipcp.c
949
radius_Account(&fp->bundle->radius, &fp->bundle->radacct, fp->bundle->links,
usr.sbin/ppp/ipcp.c
952
if (*fp->bundle->radius.cfg.file && fp->bundle->radius.filterid)
usr.sbin/ppp/ipcp.c
953
system_Select(fp->bundle, fp->bundle->radius.filterid, LINKUPFILE,
usr.sbin/ppp/ipcp.c
955
radius_StartTimer(fp->bundle);
usr.sbin/ppp/ipcp.c
962
if (system_Select(fp->bundle, tbuff, LINKUPFILE, NULL, NULL) < 0) {
usr.sbin/ppp/ipcp.c
963
if (bundle_GetLabel(fp->bundle)) {
usr.sbin/ppp/ipcp.c
964
if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle),
usr.sbin/ppp/ipcp.c
966
system_Select(fp->bundle, "MYADDR", LINKUPFILE, NULL, NULL);
usr.sbin/ppp/ipcp.c
968
system_Select(fp->bundle, "MYADDR", LINKUPFILE, NULL, NULL);
usr.sbin/ppp/ipcp.c
980
struct bundle *bundle = ipcp->fsm.bundle;
usr.sbin/ppp/ipcp.c
981
struct iface *iface = bundle->iface;
usr.sbin/ppp/ipcp.h
106
struct bundle;
usr.sbin/ppp/ipcp.h
111
extern void ipcp_Init(struct ipcp *, struct bundle *, struct link *,
usr.sbin/ppp/ipcp.h
118
extern struct mbuf *ipcp_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/ipcp.h
121
extern int ipcp_UseHisIPaddr(struct bundle *, struct in_addr);
usr.sbin/ppp/ipcp.h
122
extern int ipcp_UseHisaddr(struct bundle *, const char *, int);
usr.sbin/ppp/ipv6cp.c
199
struct bundle *bundle = ipv6cp->fsm.bundle;
usr.sbin/ppp/ipv6cp.c
231
if (!iface_Add(bundle->iface, &bundle->ncp, &myrange, &ipv6cp->hisaddr,
usr.sbin/ppp/ipv6cp.c
235
if (!Enabled(bundle, OPT_IFACEALIAS))
usr.sbin/ppp/ipv6cp.c
236
iface_Clear(bundle->iface, &bundle->ncp, AF_INET6,
usr.sbin/ppp/ipv6cp.c
241
rt_Set(bundle, RTM_ADD, &range, &ipv6cp->myaddr, 1, 0);
usr.sbin/ppp/ipv6cp.c
243
if (bundle->ncp.cfg.sendpipe > 0 || bundle->ncp.cfg.recvpipe > 0) {
usr.sbin/ppp/ipv6cp.c
249
rt_Update(bundle, sadst, sagw, samask, NULL, NULL);
usr.sbin/ppp/ipv6cp.c
252
if (Enabled(bundle, OPT_SROUTES))
usr.sbin/ppp/ipv6cp.c
253
route_Change(bundle, bundle->ncp.route, &ipv6cp->myaddr, &ipv6cp->hisaddr);
usr.sbin/ppp/ipv6cp.c
256
if (bundle->radius.valid)
usr.sbin/ppp/ipv6cp.c
257
route_Change(bundle, bundle->radius.ipv6routes, &ipv6cp->myaddr,
usr.sbin/ppp/ipv6cp.c
265
ipv6cp_Init(struct ipv6cp *ipv6cp, struct bundle *bundle, struct link *l,
usr.sbin/ppp/ipv6cp.c
273
bundle, l, parent, &ipv6cp_Callbacks, timer_names);
usr.sbin/ppp/ipv6cp.c
326
struct ipv6cp *ipv6cp = &arg->bundle->ncp.ipv6cp;
usr.sbin/ppp/ipv6cp.c
351
ipv6cp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/ipv6cp.c
355
if (bundle_Phase(bundle) == PHASE_NETWORK)
usr.sbin/ppp/ipv6cp.c
356
fsm_Input(&bundle->ncp.ipv6cp.fsm, bp);
usr.sbin/ppp/ipv6cp.c
358
if (bundle_Phase(bundle) < PHASE_NETWORK)
usr.sbin/ppp/ipv6cp.c
360
" (ignored)\n", l->name, bundle_PhaseName(bundle));
usr.sbin/ppp/ipv6cp.c
398
if (!iface_SetFlags(ipv6cp->fsm.bundle->iface->name, IFF_UP)) {
usr.sbin/ppp/ipv6cp.c
400
" flag on %s\n", ipv6cp->fsm.bundle->iface->name);
usr.sbin/ppp/ipv6cp.c
423
struct bundle *bundle = ipv6cp->fsm.bundle;
usr.sbin/ppp/ipv6cp.c
448
if (!FilterCheck(MBUF_CTOP(bp), AF_INET6, &bundle->filter.alive,
usr.sbin/ppp/ipv6cp.c
452
bundle_StartIdleTimer(bundle, secs);
usr.sbin/ppp/ipv6cp.c
454
link_PushPacket(l, bp, bundle, 0, PROTO_IPV6);
usr.sbin/ppp/ipv6cp.c
479
radius_Account_Set_Ipv6(&fp->bundle->radacct6, ipv6cp->his_ifid);
usr.sbin/ppp/ipv6cp.c
480
radius_Account(&fp->bundle->radius, &fp->bundle->radacct6,
usr.sbin/ppp/ipv6cp.c
481
fp->bundle->links, RAD_START, &ipv6cp->throughput);
usr.sbin/ppp/ipv6cp.c
488
if (!Enabled(fp->bundle, OPT_IPCP)) {
usr.sbin/ppp/ipv6cp.c
489
if (*fp->bundle->radius.cfg.file && fp->bundle->radius.filterid)
usr.sbin/ppp/ipv6cp.c
490
system_Select(fp->bundle, fp->bundle->radius.filterid, LINKUPFILE,
usr.sbin/ppp/ipv6cp.c
499
if (system_Select(fp->bundle, tbuff, LINKUPFILE, NULL, NULL) < 0) {
usr.sbin/ppp/ipv6cp.c
505
if (bundle_GetLabel(fp->bundle) && !Enabled(fp->bundle, OPT_IPCP)) {
usr.sbin/ppp/ipv6cp.c
506
if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle),
usr.sbin/ppp/ipv6cp.c
508
system_Select(fp->bundle, "MYADDR6", LINKUPFILE, NULL, NULL);
usr.sbin/ppp/ipv6cp.c
510
system_Select(fp->bundle, "MYADDR6", LINKUPFILE, NULL, NULL);
usr.sbin/ppp/ipv6cp.c
532
radius_Flush(&fp->bundle->radius);
usr.sbin/ppp/ipv6cp.c
533
radius_Account(&fp->bundle->radius, &fp->bundle->radacct6,
usr.sbin/ppp/ipv6cp.c
534
fp->bundle->links, RAD_STOP, &ipv6cp->throughput);
usr.sbin/ppp/ipv6cp.c
541
if (!Enabled(fp->bundle, OPT_IPCP)) {
usr.sbin/ppp/ipv6cp.c
542
if (*fp->bundle->radius.cfg.file && fp->bundle->radius.filterid)
usr.sbin/ppp/ipv6cp.c
543
system_Select(fp->bundle, fp->bundle->radius.filterid, LINKDOWNFILE,
usr.sbin/ppp/ipv6cp.c
552
if (system_Select(fp->bundle, addr, LINKDOWNFILE, NULL, NULL) < 0) {
usr.sbin/ppp/ipv6cp.c
558
if (bundle_GetLabel(fp->bundle) && !Enabled(fp->bundle, OPT_IPCP)) {
usr.sbin/ppp/ipv6cp.c
559
if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle),
usr.sbin/ppp/ipv6cp.c
561
system_Select(fp->bundle, "MYADDR6", LINKDOWNFILE, NULL, NULL);
usr.sbin/ppp/ipv6cp.c
563
system_Select(fp->bundle, "MYADDR6", LINKDOWNFILE, NULL, NULL);
usr.sbin/ppp/ipv6cp.c
579
Enabled(fp->bundle, OPT_THROUGHPUT));
usr.sbin/ppp/ipv6cp.c
748
bundle_AdjustFilters(fp->bundle, &ipv6cp->myaddr, NULL);
usr.sbin/ppp/ipv6cp.h
62
struct bundle;
usr.sbin/ppp/ipv6cp.h
67
extern void ipv6cp_Init(struct ipv6cp *, struct bundle *, struct link *,
usr.sbin/ppp/ipv6cp.h
74
extern struct mbuf *ipv6cp_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/layer.h
43
struct bundle;
usr.sbin/ppp/layer.h
48
struct mbuf *(*push)(struct bundle *, struct link *, struct mbuf *,
usr.sbin/ppp/layer.h
50
struct mbuf *(*pull)(struct bundle *, struct link *, struct mbuf *,
usr.sbin/ppp/lcp.c
1171
mp = &lcp->fsm.bundle->ncp.mp;
usr.sbin/ppp/lcp.c
1198
mp = &lcp->fsm.bundle->ncp.mp;
usr.sbin/ppp/lcp.c
1299
lcp_Input(struct bundle *bundle __unused, struct link *l, struct mbuf *bp)
usr.sbin/ppp/lcp.c
249
lcp_Init(struct lcp *lcp, struct bundle *bundle, struct link *l,
usr.sbin/ppp/lcp.c
256
bundle, l, parent, &lcp_Callbacks, lcp_TimerNames);
usr.sbin/ppp/lcp.c
305
lcp->want_mrru = lcp->fsm.bundle->ncp.mp.cfg.mrru;
usr.sbin/ppp/lcp.c
306
lcp->want_shortseq = IsEnabled(lcp->fsm.bundle->ncp.mp.cfg.shortseq) ? 1 : 0;
usr.sbin/ppp/lcp.c
479
mp = &lcp->fsm.bundle->ncp.mp;
usr.sbin/ppp/lcp.c
513
command_Expand(exp, 1, argv, lcp->fsm.bundle, 1, getpid());
usr.sbin/ppp/lcp.c
686
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
248
link_PushPacket(struct link *l, struct mbuf *bp, struct bundle *b, int pri,
usr.sbin/ppp/link.c
276
link_PullPacket(struct link *l, char *buf, size_t len, struct bundle *b)
usr.sbin/ppp/link.c
351
struct mbuf *(*fn)(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/link.c
373
Despatch(struct bundle *bundle, struct link *l, struct mbuf *bp, u_short proto)
usr.sbin/ppp/link.c
379
bp = (*despatcher[f].fn)(bundle, l, bp);
usr.sbin/ppp/link.c
72
static void Despatch(struct bundle *, struct link *, struct mbuf *, u_short);
usr.sbin/ppp/link.h
36
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
158
link_PushPacket(lcp->fsm.link, bp, lcp->fsm.bundle,
usr.sbin/ppp/lqr.c
202
lqr_Input(struct bundle *bundle __unused, struct link *l, struct mbuf *bp)
usr.sbin/ppp/lqr.c
417
lqr_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/lqr.c
513
lqr_LayerPull(struct bundle *b __unused, struct link *l __unused,
usr.sbin/ppp/lqr.h
69
struct bundle;
usr.sbin/ppp/lqr.h
80
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
308
struct bundle *bundle;
usr.sbin/ppp/main.c
384
if ((bundle = bundle_Create(TUN_PREFIX, sw.mode, sw.unit)) == NULL)
usr.sbin/ppp/main.c
389
SignalBundle = bundle;
usr.sbin/ppp/main.c
390
bundle->NatEnabled = sw.nat;
usr.sbin/ppp/main.c
392
opt_enable(bundle, OPT_IFACEALIAS);
usr.sbin/ppp/main.c
394
if (system_Select(bundle, "default", CONFFILE, prompt, NULL) < 0)
usr.sbin/ppp/main.c
413
bundle_SetLabel(bundle, lastlabel);
usr.sbin/ppp/main.c
414
system_Select(bundle, argv[arg], CONFFILE, prompt, NULL);
usr.sbin/ppp/main.c
419
bundle_SetLabel(bundle, lastlabel);
usr.sbin/ppp/main.c
422
ncprange_family(&bundle->ncp.ipcp.cfg.peer_range) == AF_UNSPEC) {
usr.sbin/ppp/main.c
429
prompt->bundle = bundle; /* couldn't do it earlier */
usr.sbin/ppp/main.c
431
prompt_Printf(prompt, "Using interface: %s\n", bundle->iface->name);
usr.sbin/ppp/main.c
498
bundle->notify.fd = bgpipe[1];
usr.sbin/ppp/main.c
501
bundle_ChangedPID(bundle);
usr.sbin/ppp/main.c
502
bundle_LockTun(bundle); /* we have a new pid */
usr.sbin/ppp/main.c
533
DoLoop(bundle);
usr.sbin/ppp/main.c
540
DoLoop(struct bundle *bundle)
usr.sbin/ppp/main.c
563
for (; !bundle_IsDead(bundle); bundle_CleanDatalinks(bundle)) {
usr.sbin/ppp/main.c
570
descriptor_UpdateSet(&bundle->desc, rfds, wfds, efds, &nfds);
usr.sbin/ppp/main.c
575
bundle_CleanDatalinks(bundle);
usr.sbin/ppp/main.c
576
if (bundle_IsDead(bundle))
usr.sbin/ppp/main.c
642
if (!bundle_Exception(bundle, i)) {
usr.sbin/ppp/main.c
654
descriptor_Read(&server.desc, bundle, rfds);
usr.sbin/ppp/main.c
658
if (descriptor_IsSet(&bundle->desc, rfds)) {
usr.sbin/ppp/main.c
659
descriptor_Read(&bundle->desc, bundle, rfds);
usr.sbin/ppp/main.c
663
if (descriptor_IsSet(&bundle->desc, wfds))
usr.sbin/ppp/main.c
664
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
174
bundle_CalculateBandwidth(fp->bundle); /* Against ccp_MTUOverhead */
usr.sbin/ppp/mp.c
199
mp->bundle->bandwidth;
usr.sbin/ppp/mp.c
202
bundle_AutoAdjust(mp->bundle, percent, AUTO_UP);
usr.sbin/ppp/mp.c
205
bundle_AutoAdjust(mp->bundle, percent, AUTO_DOWN);
usr.sbin/ppp/mp.c
224
if (bundle_WantAutoloadTimer(mp->bundle))
usr.sbin/ppp/mp.c
240
mp_Init(struct mp *mp, struct bundle *bundle)
usr.sbin/ppp/mp.c
253
mp->bundle = bundle;
usr.sbin/ppp/mp.c
284
lcp_Init(&mp->link.lcp, mp->bundle, &mp->link, NULL);
usr.sbin/ppp/mp.c
285
ccp_Init(&mp->link.ccp, mp->bundle, &mp->link, &mp->fsmp);
usr.sbin/ppp/mp.c
364
ncp_SetLink(&mp->bundle->ncp, &mp->link);
usr.sbin/ppp/mp.c
446
for (dl = mp->bundle->links; dl; dl = dl->next)
usr.sbin/ppp/mp.c
579
link_PullPacket(&mp->link, MBUF_CTOP(q), q->m_len, mp->bundle);
usr.sbin/ppp/mp.c
612
mp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
usr.sbin/ppp/mp.c
616
if (!bundle->ncp.mp.active)
usr.sbin/ppp/mp.c
625
mp_Assemble(&bundle->ncp.mp, bp, p);
usr.sbin/ppp/mp.c
632
mp_Output(struct mp *mp, struct bundle *bundle, struct link *l,
usr.sbin/ppp/mp.c
662
link_PushPacket(l, m, bundle, LINK_QUEUES(l) - 1, PROTO_MP);
usr.sbin/ppp/mp.c
666
mp_FillPhysicalQueues(struct bundle *bundle)
usr.sbin/ppp/mp.c
668
struct mp *mp = &bundle->ncp.mp;
usr.sbin/ppp/mp.c
677
for (fdl = NULL, dl = bundle->links; dl; dl = dl->next) {
usr.sbin/ppp/mp.c
691
fdl = bundle->links;
usr.sbin/ppp/mp.c
700
dl = bundle->links;
usr.sbin/ppp/mp.c
745
if (!ncp_PushPacket(&bundle->ncp, &mp->out.af, bestlink))
usr.sbin/ppp/mp.c
782
mp_Output(mp, bundle, &dl->physical->link, mo, begin, end);
usr.sbin/ppp/mp.c
790
dl = bundle->links;
usr.sbin/ppp/mp.c
819
bundle_CalculateBandwidth(arg->bundle);
usr.sbin/ppp/mp.c
827
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
109
struct bundle *bundle; /* Parent */
usr.sbin/ppp/mp.h
132
extern void mp_Init(struct mp *, struct bundle *);
usr.sbin/ppp/mp.h
136
extern struct mbuf *mp_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/mp.h
137
extern int mp_FillPhysicalQueues(struct bundle *);
usr.sbin/ppp/mp.h
31
struct bundle;
usr.sbin/ppp/mppe.c
434
struct radius *r = &fp->bundle->radius;
usr.sbin/ppp/mppe.c
465
if (*fp->bundle->radius.cfg.file && fp->bundle->radius.mppe.policy)
usr.sbin/ppp/mppe.c
466
return fp->bundle->radius.mppe.policy == MPPE_POLICY_REQUIRED ? 1 : 0;
usr.sbin/ppp/mppe.c
473
MPPE_ConfigVal(struct bundle *bundle __unused, const struct ccp_config *cfg)
usr.sbin/ppp/mppe.c
483
if (*bundle->radius.cfg.file && bundle->radius.mppe.types) {
usr.sbin/ppp/mppe.c
484
if (bundle->radius.mppe.types & MPPE_TYPE_40BIT)
usr.sbin/ppp/mppe.c
486
if (bundle->radius.mppe.types & MPPE_TYPE_128BIT)
usr.sbin/ppp/mppe.c
512
MPPEInitOptsOutput(struct bundle *bundle, struct fsm_opt *o,
usr.sbin/ppp/mppe.c
528
mval = MPPE_ConfigVal(bundle, cfg);
usr.sbin/ppp/mppe.c
536
MPPESetOptsOutput(struct bundle *bundle, struct fsm_opt *o,
usr.sbin/ppp/mppe.c
547
mval = MPPE_ConfigVal(bundle, cfg);
usr.sbin/ppp/mppe.c
575
MPPESetOptsInput(struct bundle *bundle, struct fsm_opt *o,
usr.sbin/ppp/mppe.c
591
mval = MPPE_ConfigVal(bundle, cfg);
usr.sbin/ppp/mppe.c
679
MPPEInitInput(struct bundle *bundle __unused, struct fsm_opt *o)
usr.sbin/ppp/mppe.c
696
if (*bundle->radius.cfg.file && bundle->radius.mppe.recvkey) {
usr.sbin/ppp/mppe.c
697
if (mip->keylen > bundle->radius.mppe.recvkeylen)
usr.sbin/ppp/mppe.c
698
mip->keylen = bundle->radius.mppe.recvkeylen;
usr.sbin/ppp/mppe.c
701
memcpy(mip->mastkey, bundle->radius.mppe.recvkey, mip->keylen);
usr.sbin/ppp/mppe.c
735
MPPEInitOutput(struct bundle *bundle __unused, struct fsm_opt *o)
usr.sbin/ppp/mppe.c
752
if (*bundle->radius.cfg.file && bundle->radius.mppe.sendkey) {
usr.sbin/ppp/mppe.c
753
if (mop->keylen > bundle->radius.mppe.sendkeylen)
usr.sbin/ppp/mppe.c
754
mop->keylen = bundle->radius.mppe.sendkeylen;
usr.sbin/ppp/mppe.c
757
memcpy(mop->mastkey, bundle->radius.mppe.sendkey, mop->keylen);
usr.sbin/ppp/nat_cmd.c
107
if (!arg->bundle->NatEnabled) {
usr.sbin/ppp/nat_cmd.c
203
if (!arg->bundle->NatEnabled) {
usr.sbin/ppp/nat_cmd.c
240
if (!arg->bundle->NatEnabled) {
usr.sbin/ppp/nat_cmd.c
498
nat_LayerPush(struct bundle *bundle, struct link *l __unused, struct mbuf *bp,
usr.sbin/ppp/nat_cmd.c
501
if (!bundle->NatEnabled || *proto != PROTO_IP)
usr.sbin/ppp/nat_cmd.c
515
nat_LayerPull(struct bundle *bundle, struct link *l __unused, struct mbuf *bp,
usr.sbin/ppp/nat_cmd.c
523
if (!bundle->NatEnabled || *proto != PROTO_IP)
usr.sbin/ppp/nat_cmd.c
585
PacketCheck(bundle, AF_INET, MBUF_CTOP(bp), bp->m_len, NULL,
usr.sbin/ppp/ncp.c
115
mp_Init(&ncp->mp, bundle);
usr.sbin/ppp/ncp.c
118
ipcp_Init(&ncp->ipcp, bundle, &bundle->links->physical->link,
usr.sbin/ppp/ncp.c
119
&bundle->fsm);
usr.sbin/ppp/ncp.c
121
ipv6cp_Init(&ncp->ipv6cp, bundle, &bundle->links->physical->link,
usr.sbin/ppp/ncp.c
122
&bundle->fsm);
usr.sbin/ppp/ncp.c
149
struct bundle *bundle __unused
usr.sbin/ppp/ncp.c
151
struct bundle *bundle
usr.sbin/ppp/ncp.c
158
if (Enabled(bundle, OPT_IPCP)) {
usr.sbin/ppp/ncp.c
166
if (Enabled(bundle, OPT_IPV6CP)) {
usr.sbin/ppp/ncp.c
313
ncp_FillPhysicalQueues(struct ncp *ncp, struct bundle *bundle)
usr.sbin/ppp/ncp.c
317
if (bundle->ncp.mp.active)
usr.sbin/ppp/ncp.c
318
total = mp_FillPhysicalQueues(bundle);
usr.sbin/ppp/ncp.c
323
for (total = 0, dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/ncp.c
332
return total + ncp_QueueLen(&bundle->ncp);
usr.sbin/ppp/ncp.c
348
struct bundle *bundle = l->lcp.fsm.bundle;
usr.sbin/ppp/ncp.c
353
if ((res = ipcp_PushPacket(&bundle->ncp.ipcp, l)))
usr.sbin/ppp/ncp.c
356
res = ipv6cp_PushPacket(&bundle->ncp.ipv6cp, l);
usr.sbin/ppp/ncp.c
358
if ((res = ipv6cp_PushPacket(&bundle->ncp.ipv6cp, l)))
usr.sbin/ppp/ncp.c
361
res = ipcp_PushPacket(&bundle->ncp.ipcp, l);
usr.sbin/ppp/ncp.c
364
res = ipcp_PushPacket(&bundle->ncp.ipcp, l);
usr.sbin/ppp/ncp.c
459
struct ncp *ncp = &arg->bundle->ncp;
usr.sbin/ppp/ncp.c
96
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
392
ng_DescriptorRead(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/netgraph.c
402
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
40
extern struct mbuf *pap_Input(struct bundle *, struct link *, struct mbuf *);
usr.sbin/ppp/physical.c
105
static int physical_DescriptorWrite(struct fdescriptor *, struct bundle *,
usr.sbin/ppp/physical.c
170
p->link.stats.parent = dl->bundle->ncp.mp.active ?
usr.sbin/ppp/physical.c
171
&dl->bundle->ncp.mp.link.stats.total : NULL;
usr.sbin/ppp/physical.c
205
lcp_Init(&p->link.lcp, dl->bundle, &p->link, &dl->fsmp);
usr.sbin/ppp/physical.c
206
ccp_Init(&p->link.ccp, dl->bundle, &p->link, &dl->fsmp);
usr.sbin/ppp/physical.c
361
bundle_setsid(p->dl->bundle, 0);
usr.sbin/ppp/physical.c
386
physical_DescriptorWrite(struct fdescriptor *d, struct bundle *bundle __unused,
usr.sbin/ppp/physical.c
518
physical_DescriptorRead(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/physical.c
559
link_PullPacket(&p->link, rbuff, p->input.sz, bundle);
usr.sbin/ppp/physical.c
567
link_PullPacket(&p->link, rbuff, n, bundle);
usr.sbin/ppp/physical.c
593
p->link.lcp.fsm.bundle = dl->bundle;
usr.sbin/ppp/physical.c
602
p->link.ccp.fsm.bundle = dl->bundle;
usr.sbin/ppp/physical.c
619
p->link.stats.parent = dl->bundle->ncp.mp.active ?
usr.sbin/ppp/physical.c
620
&dl->bundle->ncp.mp.link.stats.total : NULL;
usr.sbin/ppp/physical.c
641
Enabled(dl->bundle, OPT_THROUGHPUT));
usr.sbin/ppp/physical.c
684
if (Enabled(p->dl->bundle, OPT_KEEPSESSION) ||
usr.sbin/ppp/physical.c
973
fprintf(lockfile, "%s%d\n", TUN_NAME, p->dl->bundle->unit);
usr.sbin/ppp/physical.c
981
Enabled(p->dl->bundle, OPT_THROUGHPUT));
usr.sbin/ppp/physical.h
160
extern void physical_DescriptorRead(struct fdescriptor *, struct bundle *,
usr.sbin/ppp/physical.h
22
struct bundle;
usr.sbin/ppp/physical.h
25
struct bundle;
usr.sbin/ppp/pred.c
154
Pred1InitInput(struct bundle *bundle __unused, struct fsm_opt *o __unused)
usr.sbin/ppp/pred.c
164
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
104
if (p->bundle->ncp.ipcp.fsm.state == ST_OPENED)
usr.sbin/ppp/prompt.c
107
else if (!Enabled(p->bundle, OPT_IPCP) &&
usr.sbin/ppp/prompt.c
108
p->bundle->ncp.ipv6cp.fsm.state == ST_OPENED)
usr.sbin/ppp/prompt.c
111
else if (bundle_Phase(p->bundle) == PHASE_NETWORK)
usr.sbin/ppp/prompt.c
113
else if (bundle_Phase(p->bundle) == PHASE_AUTHENTICATE)
usr.sbin/ppp/prompt.c
183
prompt_Read(struct fdescriptor *d, struct bundle *bundle,
usr.sbin/ppp/prompt.c
204
if (!command_Decode(bundle, linebuff, n, p, p->src.from))
usr.sbin/ppp/prompt.c
284
arg.bundle = bundle;
usr.sbin/ppp/prompt.c
305
prompt_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused,
usr.sbin/ppp/prompt.c
314
prompt_Create(struct server *s, struct bundle *bundle, int fd)
usr.sbin/ppp/prompt.c
353
p->bundle = bundle;
usr.sbin/ppp/prompt.h
37
struct bundle;
usr.sbin/ppp/prompt.h
47
struct bundle *bundle; /* who I'm controlling */
usr.sbin/ppp/prompt.h
69
extern struct prompt *prompt_Create(struct server *, struct bundle *, int);
usr.sbin/ppp/proto.c
72
proto_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/proto.c
85
proto_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/radius.c
1025
if (Enabled(authp->physical->dl->bundle, OPT_NAS_IP_ADDRESS) &&
usr.sbin/ppp/radius.c
1035
if (Enabled(authp->physical->dl->bundle, OPT_NAS_IDENTIFIER) &&
usr.sbin/ppp/radius.c
1146
dl->bundle->cfg.auth.name, (long)getpid(),
usr.sbin/ppp/radius.c
1151
dl->bundle->ncp.mp.active ?
usr.sbin/ppp/radius.c
1152
dl->bundle->ncp.mp.server.socket.sun_path : "");
usr.sbin/ppp/radius.c
1210
if (Enabled(dl->bundle, OPT_NAS_IP_ADDRESS) &&
usr.sbin/ppp/radius.c
1220
if (Enabled(dl->bundle, OPT_NAS_IDENTIFIER) &&
usr.sbin/ppp/radius.c
1334
struct bundle *bundle = (struct bundle *)v;
usr.sbin/ppp/radius.c
1336
timer_Stop(&bundle->radius.alive.timer);
usr.sbin/ppp/radius.c
1337
bundle->radius.alive.timer.load = bundle->radius.alive.interval * SECTICKS;
usr.sbin/ppp/radius.c
1338
if (bundle->radius.alive.timer.load) {
usr.sbin/ppp/radius.c
1339
radius_Account(&bundle->radius, &bundle->radacct,
usr.sbin/ppp/radius.c
1340
bundle->links, RAD_ALIVE, &bundle->ncp.ipcp.throughput);
usr.sbin/ppp/radius.c
1341
timer_Start(&bundle->radius.alive.timer);
usr.sbin/ppp/radius.c
1346
radius_StartTimer(struct bundle *bundle)
usr.sbin/ppp/radius.c
1348
if (*bundle->radius.cfg.file && bundle->radius.alive.interval) {
usr.sbin/ppp/radius.c
1349
bundle->radius.alive.timer.func = radius_alive;
usr.sbin/ppp/radius.c
1350
bundle->radius.alive.timer.name = "radius alive";
usr.sbin/ppp/radius.c
1351
bundle->radius.alive.timer.load = bundle->radius.alive.interval * SECTICKS;
usr.sbin/ppp/radius.c
1352
bundle->radius.alive.timer.arg = bundle;
usr.sbin/ppp/radius.c
1353
radius_alive(bundle);
usr.sbin/ppp/radius.c
251
struct bundle *bundle;
usr.sbin/ppp/radius.c
401
bundle = r->cx.auth->physical->dl->bundle;
usr.sbin/ppp/radius.c
413
!ncprange_aton(&dest, &bundle->ncp, argv[0])) ||
usr.sbin/ppp/radius.c
414
!ncpaddr_aton(&gw, &bundle->ncp, argv[1]))
usr.sbin/ppp/radius.c
433
ncpaddr_setip4(&gw, bundle->ncp.ipcp.peer_ip);
usr.sbin/ppp/radius.c
486
bundle = r->cx.auth->physical->dl->bundle;
usr.sbin/ppp/radius.c
497
!ncprange_aton(&dest, &bundle->ncp, argv[0])) ||
usr.sbin/ppp/radius.c
498
!ncpaddr_aton(&gw, &bundle->ncp, argv[1]))
usr.sbin/ppp/radius.c
511
ncpaddr_copy(&gw, &bundle->ncp.ipv6cp.hisaddr);
usr.sbin/ppp/radius.c
685
radius_Read(struct fdescriptor *d, struct bundle *bundle __unused,
usr.sbin/ppp/radius.c
745
radius_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused,
usr.sbin/ppp/radius.c
868
slot = p->dl->bundle->iface->index;
usr.sbin/ppp/radius.c
871
slot = p->dl->bundle->unit;
usr.sbin/ppp/radius.h
104
struct bundle;
usr.sbin/ppp/radius.h
111
extern void radius_StartTimer(struct bundle *);
usr.sbin/ppp/route.c
379
route_IfDelete(struct bundle *bundle, int all)
usr.sbin/ppp/route.c
389
log_Printf(LogDEBUG, "route_IfDelete (%d)\n", bundle->iface->index);
usr.sbin/ppp/route.c
429
if (rtm->rtm_index == bundle->iface->index &&
usr.sbin/ppp/route.c
452
rt_Set(bundle, RTM_DELETE, &range, NULL, 0, 0);
usr.sbin/ppp/route.c
470
route_UpdateMTU(struct bundle *bundle)
usr.sbin/ppp/route.c
479
log_Printf(LogDEBUG, "route_UpdateMTU (%d)\n", bundle->iface->index);
usr.sbin/ppp/route.c
513
sa[RTAX_GATEWAY] && rtm->rtm_index == bundle->iface->index) {
usr.sbin/ppp/route.c
518
ncprange_ntoa(&dst), bundle->iface->mtu);
usr.sbin/ppp/route.c
520
rt_Update(bundle, sa[RTAX_DST], sa[RTAX_GATEWAY], sa[RTAX_NETMASK],
usr.sbin/ppp/route.c
543
route_Change(struct bundle *bundle, struct sticky_route *r,
usr.sbin/ppp/route.c
552
rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
usr.sbin/ppp/route.c
557
rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
usr.sbin/ppp/route.c
562
if (bundle->ncp.ipcp.ns.dns[0].s_addr == INADDR_NONE)
usr.sbin/ppp/route.c
564
rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
usr.sbin/ppp/route.c
568
if (bundle->ncp.ipcp.ns.dns[1].s_addr == INADDR_NONE)
usr.sbin/ppp/route.c
570
rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
usr.sbin/ppp/route.c
578
rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
usr.sbin/ppp/route.c
583
rt_Set(bundle, RTM_DELETE, &r->dst, NULL, 1, 0);
usr.sbin/ppp/route.c
591
rt_Set(bundle, RTM_ADD, &r->dst, &r->gw, 1, 0);
usr.sbin/ppp/route.c
734
rt_Set(struct bundle *bundle, int cmd, const struct ncprange *dst,
usr.sbin/ppp/route.c
757
rtmes.m_rtm.rtm_seq = ++bundle->routing_seq;
usr.sbin/ppp/route.c
762
if (bundle->ncp.cfg.sendpipe > 0) {
usr.sbin/ppp/route.c
763
rtmes.m_rtm.rtm_rmx.rmx_sendpipe = bundle->ncp.cfg.sendpipe;
usr.sbin/ppp/route.c
766
if (bundle->ncp.cfg.recvpipe > 0) {
usr.sbin/ppp/route.c
767
rtmes.m_rtm.rtm_rmx.rmx_recvpipe = bundle->ncp.cfg.recvpipe;
usr.sbin/ppp/route.c
774
add_scope((struct sockaddr *)&sadst, bundle->iface->index);
usr.sbin/ppp/route.c
787
add_scope((struct sockaddr *)&sagw, bundle->iface->index);
usr.sbin/ppp/route.c
859
rt_Update(struct bundle *bundle, const struct sockaddr *dst,
usr.sbin/ppp/route.c
878
rtmes.m_rtm.rtm_seq = ++bundle->routing_seq;
usr.sbin/ppp/route.c
882
if (bundle->ncp.cfg.sendpipe > 0) {
usr.sbin/ppp/route.c
883
rtmes.m_rtm.rtm_rmx.rmx_sendpipe = bundle->ncp.cfg.sendpipe;
usr.sbin/ppp/route.c
887
if (bundle->ncp.cfg.recvpipe > 0) {
usr.sbin/ppp/route.c
888
rtmes.m_rtm.rtm_rmx.rmx_recvpipe = bundle->ncp.cfg.recvpipe;
usr.sbin/ppp/route.c
892
rtmes.m_rtm.rtm_rmx.rmx_mtu = bundle->iface->mtu;
usr.sbin/ppp/route.h
31
struct bundle;
usr.sbin/ppp/route.h
57
extern void route_IfDelete(struct bundle *, int);
usr.sbin/ppp/route.h
58
extern void route_UpdateMTU(struct bundle *);
usr.sbin/ppp/route.h
60
extern void route_Change(struct bundle *, struct sticky_route *,
usr.sbin/ppp/route.h
66
extern void route_Clean(struct bundle *, struct sticky_route *);
usr.sbin/ppp/route.h
70
extern int rt_Set(struct bundle *, int, const struct ncprange *,
usr.sbin/ppp/route.h
72
extern void rt_Update(struct bundle *, const struct sockaddr *,
usr.sbin/ppp/server.c
157
if ((p = prompt_Create(s, bundle, wfd)) == NULL) {
usr.sbin/ppp/server.c
188
descriptor_Read(&p->desc, bundle, fdset);
usr.sbin/ppp/server.c
195
server_Write(struct fdescriptor *d __unused, struct bundle *bundle __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
368
server_Close(bundle);
usr.sbin/ppp/server.c
387
server_Close(struct bundle *bundle __unused)
usr.sbin/ppp/server.c
410
server_Clear(struct bundle *bundle)
usr.sbin/ppp/server.c
414
ret = server_Close(bundle);
usr.sbin/ppp/server.c
89
server_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset)
usr.sbin/ppp/server.h
29
struct bundle;
usr.sbin/ppp/server.h
57
extern enum server_stat server_LocalOpen(struct bundle *, const char *, mode_t);
usr.sbin/ppp/server.h
58
extern enum server_stat server_TcpOpen(struct bundle *, u_short);
usr.sbin/ppp/server.h
59
extern enum server_stat server_Reopen(struct bundle *);
usr.sbin/ppp/server.h
60
extern int server_Close(struct bundle *);
usr.sbin/ppp/server.h
61
extern int server_Clear(struct bundle *);
usr.sbin/ppp/slcompress.c
591
arg->bundle->ncp.ipcp.vj.slstat.sls_compressed,
usr.sbin/ppp/slcompress.c
592
arg->bundle->ncp.ipcp.vj.slstat.sls_packets);
usr.sbin/ppp/slcompress.c
594
arg->bundle->ncp.ipcp.vj.slstat.sls_misses,
usr.sbin/ppp/slcompress.c
595
arg->bundle->ncp.ipcp.vj.slstat.sls_searches);
usr.sbin/ppp/slcompress.c
597
arg->bundle->ncp.ipcp.vj.slstat.sls_compressedin,
usr.sbin/ppp/slcompress.c
598
arg->bundle->ncp.ipcp.vj.slstat.sls_uncompressedin);
usr.sbin/ppp/slcompress.c
600
arg->bundle->ncp.ipcp.vj.slstat.sls_errorin,
usr.sbin/ppp/slcompress.c
601
arg->bundle->ncp.ipcp.vj.slstat.sls_tossed);
usr.sbin/ppp/sync.c
52
sync_LayerPush(struct bundle *bundle __unused, struct link *l __unused,
usr.sbin/ppp/sync.c
62
sync_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp,
usr.sbin/ppp/systems.c
316
ReadSystem(struct bundle *bundle, const char *name, const char *file,
usr.sbin/ppp/systems.c
359
n = ReadSystem(bundle, name, arg, prompt, cx, how);
usr.sbin/ppp/systems.c
409
command_Run(bundle, argc, (char const *const *)argv, prompt,
usr.sbin/ppp/systems.c
477
system_Select(struct bundle *bundle, const char *name, const char *file,
usr.sbin/ppp/systems.c
482
return ReadSystem(bundle, name, file, prompt, cx, SYSTEM_EXEC);
usr.sbin/ppp/systems.h
33
struct bundle;
usr.sbin/ppp/systems.h
36
extern int system_Select(struct bundle *bundle, const char *, const char *,
usr.sbin/ppp/tcpmss.c
149
tcpmss_Check(struct bundle *bundle, struct mbuf *bp)
usr.sbin/ppp/tcpmss.c
158
if (!Enabled(bundle, OPT_TCPMSSFIXUP))
usr.sbin/ppp/tcpmss.c
178
MAXMSS4(bundle->iface->mtu));
usr.sbin/ppp/tcpmss.c
208
MAXMSS6(bundle->iface->mtu));
usr.sbin/ppp/tcpmss.c
219
tcpmss_LayerPush(struct bundle *bundle, struct link *l __unused,
usr.sbin/ppp/tcpmss.c
222
return tcpmss_Check(bundle, bp);
usr.sbin/ppp/tcpmss.c
226
tcpmss_LayerPull(struct bundle *bundle, struct link *l __unused,
usr.sbin/ppp/tcpmss.c
229
return tcpmss_Check(bundle, bp);
usr.sbin/ppp/tun.c
109
info.mtu = bundle->iface->mtu;
usr.sbin/ppp/tun.c
111
info.baudrate = bundle->bandwidth;
usr.sbin/ppp/tun.c
115
if (ID0ioctl(bundle->dev.fd, TUNSIFINFO, &info) < 0)
usr.sbin/ppp/tun.c
84
tun_configure(struct bundle *bundle)
usr.sbin/ppp/tun.c
97
sprintf(ifr.ifr_name, "tun%d", bundle->unit);
usr.sbin/ppp/tun.c
98
ifr.ifr_mtu = bundle->iface->mtu;
usr.sbin/ppp/tun.h
37
struct bundle;
usr.sbin/ppp/tun.h
39
extern void tun_configure(struct bundle *);
usr.sbin/ppp/vjcomp.c
165
vj_LayerPull(struct bundle *bundle, struct link *l __unused, struct mbuf *bp,
usr.sbin/ppp/vjcomp.c
184
return VjUncompressTcp(&bundle->ncp.ipcp, bp, type);
usr.sbin/ppp/vjcomp.c
73
vj_LayerPush(struct bundle *bundle, struct link *l __unused, struct mbuf *bp,
usr.sbin/ppp/vjcomp.c
78
u_short cproto = bundle->ncp.ipcp.peer_compproto >> 16;
usr.sbin/ppp/vjcomp.c
84
type = sl_compress_tcp(bp, pip, &bundle->ncp.ipcp.vj.cslc,
usr.sbin/ppp/vjcomp.c
85
&bundle->ncp.ipcp.vj.slstat,
usr.sbin/ppp/vjcomp.c
86
bundle->ncp.ipcp.peer_compproto & 0xff);
usr.sbin/ppp/vjcomp.h
32
struct bundle;