70a71
> 
118,119c119
< 	printf("\tPORT options: [1 | 2 | 3 | 4 | A(ll)]  [i(nternal) | e(xternal)]\n");
< /*	printf("\t'A' all ports, 'i' internal loopback, 'e' external loopback\n");*/
---
> 	printf("\tPORT options: [1|2|3|4|A] [i|e|b[@1|@2|@3|@4|@5|@6|@7|@8|@A]]\n");
184c184
< 		{
---
> 	{
186c186
< 			{
---
> 		{
195a196
> 		case 'z':
244c245
< 					{
---
> 				{
247c248,249
< 						p->pt_prm2 |= 1; /* internal loop back */
---
> 					/* internal loop back */
> 						p->pt_prm1 |= 1<<4;
249,250c251,260
< 						p->pt_prm2 |= 2; /* external loopback */
< 					else if ('1' <= *s && *s <= '4')
---
> 					/* external loopback */
> 						p->pt_prm1 |= 1<<5;
> 					else if (*s == 'b')
> 					/* backplane loop back */
> 						p->pt_prm1 |= 1<<6;
> 					else if (*s == '@')
> 					{
> 						if (!(p->pt_prm1 & 0x40))
> 						/* backplane loop */
> 						/* back have to be there */
251a262,290
> 							s--;
> 							break;
> 						}
> 						if (p->pt_prm1 & 0x01)
> 						/* no port 1 */
> 						{
> 							s--;
> 							break;
> 						}
> 						s++;
> 						if ('1' <= *s && *s <= '8')
> 						{
> 							port = *s - '1';
> 							p->pt_prm2 = 1<<port;
> 						}
> 						else if (*s == 'f')
> 						/* swtich to front */
> 							p->pt_prm2 = 0xf;
> 						else if (*s == 'A')
> 							p->pt_prm2 = 0xff;
> 						else
> 						{
> 							s--;
> 							s--;
> 							break;
> 						}
> 					}
> 					else if ('1' <= *s && *s <= '4')
> 					{
254c293
< 						}
---
> 					}
256c295
< 						{
---
> 					{
261c300
< 						}
---
> 					}
263c302
< 						{
---
> 					{
265c304
< 						}
---
> 					}
267c306
< 						{
---
> 					{
270,272c309,311
< 						}
< 					}	/* end while */
< 			}
---
> 					}
> 				} /* end while */
> 			} /* if (p) */
285a325,335
> 			if (*s == 'z')
> 			{
> 				if ((*(s+1) != 'c') || (*(s+2) != 'c') || p->pt_type != HIDE)
> 				{
> 					printf("Unrecognized command\n");
> 					info_cnt = test_cnt = qtst_cnt = 0;
> 					return 0;
> 				}
> 				else
> 					return !(info_cnt + test_cnt + qtst_cnt);
> 			}
287a338
> 
320d370
< 		/*	printf("'%c': Unrecognized option\n", *s);*/
323,324c373,374
< 			}
< 		}
---
> 		} /* switch */
> 	} /* for */
328c378
< 	}
---
> }
