Lines Matching refs:protp
71 struct protent *protp; in demand_conf() local
99 for (i = 0; (protp = protocols[i]) != NULL; ++i) in demand_conf()
100 if (protp->enabled_flag && protp->demand_conf != NULL) in demand_conf()
101 if (!((*protp->demand_conf)(0))) in demand_conf()
102 fatal("unable to set demand configuration on %s", protp->name); in demand_conf()
113 struct protent *protp; in demand_block() local
115 for (i = 0; (protp = protocols[i]) != NULL; ++i) in demand_block()
116 if (protp->enabled_flag && protp->demand_conf != NULL && in demand_block()
117 !sifnpmode(0, protp->protocol & ~0x8000, NPMODE_QUEUE)) in demand_block()
118 fatal("unable to enable queuing for %s", protp->name); in demand_block()
132 struct protent *protp; in demand_discard() local
134 for (i = 0; (protp = protocols[i]) != NULL; ++i) in demand_discard()
135 if (protp->enabled_flag && protp->demand_conf != NULL && in demand_discard()
136 !sifnpmode(0, protp->protocol & ~0x8000, NPMODE_DROP)) in demand_discard()
137 fatal("unable to disable %s", protp->name); in demand_discard()
161 struct protent *protp; in demand_unblock() local
163 for (i = 0; (protp = protocols[i]) != NULL; ++i) in demand_unblock()
164 if (protp->enabled_flag && protp->demand_conf != NULL && in demand_unblock()
165 !sifnpmode(0, protp->protocol & ~0x8000, NPMODE_PASS)) in demand_unblock()
166 fatal("unable to enable %s", protp->name); in demand_unblock()
335 struct protent *protp; local
349 for (i = 0; (protp = protocols[i]) != NULL; ++i) {
350 if (protp->protocol < 0xC000 && (protp->protocol & ~0x8000) == proto) {
351 if (!protp->enabled_flag) {
352 dbglog("%s: not enabled; not bringing up link", protp->name);
355 if (protp->active_pkt == NULL) {
356 notice("%s: no active test; bringing up link", protp->name);
359 i = (*protp->active_pkt)(p, len);
361 notice("%s: active test; bringing up link", protp->name);
364 protp->name);