Home | History | Annotate | Download | only in tcpdump

Lines Matching defs:pgm

18     "@(#) $Header: /tcpdump/master/tcpdump/print-pgm.c,v 1.1.2.5 2005/06/07 22:06:16 guy Exp $";
42 * PGM header (RFC 3208)
152 register const struct pgm_header *pgm;
168 pgm = (struct pgm_header *)bp;
182 if (!TTEST(pgm->pgm_dport)) {
185 (void)printf("%s > %s: [|pgm]",
192 (void)printf("%s > %s: [|pgm]",
199 sport = EXTRACT_16BITS(&pgm->pgm_sport);
200 dport = EXTRACT_16BITS(&pgm->pgm_dport);
229 TCHECK(*pgm);
231 (void)printf("PGM, length %u", pgm->pgm_length);
236 if (length > pgm->pgm_length)
237 length = pgm->pgm_length;
240 pgm->pgm_gsid[0],
241 pgm->pgm_gsid[1],
242 pgm->pgm_gsid[2],
243 pgm->pgm_gsid[3],
244 pgm->pgm_gsid[4],
245 pgm->pgm_gsid[5]);
246 switch (pgm->pgm_type) {
250 spm = (struct pgm_spm *)(pgm + 1);
285 poll = (struct pgm_poll *)(pgm + 1);
297 polr = (struct pgm_polr *)(pgm + 1);
342 odata = (struct pgm_data *)(pgm + 1);
354 rdata = (struct pgm_data *)(pgm + 1);
375 nak = (struct pgm_nak *)(pgm + 1);
431 switch (pgm->pgm_type) {
454 (void)printf("UNKNOWN type %0x02x", pgm->pgm_type);
458 if (pgm->pgm_options & PGM_OPT_BIT_PRESENT) {
751 (void)printf(" [%u]", EXTRACT_16BITS(&pgm->pgm_length));
756 fputs("[|pgm]", stdout);