Lines Matching refs:egp
138 egpnrprint(register const struct egp_packet *egp) in egpnrprint() argument
148 addr = egp->egp_sourcenet; in egpnrprint()
162 cp = (u_int8_t *)(egp + 1); in egpnrprint()
164 t_gateways = egp->egp_intgw + egp->egp_extgw; in egpnrprint()
184 gateways < (int)egp->egp_intgw ? "int" : "ext", in egpnrprint()
219 register const struct egp_packet *egp; in egp_print() local
224 egp = (struct egp_packet *)bp; in egp_print()
225 if (!TTEST2(*egp, length)) { in egp_print()
232 egp->egp_version, in egp_print()
233 EXTRACT_16BITS(&egp->egp_as), in egp_print()
234 EXTRACT_16BITS(&egp->egp_sequence), in egp_print()
239 egp->egp_version, in egp_print()
242 if (egp->egp_version != EGP_VERSION) { in egp_print()
243 printf("[version %d]", egp->egp_version); in egp_print()
247 type = egp->egp_type; in egp_print()
248 code = egp->egp_code; in egp_print()
249 status = egp->egp_status; in egp_print()
270 EXTRACT_16BITS(&egp->egp_hello), in egp_print()
271 EXTRACT_16BITS(&egp->egp_poll)); in egp_print()
320 if (egp->egp_status <= EGPS_DOWN) in egp_print()
324 printf(" net:%s", ipaddr_string(&egp->egp_sourcenet)); in egp_print()
338 ipaddr_string(&egp->egp_sourcenet), in egp_print()
339 egp->egp_intgw, in egp_print()
340 egp->egp_extgw); in egp_print()
342 egpnrprint(egp); in egp_print()
352 if (EXTRACT_16BITS(&egp->egp_reason) <= EGPR_UVERSION) in egp_print()
353 printf(" %s", egp_reasons[EXTRACT_16BITS(&egp->egp_reason)]); in egp_print()
355 printf(" [reason %d]", EXTRACT_16BITS(&egp->egp_reason)); in egp_print()