ui_rom_defi_skt.h (25082B)
1 /* 2 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 3 * 4 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 5 */ 6 #ifndef UI_ROM_DEFI_SKT_INCLUDED 7 /* { */ 8 #define UI_ROM_DEFI_SKT_INCLUDED 9 /* 10 * General include file for reference design. 11 */ 12 13 #include <appl/diag/dpp/ref_sys.h> 14 15 #include <appl/diag/dpp/ui_defx.h> 16 #include <appl/diag/dpp/utils_defx.h> 17 18 #include <ui_pure_defi_skt.h> 19 20 #include <Skt/skt_test.h> 21 22 /* 23 * UI definition{ 24 */ 25 26 /******************************************************** 27 *NAME 28 * Skt_empty_vals 29 *TYPE: BUFFER 30 *DATE: 03/MAR/2005 31 *FUNCTION: 32 * ARRAY CONTAINING EMPTY LIST OF VALUES 33 * RELATED TO ANY PARAMETER OF ANY SUBJECT. 34 *ORGANIZATION: 35 * ARRAY OF STRUCTURES OF TYPE 'PARAM_VAL': 36 * int val_type - 37 * Type of value. Can be: 38 * VAL_END_OF_LIST 0 39 * VAL_NUMERIC 1 40 * VAL_SYMBOL 2 41 * VAL_TEXT 3 42 * VAL_IP 4 43 * The first one is only to indicate the end of 44 * this array. The others indicate what kind of 45 * value this is. 46 * VAL_DESCRIPTOR val_descriptor - 47 * Union of structures (of types VAL_NUM_DESCRIPTOR, 48 * VAL_TEXT_DESCRIPTOR, VAL_IP_DESCRIPTOR and 49 * VAL_SYMB_DESCRIPTOR). Descriptor of value. 50 * See details in file of definition. Note: Symbols 51 * must be small letters only! 52 *USAGE: 53 * SEE ORGANIZATION. 54 *REMARKS: 55 * None 56 *SEE ALSO: 57 */ 58 EXTERN CONST 59 PARAM_VAL_RULES 60 Skt_empty_vals[] 61 #ifdef INIT 62 = 63 { 64 /* 65 * Last element. Do not remove. 66 */ 67 { 68 VAL_END_OF_LIST 69 } 70 } 71 #endif 72 ; 73 74 /******************************************************** 75 *NAME 76 * Skt_test_vals 77 *TYPE: BUFFER 78 *DATE: 03/MAR/2005 79 *FUNCTION: 80 * ARRAY CONTAINING EMPTY LIST OF VALUES 81 * RELATED TO ANY PARAMETER OF ANY SUBJECT. 82 *ORGANIZATION: 83 * ARRAY OF STRUCTURES OF TYPE 'PARAM_VAL': 84 * int val_type - 85 * Type of value. Can be: 86 * VAL_END_OF_LIST 0 87 * VAL_NUMERIC 1 88 * VAL_SYMBOL 2 89 * VAL_TEXT 3 90 * VAL_IP 4 91 * The first one is only to indicate the end of 92 * this array. The others indicate what kind of 93 * value this is. 94 * VAL_DESCRIPTOR val_descriptor - 95 * Union of structures (of types VAL_NUM_DESCRIPTOR, 96 * VAL_TEXT_DESCRIPTOR, VAL_IP_DESCRIPTOR and 97 * VAL_SYMB_DESCRIPTOR). Descriptor of value. 98 * See details in file of definition. Note: Symbols 99 * must be small letters only! 100 *USAGE: 101 * SEE ORGANIZATION. 102 *REMARKS: 103 * None 104 *SEE ALSO: 105 */ 106 EXTERN CONST 107 PARAM_VAL_RULES 108 Skt_test_vals[] 109 #ifdef INIT 110 = 111 { 112 { 113 VAL_NUMERIC,SYMB_NAME_NUMERIC, 114 { 115 { 116 HAS_MIN_VALUE | HAS_MAX_VALUE, 117 SKT_MAX_NOF_TESTS, 1, 118 /* 119 * Number of times this value can be repeated (i.e., 120 * value is an array). Must be at least 1! 121 */ 122 1, 123 /* 124 * Pointer to a function to call after the full numeric value 125 * has been accepted. 126 */ 127 (VAL_PROC_PTR)NULL 128 } 129 } 130 }, 131 /* 132 * Last element. Do not remove. 133 */ 134 { 135 VAL_END_OF_LIST 136 } 137 } 138 #endif 139 ; 140 141 /******************************************************** 142 *NAME 143 * Skt_port_vals 144 *TYPE: BUFFER 145 *DATE: 03/MAR/2005 146 *FUNCTION: 147 * ARRAY CONTAINING EMPTY LIST OF VALUES 148 * RELATED TO ANY PARAMETER OF ANY SUBJECT. 149 *ORGANIZATION: 150 * ARRAY OF STRUCTURES OF TYPE 'PARAM_VAL': 151 * int val_type - 152 * Type of value. Can be: 153 * VAL_END_OF_LIST 0 154 * VAL_NUMERIC 1 155 * VAL_SYMBOL 2 156 * VAL_TEXT 3 157 * VAL_IP 4 158 * The first one is only to indicate the end of 159 * this array. The others indicate what kind of 160 * value this is. 161 * VAL_DESCRIPTOR val_descriptor - 162 * Union of structures (of types VAL_NUM_DESCRIPTOR, 163 * VAL_TEXT_DESCRIPTOR, VAL_IP_DESCRIPTOR and 164 * VAL_SYMB_DESCRIPTOR). Descriptor of value. 165 * See details in file of definition. Note: Symbols 166 * must be small letters only! 167 *USAGE: 168 * SEE ORGANIZATION. 169 *REMARKS: 170 * None 171 *SEE ALSO: 172 */ 173 EXTERN CONST 174 PARAM_VAL_RULES 175 Skt_port_vals[] 176 #ifdef INIT 177 = 178 { 179 { 180 VAL_NUMERIC,SYMB_NAME_NUMERIC, 181 { 182 { 183 HAS_MIN_VALUE | HAS_MAX_VALUE, 184 65535, 1, 185 /* 186 * Number of times this value can be repeated (i.e., 187 * value is an array). Must be at least 1! 188 */ 189 1, 190 /* 191 * Pointer to a function to call after the full numeric value 192 * has been accepted. 193 */ 194 (VAL_PROC_PTR)NULL 195 } 196 } 197 }, 198 /* 199 * Last element. Do not remove. 200 */ 201 { 202 VAL_END_OF_LIST 203 } 204 } 205 #endif 206 ; 207 208 /******************************************************** 209 *NAME 210 * Skt_ip_vals 211 *TYPE: BUFFER 212 *DATE: 03/MAR/2005 213 *FUNCTION: 214 * ARRAY CONTAINING EMPTY LIST OF VALUES 215 * RELATED TO ANY PARAMETER OF ANY SUBJECT. 216 *ORGANIZATION: 217 * ARRAY OF STRUCTURES OF TYPE 'PARAM_VAL': 218 * int val_type - 219 * Type of value. Can be: 220 * VAL_END_OF_LIST 0 221 * VAL_NUMERIC 1 222 * VAL_SYMBOL 2 223 * VAL_TEXT 3 224 * VAL_IP 4 225 * The first one is only to indicate the end of 226 * this array. The others indicate what kind of 227 * value this is. 228 * VAL_DESCRIPTOR val_descriptor - 229 * Union of structures (of types VAL_NUM_DESCRIPTOR, 230 * VAL_TEXT_DESCRIPTOR, VAL_IP_DESCRIPTOR and 231 * VAL_SYMB_DESCRIPTOR). Descriptor of value. 232 * See details in file of definition. Note: Symbols 233 * must be small letters only! 234 *USAGE: 235 * SEE ORGANIZATION. 236 *REMARKS: 237 * None 238 *SEE ALSO: 239 */ 240 EXTERN CONST 241 PARAM_VAL_RULES 242 Skt_ip_vals[] 243 #ifdef INIT 244 = 245 { 246 { 247 VAL_IP, 248 SYMB_NAME_IP, 249 { 250 { 251 } 252 } 253 }, 254 /* 255 * Last element. Do not remove. 256 */ 257 { 258 VAL_END_OF_LIST 259 } 260 } 261 #endif 262 ; 263 264 /******************************************************** 265 *NAME 266 * Skt_wait_vals 267 *TYPE: BUFFER 268 *DATE: 03/MAR/2005 269 *FUNCTION: 270 * ARRAY CONTAINING EMPTY LIST OF VALUES 271 * RELATED TO ANY PARAMETER OF ANY SUBJECT. 272 *ORGANIZATION: 273 * ARRAY OF STRUCTURES OF TYPE 'PARAM_VAL': 274 * int val_type - 275 * Type of value. Can be: 276 * VAL_END_OF_LIST 0 277 * VAL_NUMERIC 1 278 * VAL_SYMBOL 2 279 * VAL_TEXT 3 280 * VAL_IP 4 281 * The first one is only to indicate the end of 282 * this array. The others indicate what kind of 283 * value this is. 284 * VAL_DESCRIPTOR val_descriptor - 285 * Union of structures (of types VAL_NUM_DESCRIPTOR, 286 * VAL_TEXT_DESCRIPTOR, VAL_IP_DESCRIPTOR and 287 * VAL_SYMB_DESCRIPTOR). Descriptor of value. 288 * See details in file of definition. Note: Symbols 289 * must be small letters only! 290 *USAGE: 291 * SEE ORGANIZATION. 292 *REMARKS: 293 * None 294 *SEE ALSO: 295 */ 296 EXTERN CONST 297 PARAM_VAL_RULES 298 Skt_wait_vals[] 299 #ifdef INIT 300 = 301 { 302 { 303 VAL_NUMERIC,SYMB_NAME_NUMERIC, 304 { 305 { 306 HAS_MIN_VALUE | HAS_MAX_VALUE, 307 SKT_MAX_RESPONSE_TIMEOUT, 0, 308 /* 309 * Number of times this value can be repeated (i.e., 310 * value is an array). Must be at least 1! 311 */ 312 1, 313 /* 314 * Pointer to a function to call after the full numeric value 315 * has been accepted. 316 */ 317 (VAL_PROC_PTR)NULL 318 } 319 } 320 }, 321 { 322 VAL_SYMBOL, 323 "forever", 324 { 325 { 326 -1, 327 /* 328 * Casting added here just to keep the compiler silent. 329 */ 330 (long)" Wait forever for a reply.", 331 /* 332 * Pointer to a function to call after symbolic value 333 * has been accepted. Casting should be 'VAL_PROC_PTR'. 334 * Casting to 'long' added here just to keep the 335 * compiler silent. 336 */ 337 (long)NULL 338 } 339 } 340 }, 341 /* 342 * Last element. Do not remove. 343 */ 344 { 345 VAL_END_OF_LIST 346 } 347 } 348 #endif 349 ; 350 351 /******************************************************** 352 *NAME 353 * Skt_nof_packets_vals 354 *TYPE: BUFFER 355 *DATE: 03/MAR/2005 356 *FUNCTION: 357 * ARRAY CONTAINING EMPTY LIST OF VALUES 358 * RELATED TO ANY PARAMETER OF ANY SUBJECT. 359 *ORGANIZATION: 360 * ARRAY OF STRUCTURES OF TYPE 'PARAM_VAL': 361 * int val_type - 362 * Type of value. Can be: 363 * VAL_END_OF_LIST 0 364 * VAL_NUMERIC 1 365 * VAL_SYMBOL 2 366 * VAL_TEXT 3 367 * VAL_IP 4 368 * The first one is only to indicate the end of 369 * this array. The others indicate what kind of 370 * value this is. 371 * VAL_DESCRIPTOR val_descriptor - 372 * Union of structures (of types VAL_NUM_DESCRIPTOR, 373 * VAL_TEXT_DESCRIPTOR, VAL_IP_DESCRIPTOR and 374 * VAL_SYMB_DESCRIPTOR). Descriptor of value. 375 * See details in file of definition. Note: Symbols 376 * must be small letters only! 377 *USAGE: 378 * SEE ORGANIZATION. 379 *REMARKS: 380 * None 381 *SEE ALSO: 382 */ 383 EXTERN CONST 384 PARAM_VAL_RULES 385 Skt_nof_packets_vals[] 386 #ifdef INIT 387 = 388 { 389 { 390 VAL_NUMERIC,SYMB_NAME_NUMERIC, 391 { 392 { 393 HAS_MIN_VALUE | HAS_MAX_VALUE, 394 SKT_MAX_NOF_PACKETS, 1, 395 /* 396 * Number of times this value can be repeated (i.e., 397 * value is an array). Must be at least 1! 398 */ 399 1, 400 /* 401 * Pointer to a function to call after the full numeric value 402 * has been accepted. 403 */ 404 (VAL_PROC_PTR)NULL 405 } 406 } 407 }, 408 { 409 VAL_SYMBOL, 410 "infinite", 411 { 412 { 413 -1, 414 /* 415 * Casting added here just to keep the compiler silent. 416 */ 417 (long)" Send infinite number of packets.", 418 /* 419 * Pointer to a function to call after symbolic value 420 * has been accepted. Casting should be 'VAL_PROC_PTR'. 421 * Casting to 'long' added here just to keep the 422 * compiler silent. 423 */ 424 (long)NULL 425 } 426 } 427 }, 428 /* 429 * Last element. Do not remove. 430 */ 431 { 432 VAL_END_OF_LIST 433 } 434 } 435 #endif 436 ; 437 438 /******************************************************** 439 *NAME 440 * Skt_payload_size_vals 441 *TYPE: BUFFER 442 *DATE: 03/MAR/2005 443 *FUNCTION: 444 * ARRAY CONTAINING EMPTY LIST OF VALUES 445 * RELATED TO ANY PARAMETER OF ANY SUBJECT. 446 *ORGANIZATION: 447 * ARRAY OF STRUCTURES OF TYPE 'PARAM_VAL': 448 * int val_type - 449 * Type of value. Can be: 450 * VAL_END_OF_LIST 0 451 * VAL_NUMERIC 1 452 * VAL_SYMBOL 2 453 * VAL_TEXT 3 454 * VAL_IP 4 455 * The first one is only to indicate the end of 456 * this array. The others indicate what kind of 457 * value this is. 458 * VAL_DESCRIPTOR val_descriptor - 459 * Union of structures (of types VAL_NUM_DESCRIPTOR, 460 * VAL_TEXT_DESCRIPTOR, VAL_IP_DESCRIPTOR and 461 * VAL_SYMB_DESCRIPTOR). Descriptor of value. 462 * See details in file of definition. Note: Symbols 463 * must be small letters only! 464 *USAGE: 465 * SEE ORGANIZATION. 466 *REMARKS: 467 * None 468 *SEE ALSO: 469 */ 470 EXTERN CONST 471 PARAM_VAL_RULES 472 Skt_payload_size_vals[] 473 #ifdef INIT 474 = 475 { 476 { 477 VAL_NUMERIC,SYMB_NAME_NUMERIC, 478 { 479 { 480 HAS_MIN_VALUE | HAS_MAX_VALUE, 481 SKT_MAX_PAYLOAD_SIZE, SKT_MIN_PAYLOAD_SIZE, 482 /* 483 * Number of times this value can be repeated (i.e., 484 * value is an array). Must be at least 1! 485 */ 486 1, 487 /* 488 * Pointer to a function to call after the full numeric value 489 * has been accepted. 490 */ 491 (VAL_PROC_PTR)NULL 492 } 493 } 494 }, 495 /* 496 * Last element. Do not remove. 497 */ 498 { 499 VAL_END_OF_LIST 500 } 501 } 502 #endif 503 ; 504 505 /******************************************************** 506 *NAME 507 * Skt_ipg_vals 508 *TYPE: BUFFER 509 *DATE: 03/MAR/2005 510 *FUNCTION: 511 * ARRAY CONTAINING EMPTY LIST OF VALUES 512 * RELATED TO ANY PARAMETER OF ANY SUBJECT. 513 *ORGANIZATION: 514 * ARRAY OF STRUCTURES OF TYPE 'PARAM_VAL': 515 * int val_type - 516 * Type of value. Can be: 517 * VAL_END_OF_LIST 0 518 * VAL_NUMERIC 1 519 * VAL_SYMBOL 2 520 * VAL_TEXT 3 521 * VAL_IP 4 522 * The first one is only to indicate the end of 523 * this array. The others indicate what kind of 524 * value this is. 525 * VAL_DESCRIPTOR val_descriptor - 526 * Union of structures (of types VAL_NUM_DESCRIPTOR, 527 * VAL_TEXT_DESCRIPTOR, VAL_IP_DESCRIPTOR and 528 * VAL_SYMB_DESCRIPTOR). Descriptor of value. 529 * See details in file of definition. Note: Symbols 530 * must be small letters only! 531 *USAGE: 532 * SEE ORGANIZATION. 533 *REMARKS: 534 * None 535 *SEE ALSO: 536 */ 537 EXTERN CONST 538 PARAM_VAL_RULES 539 Skt_ipg_vals[] 540 #ifdef INIT 541 = 542 { 543 { 544 VAL_NUMERIC,SYMB_NAME_NUMERIC, 545 { 546 { 547 HAS_MIN_VALUE | HAS_MAX_VALUE, 548 SKT_MAX_IPG, SKT_MIN_IPG, 549 /* 550 * Number of times this value can be repeated (i.e., 551 * value is an array). Must be at least 1! 552 */ 553 1, 554 /* 555 * Pointer to a function to call after the full numeric value 556 * has been accepted. 557 */ 558 (VAL_PROC_PTR)NULL 559 } 560 } 561 }, 562 /* 563 * Last element. Do not remove. 564 */ 565 { 566 VAL_END_OF_LIST 567 } 568 } 569 #endif 570 ; 571 572 /******************************************************** 573 *NAME 574 * Skt_params 575 *TYPE: BUFFER 576 *DATE: 06/MAR/2005 577 *FUNCTION: 578 * ARRAY CONTAINING THE INITIAL LIST OF PARAMETERS 579 * RELATED TO THE SUBJECT "SKT". 580 *ORGANIZATION: 581 * ARRAY OF STRUCTURES OF TYPE 'PARAM': 582 * int subject_id - 583 * Identifier of this parameter. 584 * char *par_name - 585 * Ascii presentation of parameter. Must be small 586 * letters only! Must contain at least one character. 587 * PARAM_VAL *allowed_vals - 588 * Array of structures of type PARAM_VAL. This is 589 * the list of values allowed for that 590 * parameter. 591 * int default_care - 592 * Flags bitmap. 593 * Bit(0) indicates whether there is a default 594 * value for this parameter (i.e. 'default_val' 595 * is meaningful). '0' indicates 'no default val'. 596 * Bit(1) indicates whether this parameter must 597 * or may not appear on command line (within its 598 * context). '0' indicates 'may not appear'. 599 * PARAM_VAL *default_val - 600 * Default value for this parameter. 601 * unsigned int num_numeric_vals ; 602 * Number of numeric values in array 'allowed_vals'. 603 * unsigned int num_symbolic_vals ; 604 * Number of symbolic values in array 'allowed_vals'. 605 * unsigned int num_text_vals ; 606 * Number of free text values in array 'allowed_vals'. 607 * unsigned int num_ip_vals ; 608 * Number of IP address values in array 'allowed_vals'. 609 * unsigned int numeric_index ; 610 * Index of numeric value (if there is any) in 611 * array 'allowed_vals'. 612 * unsigned int text_index ; 613 * Index of free text value (if there is any) in 614 * array 'allowed_vals'. 615 * unsigned int ip_index ; 616 * Index of IP address value (if there is any) in 617 * array 'allowed_vals'. 618 * char *param_short_help - 619 * Short help for this parameter. 620 * char *param_detailed_help - 621 * Detailed help for this parameter. 622 * char *vals_detailed_help ; 623 * Detailed help for all values attached to this parameter. 624 * THIS FIELD IS AUTOMATICALLY FILLED IN BY THE SYSTEM 625 * and does NOT need to be filled in by the user. 626 * unsigned long mutex_control ; 627 * Mutual exclusion syntax control. Up to 32 groups 628 * specified by bits. If a parameter has specific 629 * bits set then other parameters, with any of 630 * these bits set, may not be on the same line. 631 *USAGE: 632 * SEE ORGANIZATION. 633 *REMARKS: 634 * NONE. 635 *SEE ALSO: 636 */ 637 EXTERN CONST 638 PARAM 639 Skt_params[] 640 #ifdef INIT 641 = 642 { 643 { 644 PARAM_SKT_TEST_ID, 645 "test", 646 (PARAM_VAL_RULES *)&Skt_test_vals[0], 647 (sizeof(Skt_test_vals) / sizeof(Skt_test_vals[0])) - 1, 648 HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0, 649 0,0,0,0,0,0,0, 650 "Performs a SKT test operation.", 651 "Examples:\r\n" 652 " test 1 set server server_port 8888\r\n", 653 "", 654 {BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) | BIT(6) | BIT(7) | BIT(8) }, 655 1, 656 /* 657 * Pointer to a function to call after symbolic parameter 658 * has been accepted. 659 */ 660 (VAL_PROC_PTR)NULL 661 }, 662 { 663 PARAM_SKT_SET_ID, 664 "set", 665 (PARAM_VAL_RULES *)&Skt_empty_vals[0], 666 (sizeof(Skt_empty_vals) / sizeof(Skt_empty_vals[0])) - 1, 667 HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0, 668 0,0,0,0,0,0,0, 669 "Starts a SKT test.", 670 "Examples:\r\n" 671 " test 1 set server server_port 8888\r\n", 672 "", 673 {BIT(1) | BIT(2)}, 674 2, 675 /* 676 * Pointer to a function to call after symbolic parameter 677 * has been accepted. 678 */ 679 (VAL_PROC_PTR)NULL 680 }, 681 { 682 PARAM_SKT_START_ID, 683 "start", 684 (PARAM_VAL_RULES *)&Skt_empty_vals[0], 685 (sizeof(Skt_empty_vals) / sizeof(Skt_empty_vals[0])) - 1, 686 HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0, 687 0,0,0,0,0,0,0, 688 "Starts a SKT test.", 689 "Examples:\r\n" 690 " test 1 start\r\n", 691 "", 692 {BIT(3)}, 693 2, 694 /* 695 * Pointer to a function to call after symbolic parameter 696 * has been accepted. 697 */ 698 (VAL_PROC_PTR)NULL 699 }, 700 { 701 PARAM_SKT_STOP_ID, 702 "stop", 703 (PARAM_VAL_RULES *)&Skt_empty_vals[0], 704 (sizeof(Skt_empty_vals) / sizeof(Skt_empty_vals[0])) - 1, 705 HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0, 706 0,0,0,0,0,0,0, 707 "Stops a SKT test.", 708 "Examples:\r\n" 709 " test 1 stop\r\n", 710 "", 711 {BIT(4)}, 712 2, 713 /* 714 * Pointer to a function to call after symbolic parameter 715 * has been accepted. 716 */ 717 (VAL_PROC_PTR)NULL 718 }, 719 { 720 PARAM_SKT_SUSPEND_ID, 721 "suspend", 722 (PARAM_VAL_RULES *)&Skt_empty_vals[0], 723 (sizeof(Skt_empty_vals) / sizeof(Skt_empty_vals[0])) - 1, 724 HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0, 725 0,0,0,0,0,0,0, 726 "Suspends a SKT test.", 727 "Examples:\r\n" 728 " test 1 suspend\r\n", 729 "", 730 {BIT(5)}, 731 2, 732 /* 733 * Pointer to a function to call after symbolic parameter 734 * has been accepted. 735 */ 736 (VAL_PROC_PTR)NULL 737 }, 738 { 739 PARAM_SKT_RESUME_ID, 740 "resume", 741 (PARAM_VAL_RULES *)&Skt_empty_vals[0], 742 (sizeof(Skt_empty_vals) / sizeof(Skt_empty_vals[0])) - 1, 743 HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0, 744 0,0,0,0,0,0,0, 745 "Resumes a SKT test.", 746 "Examples:\r\n" 747 " test 1 resume\r\n", 748 "", 749 {BIT(6)}, 750 2, 751 /* 752 * Pointer to a function to call after symbolic parameter 753 * has been accepted. 754 */ 755 (VAL_PROC_PTR)NULL 756 }, 757 { 758 PARAM_SKT_SHOW_ID, 759 "show", 760 (PARAM_VAL_RULES *)&Skt_empty_vals[0], 761 (sizeof(Skt_empty_vals) / sizeof(Skt_empty_vals[0])) - 1, 762 HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0, 763 0,0,0,0,0,0,0, 764 "Shows a SKT test.", 765 "Examples:\r\n" 766 " test 1 show\r\n", 767 "", 768 {BIT(7)}, 769 2, 770 /* 771 * Pointer to a function to call after symbolic parameter 772 * has been accepted. 773 */ 774 (VAL_PROC_PTR)NULL 775 }, 776 { 777 PARAM_SKT_CLEAR_ID, 778 "clear", 779 (PARAM_VAL_RULES *)&Skt_empty_vals[0], 780 (sizeof(Skt_empty_vals) / sizeof(Skt_empty_vals[0])) - 1, 781 HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0, 782 0,0,0,0,0,0,0, 783 "Clears a SKT test.", 784 "Examples:\r\n" 785 " test 1 clear\r\n", 786 "", 787 {BIT(8)}, 788 2, 789 /* 790 * Pointer to a function to call after symbolic parameter 791 * has been accepted. 792 */ 793 (VAL_PROC_PTR)NULL 794 }, 795 { 796 PARAM_SKT_CLIENT_ID, 797 "client", 798 (PARAM_VAL_RULES *)&Skt_empty_vals[0], 799 (sizeof(Skt_empty_vals) / sizeof(Skt_empty_vals[0])) - 1, 800 HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0, 801 0,0,0,0,0,0,0, 802 "Test SKT client side.", 803 "Examples:\r\n" 804 " test 1 set client server_ip 10.0.0.100 server_port 8888\r\n", 805 "", 806 {BIT(1)}, 807 3, 808 /* 809 * Pointer to a function to call after symbolic parameter 810 * has been accepted. 811 */ 812 (VAL_PROC_PTR)NULL 813 }, 814 { 815 PARAM_SKT_SERVER_ID, 816 "server", 817 (PARAM_VAL_RULES *)&Skt_empty_vals[0], 818 (sizeof(Skt_empty_vals) / sizeof(Skt_empty_vals[0])) - 1, 819 HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0, 820 0,0,0,0,0,0,0, 821 "Test SKT server side.", 822 "Examples:\r\n" 823 " test 1 set server server_port 8888\r\n", 824 "", 825 {BIT(2)}, 826 3, 827 /* 828 * Pointer to a function to call after symbolic parameter 829 * has been accepted. 830 */ 831 (VAL_PROC_PTR)NULL 832 }, 833 { 834 PARAM_SKT_SERVER_PORT_ID, 835 "server_port", 836 (PARAM_VAL_RULES *)&Skt_port_vals[0], 837 (sizeof(Skt_port_vals) / sizeof(Skt_port_vals[0])) - 1, 838 HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0, 839 0,0,0,0,0,0,0, 840 "Set SKT server port.", 841 "Examples:\r\n" 842 " test 1 set server server_port 8888\r\n", 843 "", 844 {BIT(1) | BIT(2)}, 845 LAST_ORDINAL, 846 /* 847 * Pointer to a function to call after symbolic parameter 848 * has been accepted. 849 */ 850 (VAL_PROC_PTR)NULL 851 }, 852 { 853 PARAM_SKT_SERVER_IP_ID, 854 "server_ip", 855 (PARAM_VAL_RULES *)&Skt_ip_vals[0], 856 (sizeof(Skt_ip_vals) / sizeof(Skt_ip_vals[0])) - 1, 857 HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0, 858 0,0,0,0,0,0,0, 859 "Set SKT server ip address.", 860 "Examples:\r\n" 861 " test 1 set client server_ip 10.0.0.100 server_port 8888\r\n", 862 "", 863 {BIT(1)}, 864 LAST_ORDINAL, 865 /* 866 * Pointer to a function to call after symbolic parameter 867 * has been accepted. 868 */ 869 (VAL_PROC_PTR)NULL 870 }, 871 { 872 PARAM_SKT_LOG_ID, 873 "log", 874 (PARAM_VAL_RULES *)&Skt_empty_vals[0], 875 (sizeof(Skt_empty_vals) / sizeof(Skt_empty_vals[0])) - 1, 876 HAS_NO_DEFAULT | MAY_NOT_APPEAR,(PARAM_VAL *)0, 877 0,0,0,0,0,0,0, 878 "Enable log for this SKT test.", 879 "Examples:\r\n" 880 " test 1 set client server_ip 10.0.0.100 server_port 8888 log\r\n", 881 "", 882 {BIT(1) | BIT(2)}, 883 LAST_ORDINAL, 884 /* 885 * Pointer to a function to call after symbolic parameter 886 * has been accepted. 887 */ 888 (VAL_PROC_PTR)NULL 889 }, 890 { 891 PARAM_SKT_WAIT_FOR_REPLY_ID, 892 "wait_for_reply", 893 (PARAM_VAL_RULES *)&Skt_wait_vals[0], 894 (sizeof(Skt_wait_vals) / sizeof(Skt_wait_vals[0])) - 1, 895 HAS_NO_DEFAULT | MAY_NOT_APPEAR,(PARAM_VAL *)0, 896 0,0,0,0,0,0,0, 897 "Wait for a reply from the server (Timeout is given in mSecs).\r\n", 898 "Examples:\r\n" 899 " test 1 set client server_ip 10.0.0.100 server_port 8888 wait_for_reply 10\r\n", 900 "", 901 {BIT(1)}, 902 LAST_ORDINAL, 903 /* 904 * Pointer to a function to call after symbolic parameter 905 * has been accepted. 906 */ 907 (VAL_PROC_PTR)NULL 908 }, 909 { 910 PARAM_SKT_NOF_PACKETS_ID, 911 "nof_packets", 912 (PARAM_VAL_RULES *)&Skt_nof_packets_vals[0], 913 (sizeof(Skt_nof_packets_vals) / sizeof(Skt_nof_packets_vals[0])) - 1, 914 HAS_NO_DEFAULT | MAY_NOT_APPEAR,(PARAM_VAL *)0, 915 0,0,0,0,0,0,0, 916 "Number of packets to send.\r\n", 917 "Examples:\r\n" 918 " test 1 set client server_ip 10.0.0.100 server_port 8888 nof_packets 1000\r\n", 919 "", 920 {BIT(1)}, 921 LAST_ORDINAL, 922 /* 923 * Pointer to a function to call after symbolic parameter 924 * has been accepted. 925 */ 926 (VAL_PROC_PTR)NULL 927 }, 928 { 929 PARAM_SKT_PAYLOAD_SIZE_ID, 930 "payload_size", 931 (PARAM_VAL_RULES *)&Skt_payload_size_vals[0], 932 (sizeof(Skt_payload_size_vals) / sizeof(Skt_payload_size_vals[0])) - 1, 933 HAS_NO_DEFAULT | MAY_NOT_APPEAR,(PARAM_VAL *)0, 934 0,0,0,0,0,0,0, 935 "Size of each payload in bytes.\r\n", 936 "Examples:\r\n" 937 " test 1 set client server_ip 10.0.0.100 server_port 8888 payload_size 256\r\n", 938 "", 939 {BIT(1)}, 940 LAST_ORDINAL, 941 /* 942 * Pointer to a function to call after symbolic parameter 943 * has been accepted. 944 */ 945 (VAL_PROC_PTR)NULL 946 }, 947 { 948 PARAM_SKT_IPG_ID, 949 "ipg", 950 (PARAM_VAL_RULES *)&Skt_ipg_vals[0], 951 (sizeof(Skt_ipg_vals) / sizeof(Skt_ipg_vals[0])) - 1, 952 HAS_NO_DEFAULT | MAY_NOT_APPEAR,(PARAM_VAL *)0, 953 0,0,0,0,0,0,0, 954 "Inter packet gap in mSecs.\r\n", 955 "Examples:\r\n" 956 " test 1 set client server_ip 10.0.0.100 server_port 8888 ipg 100\r\n", 957 "", 958 {BIT(1)}, 959 LAST_ORDINAL, 960 /* 961 * Pointer to a function to call after symbolic parameter 962 * has been accepted. 963 */ 964 (VAL_PROC_PTR)NULL 965 }, 966 { 967 PARAM_SKT_ECHO_ID, 968 "echo", 969 (PARAM_VAL_RULES *)&Skt_empty_vals[0], 970 (sizeof(Skt_empty_vals) / sizeof(Skt_empty_vals[0])) - 1, 971 HAS_NO_DEFAULT | MAY_NOT_APPEAR,(PARAM_VAL *)0, 972 0,0,0,0,0,0,0, 973 "Echo each received packet to the peer.", 974 "Examples:\r\n" 975 " test 1 set server server_port 8888 echo\r\n", 976 "", 977 {BIT(2)}, 978 LAST_ORDINAL, 979 /* 980 * Pointer to a function to call after symbolic parameter 981 * has been accepted. 982 */ 983 (VAL_PROC_PTR)NULL 984 }, 985 { 986 PARAM_SKT_DCL_STATUS_ID, 987 "dcl_status", 988 (PARAM_VAL_RULES *)&Skt_empty_vals[0], 989 (sizeof(Skt_empty_vals) / sizeof(Skt_empty_vals[0])) - 1, 990 HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0, 991 0,0,0,0,0,0,0, 992 "Shows DCL SKT status.", 993 "Examples:\r\n" 994 " dcl_status\r\n", 995 "", 996 {BIT(9) }, 997 1, 998 /* 999 * Pointer to a function to call after symbolic parameter 1000 * has been accepted. 1001 */ 1002 (VAL_PROC_PTR)NULL 1003 }, 1004 1005 /* 1006 * Last element. Do not remove. 1007 */ 1008 { 1009 PARAM_END_OF_LIST 1010 } 1011 } 1012 #endif 1013 ; 1014 1015 #endif /* UI_ROM_DEFI_SKT_INCLUDED */