From: Aurelio <sk...@us...> - 2006-07-22 19:56:07
|
Update of /cvsroot/zyxel630-11/amedyn/init In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv19843/init Modified Files: amfunctions.c amload.c Log Message: Add commandline optio--linetype. Index: amfunctions.c =================================================================== RCS file: /cvsroot/zyxel630-11/amedyn/init/amfunctions.c,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** amfunctions.c 22 Jul 2006 19:52:18 -0000 1.12 --- amfunctions.c 22 Jul 2006 19:56:04 -0000 1.13 *************** *** 325,329 **** /* 0x1fd in CTRLE protocol */ /* 0x15 = analog line, 0x11 ISDN line */ ! buf[0] = 0x15; len = transfer_ctrl_msg(adsl_handle, VENDOR_REQUEST_OUT, 0x06, 0x03, 0x1fd, buf, 1); if (len < 0) --- 325,329 ---- /* 0x1fd in CTRLE protocol */ /* 0x15 = analog line, 0x11 ISDN line */ ! buf[0] = command_options.linetype & 0xff; len = transfer_ctrl_msg(adsl_handle, VENDOR_REQUEST_OUT, 0x06, 0x03, 0x1fd, buf, 1); if (len < 0) Index: amload.c =================================================================== RCS file: /cvsroot/zyxel630-11/amedyn/init/amload.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** amload.c 22 Jul 2006 19:52:18 -0000 1.13 --- amload.c 22 Jul 2006 19:56:04 -0000 1.14 *************** *** 125,128 **** --- 125,129 ---- command_options.max_wait_line_up=MAX_WAIT_LINE_UP; command_options.verbose=0; + command_options.linetype=0x15; /* Debug command-line optios */ *************** *** 144,147 **** --- 145,150 ---- { "verbose", 'v', POPT_ARG_INT | POPT_ARGFLAG_SHOW_DEFAULT, &command_options.verbose, 0, "Verbose level.", "[0..1]"}, + { "linetype", '\0', POPT_ARG_INT, &command_options.linetype, 0, + "Set phone line type code. (default: 0x15)", "0x11 | 0x15"}, { NULL, '0', POPT_ARG_NONE, &command_options.no_claim_interface_0, 0, |