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()
231 if (egp->egp_version != EGP_VERSION) { in egp_print()
232 printf("[version %d]", egp->egp_version); in egp_print()
235 printf("as:%d seq:%d", EXTRACT_16BITS(&egp->egp_as), EXTRACT_16BITS(&egp->egp_sequence)); in egp_print()
237 type = egp->egp_type; in egp_print()
238 code = egp->egp_code; in egp_print()
239 status = egp->egp_status; in egp_print()
260 EXTRACT_16BITS(&egp->egp_hello), in egp_print()
261 EXTRACT_16BITS(&egp->egp_poll)); in egp_print()
310 if (egp->egp_status <= EGPS_DOWN) in egp_print()
314 printf(" net:%s", ipaddr_string(&egp->egp_sourcenet)); in egp_print()
328 ipaddr_string(&egp->egp_sourcenet), in egp_print()
329 egp->egp_intgw, in egp_print()
330 egp->egp_extgw); in egp_print()
332 egpnrprint(egp); in egp_print()
342 if (EXTRACT_16BITS(&egp->egp_reason) <= EGPR_UVERSION) in egp_print()
343 printf(" %s", egp_reasons[EXTRACT_16BITS(&egp->egp_reason)]); in egp_print()
345 printf(" [reason %d]", EXTRACT_16BITS(&egp->egp_reason)); in egp_print()