--- ansh/src/ansh.c 2011/10/10 07:50:18 1.1.1.1.2.2 +++ ansh/src/ansh.c 2011/10/10 13:56:30 1.1.1.1.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: ansh.c,v 1.1.1.1.2.2 2011/10/10 07:50:18 misho Exp $ + * $Id: ansh.c,v 1.1.1.1.2.3 2011/10/10 13:56:30 misho Exp $ * *************************************************************************/ #include "global.h" @@ -22,7 +22,6 @@ Usage() "=== %s === %s@%s ===\n\n" " Syntax: ansh [options] \n\n" "\t-d \tBind to host interface, like 'em0' (default is first host interface)\n" - "\t-i \tService ID (default is 42)\n" "\t-t \tClient session timeout (default is 0 sec)\n" "\t-u\t\tSwitch to unencrypted traffic between hosts\n" "\t-v\t\tVerbose (more -v, more verbosity ...)\n" @@ -35,7 +34,6 @@ main(int argc, char **argv) { char ch, szDev[STRSIZ] = { 0 }; int h, len; - u_short id = ANSH_ID; struct ether_addr ea; srandomdev(); @@ -45,7 +43,7 @@ main(int argc, char **argv) Get1stEth(szDev, STRSIZ); - while ((ch = getopt(argc, argv, "hvui:t:d:")) != -1) + while ((ch = getopt(argc, argv, "hvut:d:")) != -1) switch (ch) { case 't': Timeout = abs(strtol(optarg, NULL, 0)); @@ -53,9 +51,6 @@ main(int argc, char **argv) case 'd': strlcpy(szDev, optarg, sizeof szDev); break; - case 'i': - id = strtol(optarg, NULL, 0); - break; case 'u': Crypted ^= Crypted; break; @@ -84,7 +79,7 @@ main(int argc, char **argv) return 1; } - ConnectL2(h, id, &ea, len); + ConnectL2(h, &ea, len); VERB(1) printf("Finish client.\n"); close(h);