Lines Matching refs:protp
77 struct protent *protp; in demand_conf() local
105 for (i = 0; (protp = protocols[i]) != NULL; ++i) in demand_conf()
106 if (protp->enabled_flag && protp->demand_conf != NULL) in demand_conf()
107 if (!((*protp->demand_conf)(0))) in demand_conf()
108 fatal("unable to set demand configuration on %s", protp->name); in demand_conf()
119 struct protent *protp; in demand_block() local
121 for (i = 0; (protp = protocols[i]) != NULL; ++i) in demand_block()
122 if (protp->enabled_flag && protp->demand_conf != NULL && in demand_block()
123 !sifnpmode(0, protp->protocol & ~0x8000, NPMODE_QUEUE)) in demand_block()
124 fatal("unable to enable queuing for %s", protp->name); in demand_block()
138 struct protent *protp; in demand_discard() local
140 for (i = 0; (protp = protocols[i]) != NULL; ++i) in demand_discard()
141 if (protp->enabled_flag && protp->demand_conf != NULL && in demand_discard()
142 !sifnpmode(0, protp->protocol & ~0x8000, NPMODE_DROP)) in demand_discard()
143 fatal("unable to disable %s", protp->name); in demand_discard()
167 struct protent *protp; in demand_unblock() local
169 for (i = 0; (protp = protocols[i]) != NULL; ++i) in demand_unblock()
170 if (protp->enabled_flag && protp->demand_conf != NULL && in demand_unblock()
171 !sifnpmode(0, protp->protocol & ~0x8000, NPMODE_PASS)) in demand_unblock()
172 fatal("unable to enable %s", protp->name); in demand_unblock()
341 struct protent *protp; local
355 for (i = 0; (protp = protocols[i]) != NULL; ++i) {
356 if (protp->protocol < 0xC000 && (protp->protocol & ~0x8000) == proto) {
357 if (!protp->enabled_flag) {
358 dbglog("%s: not enabled; not bringing up link", protp->name);
361 if (protp->active_pkt == NULL) {
362 notice("%s: no active test; bringing up link", protp->name);
365 i = (*protp->active_pkt)(p, len);
367 notice("%s: active test; bringing up link", protp->name);
370 protp->name);