Lines Matching refs:egp
23 "@(#) $Header: /tcpdump/master/tcpdump/print-egp.c,v 1.37 2005/01/12 11:19:09 hannes Exp $ (LBL)";
138 egpnrprint(register const struct egp_packet *egp)
148 addr = egp->egp_sourcenet;
162 cp = (u_int8_t *)(egp + 1);
164 t_gateways = egp->egp_intgw + egp->egp_extgw;
184 gateways < (int)egp->egp_intgw ? "int" : "ext",
219 register const struct egp_packet *egp;
224 egp = (struct egp_packet *)bp;
225 if (!TTEST2(*egp, length)) {
226 printf("[|egp]");
229 (void)printf("egp: ");
231 if (egp->egp_version != EGP_VERSION) {
232 printf("[version %d]", egp->egp_version);
235 printf("as:%d seq:%d", EXTRACT_16BITS(&egp->egp_as), EXTRACT_16BITS(&egp->egp_sequence));
237 type = egp->egp_type;
238 code = egp->egp_code;
239 status = egp->egp_status;
260 EXTRACT_16BITS(&egp->egp_hello),
261 EXTRACT_16BITS(&egp->egp_poll));
310 if (egp->egp_status <= EGPS_DOWN)
314 printf(" net:%s", ipaddr_string(&egp->egp_sourcenet));
328 ipaddr_string(&egp->egp_sourcenet),
329 egp->egp_intgw,
330 egp->egp_extgw);
332 egpnrprint(egp);
342 if (EXTRACT_16BITS(&egp->egp_reason) <= EGPR_UVERSION)
343 printf(" %s", egp_reasons[EXTRACT_16BITS(&egp->egp_reason)]);
345 printf(" [reason %d]", EXTRACT_16BITS(&egp->egp_reason));