Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:trp

33 #define IS_SOURCE_ROUTED(trp)	((trp)->token_shost[0] & 0x80)
34 #define FRAME_TYPE(trp) (((trp)->token_fc & 0xC0) >> 6)
37 #define BROADCAST(trp) ((ntohs((trp)->token_rcf) & 0xE000) >> 13)
38 #define RIF_LENGTH(trp) ((ntohs((trp)->token_rcf) & 0x1f00) >> 8)
39 #define DIRECTION(trp) ((ntohs((trp)->token_rcf) & 0x0080) >> 7)
40 #define LARGEST_FRAME(trp) ((ntohs((trp)->token_rcf) & 0x0070) >> 4)
41 #define RING_NUMBER(trp, x) ((ntohs((trp)->token_rseg[x]) & 0xfff0) >> 4)
42 #define BRIDGE_NUMBER(trp, x) ((ntohs((trp)->token_rseg[x]) & 0x000f))
43 #define SEGMENT_COUNT(trp) ((int)((RIF_LENGTH(trp) - 2) / 2))