Lines Matching defs:pgm
18 "@(#) $Header: /tcpdump/master/tcpdump/print-pgm.c,v 1.5 2005-06-07 22:05:58 guy Exp $";
161 register const struct pgm_header *pgm;
177 pgm = (struct pgm_header *)bp;
191 if (!TTEST(pgm->pgm_dport)) {
194 (void)printf("%s > %s: [|pgm]",
201 (void)printf("%s > %s: [|pgm]",
208 sport = EXTRACT_16BITS(&pgm->pgm_sport);
209 dport = EXTRACT_16BITS(&pgm->pgm_dport);
238 TCHECK(*pgm);
240 (void)printf("PGM, length %u", pgm->pgm_length);
245 if (length > pgm->pgm_length)
246 length = pgm->pgm_length;
249 pgm->pgm_gsid[0],
250 pgm->pgm_gsid[1],
251 pgm->pgm_gsid[2],
252 pgm->pgm_gsid[3],
253 pgm->pgm_gsid[4],
254 pgm->pgm_gsid[5]);
255 switch (pgm->pgm_type) {
259 spm = (struct pgm_spm *)(pgm + 1);
294 poll = (struct pgm_poll *)(pgm + 1);
306 polr = (struct pgm_polr *)(pgm + 1);
351 odata = (struct pgm_data *)(pgm + 1);
363 rdata = (struct pgm_data *)(pgm + 1);
384 nak = (struct pgm_nak *)(pgm + 1);
440 switch (pgm->pgm_type) {
461 ack = (struct pgm_ack *)(pgm + 1);
474 (void)printf("UNKNOWN type %0x02x", pgm->pgm_type);
478 if (pgm->pgm_options & PGM_OPT_BIT_PRESENT) {
839 (void)printf(" [%u]", EXTRACT_16BITS(&pgm->pgm_length));
844 fputs("[|pgm]", stdout);