Lines Matching defs:TOK
69 #define TOK(tag, byte, mask, shift) ((GET_U_1(&(((const u_char *) tag)[byte])) & (mask)) >> (shift))
72 #define DSA_MODE(tag) TOK(tag, 0, 0xc0, 6)
77 #define DSA_TAGGED(tag) TOK(tag, 0, 0x20, 5)
78 #define DSA_DEV(tag) TOK(tag, 0, 0x1f, 0)
79 #define DSA_PORT(tag) TOK(tag, 1, 0xf8, 3)
80 #define DSA_TRUNK(tag) TOK(tag, 1, 0x04, 2)
81 #define DSA_RX_SNIFF(tag) TOK(tag, 1, 0x04, 2)
82 #define DSA_CFI(tag) TOK(tag, 1, 0x01, 0)
83 #define DSA_PRI(tag) TOK(tag, 2, 0xe0, 5)
84 #define DSA_VID(tag) ((u_short)((TOK(tag, 2, 0x0f, 0) << 8) | (TOK(tag, 3, 0xff, 0))))
85 #define DSA_CODE(tag) ((TOK(tag, 1, 0x06, 1) << 1) | TOK(tag, 2, 0x10, 4))