Lines Matching defs:ap
191 register const struct aarp *ap;
193 #define AT(member) ataddr_string(ndo, (ap->member[1]<<8)|ap->member[2],ap->member[3])
196 ap = (const struct aarp *)bp;
197 if (EXTRACT_16BITS(&ap->htype) == 1 &&
198 EXTRACT_16BITS(&ap->ptype) == ETHERTYPE_ATALK &&
199 ap->halen == 6 && ap->palen == 4 )
200 switch (EXTRACT_16BITS(&ap->op)) {
207 ND_PRINT((ndo, "reply %s is-at %s", AT(psaddr), etheraddr_string(ndo, ap->hsaddr)));
215 length, EXTRACT_16BITS(&ap->op), EXTRACT_16BITS(&ap->htype),
216 EXTRACT_16BITS(&ap->ptype), ap->halen, ap->palen));
250 register const struct atATP *ap, u_int length)
255 if ((const u_char *)(ap + 1) > ndo->ndo_snapend) {
260 if (length < sizeof(*ap)) {
264 length -= sizeof(*ap);
265 switch (ap->control & 0xc0) {
269 ap->control & atpXO? " " : "*",
270 EXTRACT_16BITS(&ap->transID)));
272 atp_bitmap_print(ndo, ap->bitmap);
277 switch (ap->control & (atpEOM|atpSTS)) {
292 ap->control & atpEOM? "*" : " ",
293 EXTRACT_16BITS(&ap->transID), ap->bitmap, length));
294 switch (ap->control & (atpXO|atpSTS)) {
308 ND_PRINT((ndo, " atp-rel %d", EXTRACT_16BITS(&ap->transID)));
310 atp_bitmap_print(ndo, ap->bitmap);
317 if (ap->control & (atpXO|atpEOM|atpSTS)) {
319 if (ap->control & atpXO) {
323 if (ap->control & atpEOM) {
327 if (ap->control & atpSTS) {
336 ND_PRINT((ndo, " atp-0x%x %d (%u)", ap->control,
337 EXTRACT_16BITS(&ap->transID), length));
340 data = EXTRACT_32BITS(&ap->userData);