Lines Matching +full:0 +full:x0007ffff

35 #define TOM_RSVD	0x0
36 #define TOM_ASSNSETUP 0x1
37 #define TOM_ASSNTEARD 0x2
38 #define TOM_CONFIG 0x3
39 #define TOM_QUERY 0x4
40 #define TOM_EVENTNOT 0x5
41 #define TOM_PKTREDIR 0x6
42 #define TOM_HEARTBT 0x0F
43 #define TOM_ASSNSETREP 0x11
44 #define TOM_CONFIGREP 0x13
45 #define TOM_QUERYREP 0x14
50 #define ZERO_TTLV 0x01
51 #define ZERO_MORE_TTLV 0x02
52 #define ONE_MORE_TTLV 0x04
53 #define ZERO_TLV 0x00
54 #define ONE_TLV 0x10
55 #define TWO_TLV 0x20
56 #define MAX_TLV 0xF0
89 if (tom > 0) { in tom_valid()
90 if (tom >= 0x7 && tom <= 0xe) in tom_valid()
91 return 0; in tom_valid()
92 if (tom == 0x10) in tom_valid()
93 return 0; in tom_valid()
94 if (tom > 0x14) in tom_valid()
95 return 0; in tom_valid()
98 return 0; in tom_valid()
104 if (node <= 0x3FFFFFFF) in ForCES_node()
106 if (node >= 0x40000000 && node <= 0x7FFFFFFF) in ForCES_node()
108 if (node >= 0xC0000000 && node <= 0xFFFFFFEF) in ForCES_node()
110 if (node == 0xFFFFFFFD) in ForCES_node()
112 if (node == 0xFFFFFFFE) in ForCES_node()
114 if (node == 0xFFFFFFFF) in ForCES_node()
122 {0x0, "NoACK"},
123 {0x1, "SuccessACK"},
124 {0x2, "FailureACK"},
125 {0x3, "AlwaysACK"},
126 {0, NULL}
130 {0x0, "EMReserved"},
131 {0x1, "execute-all-or-none"},
132 {0x2, "execute-until-failure"},
133 {0x3, "continue-execute-on-failure"},
134 {0, NULL}
138 {0x0, "Standalone"},
139 {0x1, "2PCtransaction"},
140 {0, NULL}
144 {0x0, "StartofTransaction"},
145 {0x1, "MiddleofTransaction"},
146 {0x2, "EndofTransaction"},
147 {0x3, "abort"},
148 {0, NULL}
166 #define ForCES_ACK(forcesh) ((GET_BE_U_4((forcesh)->fm_flags)&0xC0000000) >> 30)
167 #define ForCES_PRI(forcesh) ((GET_BE_U_4((forcesh)->fm_flags)&0x38000000) >> 27)
168 #define ForCES_RS1(forcesh) ((GET_BE_U_4((forcesh)->fm_flags)&0x07000000) >> 24)
169 #define ForCES_EM(forcesh) ((GET_BE_U_4((forcesh)->fm_flags)&0x00C00000) >> 22)
170 #define ForCES_AT(forcesh) ((GET_BE_U_4((forcesh)->fm_flags)&0x00200000) >> 21)
171 #define ForCES_TP(forcesh) ((GET_BE_U_4((forcesh)->fm_flags)&0x00180000) >> 19)
172 #define ForCES_RS2(forcesh) ((GET_BE_U_4((forcesh)->fm_flags)&0x0007FFFF) >> 0)
179 #define F_LFB_RSVD 0x0
180 #define F_LFB_FEO 0x1
181 #define F_LFB_FEPO 0x2
186 {0, NULL}
192 F_OP_RSV = 0,
249 #define B_FULLD 0x1
250 #define B_SPARD 0x2
251 #define B_RESTV 0x4
252 #define B_KEYIN 0x8
253 #define B_APPND 0x10
254 #define B_TRNG 0x20
257 /* F_OP_RSV */ {ZERO_TTLV, 0, "Invalid OPTLV", invoptlv_print},
263 /* F_OP_DEL */ {ZERO_TTLV, 0, " Del", recpdoptlv_print},
265 /* F_OP_GET */ {ZERO_TTLV, 0, " Get", recpdoptlv_print},
266 /* F_OP_GETPROP */ {ZERO_TTLV, 0, " GetProp", recpdoptlv_print},
273 /* F_OP_COMMIT */ {ZERO_TTLV, 0, " Commit", NULL},
275 /* F_OP_RTRCOMP */ {ZERO_TTLV, 0, " RTRCOMP", NULL},
290 #define IND_SUF 0x0
296 int i = 0; in indent_pr()
308 while (--indent >= 0) in indent_pr()
318 if (op == 0) in op_valid()
319 return 0; in op_valid()
321 return (1 << (op - 1)) & mask; /* works only for 0x0001 through 0x0010 */ in op_valid()
323 if (op >= 0x8000) in op_valid()
325 return 0; in op_valid()
328 #define F_TLV_RSVD 0x0000
329 #define F_TLV_REDR 0x0001
330 #define F_TLV_ASRS 0x0010
331 #define F_TLV_ASRT 0x0011
332 #define F_TLV_LFBS 0x1000
333 #define F_TLV_PDAT 0x0110
334 #define F_TLV_KEYI 0x0111
335 #define F_TLV_FULD 0x0112
336 #define F_TLV_SPAD 0x0113
337 #define F_TLV_REST 0x0114
338 #define F_TLV_METD 0x0115
339 #define F_TLV_REDD 0x0116
340 #define F_TLV_TRNG 0x0117
343 #define F_TLV_VNST 0x8000
358 {0, NULL}
365 if (ttlv > 0) { in ttlv_valid()
366 if (ttlv == 1 || ttlv == 0x1000) in ttlv_valid()
368 if (ttlv >= 0x10 && ttlv <= 0x11) in ttlv_valid()
370 if (ttlv >= 0x110 && ttlv <= 0x116) in ttlv_valid()
372 if (ttlv >= 0x8000) in ttlv_valid()
373 return 0; /* XXX: */ in ttlv_valid()
376 return 0; in ttlv_valid()
392 #define TLV_DATA(tlvp) ((const void*)(((const char*)(tlvp)) + TLV_SET_LEN(0)))
397 #define ILV_DATA(ilvp) ((const void*)(((const char*)(ilvp)) + ILV_SET_LEN(0)))
411 {0, NULL}
426 return 0; in tlv_valid()
441 return 0; in ilv_valid()
466 /* TOM_RSV_I */ {TOM_RSVD, ZERO_TTLV, 0, "Invalid message", NULL},
470 {TOM_ASSNTEARD, TTLV_T1, 0, "Association TearDown", asttlv_print},
476 {TOM_PKTREDIR, TTLV_T2, 0, "Packet Redirect", redirect_print},
477 /* TOM_HBT_I */ {TOM_HEARTBT, ZERO_TTLV, 0, "HeartBeat", NULL},
479 {TOM_ASSNSETREP, TTLV_T1, 0, "Association Response", asrtlv_print},
523 return 0; in pd_valid()
537 ND_PRINT("Illegal DATA encoding for type 0x%x programmed %x got %x\n", in chk_op_type()
565 /* PD_RSV_I */ {0, 0, 0, "Invalid message", NULL},
566 /* PD_SEL_I */ {F_TLV_KEYI, 0, 0, "KEYINFO TLV", pkeyitlv_print},
567 /* PD_FDT_I */ {F_TLV_FULD, 0, B_FULLD, "FULLDATA TLV", fdatatlv_print},
568 /* PD_SDT_I */ {F_TLV_SPAD, 0, B_SPARD, "SPARSEDATA TLV", sdatatlv_print},
569 /* PD_RES_I */ {F_TLV_REST, 0, B_RESTV, "RESULT TLV", prestlv_print},
571 {F_TLV_PDAT, 0, 0, "Inner PATH-DATA TLV", recpdoptlv_print},
611 /* 0x18-0xFE are reserved .. */
612 E_UNSPECIFIED_ERROR = 0XFF
641 {0, NULL}
669 if (result >= 0x18 && result <= 0xFE) { in prestlv_print()
670 ND_PRINT("illegal reserved result code: 0x%x!\n", result); in prestlv_print()
675 char *ib = indent_pr(indent, 0); in prestlv_print()
676 ND_PRINT("%s Result: %s (code 0x%x)\n", ib, in prestlv_print()
679 return 0; in prestlv_print()
714 return 0; in fdatatlv_print()
736 while (rlen != 0) { in sdatailv_print()
737 #if 0 in sdatailv_print()
758 return 0; in sdatailv_print()
800 char *ib = indent_pr(indent, 0); in pkeyitlv_print()
805 ND_PRINT("%sKeyinfo: Key 0x%x\n", ib, id); in pkeyitlv_print()
811 ND_PRINT("%s TLV type 0x%x len %u\n", in pkeyitlv_print()
835 char *ib = indent_pr(indent, 0); in pdatacnt_print()
840 for (i = 0; i < IDcnt; i++) { in pdatacnt_print()
915 u_int pad = 0; in pdatacnt_print()
923 ND_PRINT("%s Outstanding bytes %u for TLV type 0x%x TLV len %u\n", in pdatacnt_print()
937 ND_PRINT("Invalid padded pathdata TLV type 0x%x len %u missing %u pad bytes\n", in pdatacnt_print()
963 ND_PRINT("Invalid path data content type 0x%x len %u\n", in pdatacnt_print()
988 char *ib = indent_pr(indent, 0); in pdata_print()
989 u_int minsize = 0; in pdata_print()
990 int more_pd = 0; in pdata_print()
991 uint16_t idcnt = 0; in pdata_print()
997 ND_PRINT("\n%sPathdata: Flags 0x%x ID count %u\n", in pdata_print()
1033 if (more_pd > 0) { in pdata_print()
1040 return 0; in pdata_print()
1056 char *ib = indent_pr(indent, 0); in genoptlv_print()
1061 ND_PRINT("genoptlvprint - %s TLV type 0x%x len %u\n", in genoptlv_print()
1072 ND_PRINT("%s TLV type 0x%x len %u\n", in genoptlv_print()
1096 while (len != 0) { in recpdoptlv_print()
1113 ib = indent_pr(indent, 0); in recpdoptlv_print()
1129 ND_PRINT("\n\t\tMessy PATHDATA TLV header, type (0x%x)\n\t\texcess of %u Bytes ", in recpdoptlv_print()
1135 return 0; in recpdoptlv_print()
1157 int rc = 0; in otlv_print()
1161 char *ib = indent_pr(indent, 0); in otlv_print()
1172 ND_PRINT("%sOper TLV %s(0x%x) length %u\n", ib, ops->s, type, in otlv_print()
1177 ND_PRINT("\t\tOper TLV %s(0x%x) length %u\n", ops->s, type, in otlv_print()
1201 char *ib = indent_pr(indent, 0); in asttlv_print()
1221 case 0: in asttlv_print()
1242 return 0; in asttlv_print()
1254 char *ib = indent_pr(indent, 0); in asrtlv_print()
1275 case 0: in asrtlv_print()
1290 return 0; in asrtlv_print()
1293 #if 0
1308 return 0;
1319 char *ib = indent_pr(indent, 0); in print_metailv()
1328 ND_PRINT("%sMetaID 0x%x length %u\n", ib, GET_BE_U_4(ilv->type), in print_metailv()
1334 return 0; in print_metailv()
1343 char *ib = indent_pr(indent, 0); in print_metatlv()
1355 while (rlen != 0) { in print_metatlv()
1366 print_metailv(ndo, (const u_char *) ilv, 0, indent + 1); in print_metatlv()
1370 return 0; in print_metatlv()
1380 char *ib = indent_pr(indent, 0); in print_reddata()
1393 return 0; in print_reddata()
1419 while (rlen != 0) { in redirect_print()
1437 tlvl, 0, in redirect_print()
1441 tlvl, 0, in redirect_print()
1444 ND_PRINT("Unknown REDIRECT TLV 0x%x len %u\n", in redirect_print()
1453 ND_PRINT("\n\t\tMessy Redirect TLV header, type (0x%x)\n\t\texcess of %u Bytes ", in redirect_print()
1459 return 0; in redirect_print()
1472 char *ib = indent_pr(indent, 0); in lfbselect_print()
1507 while (rlen != 0) { in lfbselect_print()
1522 otlv_print(ndo, otlv, 0, indent); in lfbselect_print()
1526 ND_PRINT("\t\tINValid oper-TLV type 0x%x length %u for this ForCES message\n", in lfbselect_print()
1528 invoptlv_print(ndo, (const u_char *)otlv, rlen, 0, indent); in lfbselect_print()
1534 ND_PRINT("\n\t\tMessy oper TLV header, type (0x%x)\n\t\texcess of %u Bytes ", in lfbselect_print()
1540 return 0; in lfbselect_print()
1555 int rc = 0; in forces_type_print()
1556 u_int ttlv = 0; in forces_type_print()
1566 ND_PRINT("<0x%x>Illegal Top level TLV!\n", tops->flags); in forces_type_print()
1571 return 0; in forces_type_print()
1579 return 0; in forces_type_print()
1587 while (rlen != 0) { in forces_type_print()
1602 ND_PRINT("\n\tInvalid ForCES Top TLV type=0x%x", in forces_type_print()
1616 if (rc < 0) { in forces_type_print()
1621 if (ttlv <= 0) in forces_type_print()
1625 * XXX - if ttlv != 0, does that mean that the packet was too in forces_type_print()
1634 return 0; in forces_type_print()
1646 int rc = 0; in forces_print()
1661 ND_PRINT("\n\tUnknown ForCES message type=0x%x", tom); in forces_print()
1674 ND_PRINT("\n\tForCES Version %u len %uB flags 0x%08x ", in forces_print()
1676 ND_PRINT("\n\tSrcID 0x%x(%s) DstID 0x%x(%s) Correlator 0x%" PRIx64, in forces_print()
1683 ND_PRINT("\n\tForCES flags:\n\t %s(0x%x), prio=%u, %s(0x%x),\n\t %s(0x%x), %s(0x%x)\n", in forces_print()
1693 ND_PRINT("\t Extra flags: rsv(b5-7) 0x%x rsv(b13-31) 0x%x\n", in forces_print()
1697 if (rc < 0) { in forces_print()