Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:ap

198 	register const struct aarp *ap;
200 #define AT(member) ataddr_string((ap->member[1]<<8)|ap->member[2],ap->member[3])
203 ap = (const struct aarp *)bp;
204 if (EXTRACT_16BITS(&ap->htype) == 1 &&
205 EXTRACT_16BITS(&ap->ptype) == ETHERTYPE_ATALK &&
206 ap->halen == 6 && ap->palen == 4 )
207 switch (EXTRACT_16BITS(&ap->op)) {
216 AT(pdaddr), etheraddr_string(ap->hdaddr));
225 length, EXTRACT_16BITS(&ap->op), EXTRACT_16BITS(&ap->htype),
226 EXTRACT_16BITS(&ap->ptype), ap->halen, ap->palen);
258 atp_print(register const struct atATP *ap, u_int length)
263 if ((const u_char *)(ap + 1) > snapend) {
268 length -= sizeof(*ap);
269 switch (ap->control & 0xc0) {
273 ap->control & atpXO? " " : "*",
274 EXTRACT_16BITS(&ap->transID));
276 atp_bitmap_print(ap->bitmap);
281 switch (ap->control & (atpEOM|atpSTS)) {
296 ap->control & atpEOM? "*" : " ",
297 EXTRACT_16BITS(&ap->transID), ap->bitmap, length);
298 switch (ap->control & (atpXO|atpSTS)) {
312 (void)printf(" atp-rel %d", EXTRACT_16BITS(&ap->transID));
314 atp_bitmap_print(ap->bitmap);
321 if (ap->control & (atpXO|atpEOM|atpSTS)) {
323 if (ap->control & atpXO) {
327 if (ap->control & atpEOM) {
331 if (ap->control & atpSTS) {
340 (void)printf(" atp-0x%x %d (%d)", ap->control,
341 EXTRACT_16BITS(&ap->transID), length);
344 data = EXTRACT_32BITS(&ap->userData);