Mercurial > dropbear
comparison cli-runopts.c @ 580:dd9947170fc8
- fixes for listenaddr
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 27 Feb 2010 12:15:27 +0000 |
parents | 8c737cd7c1af |
children | a98a2138364a |
comparison
equal
deleted
inserted
replaced
579:8c737cd7c1af | 580:dd9947170fc8 |
---|---|
69 #endif | 69 #endif |
70 #ifdef ENABLE_CLI_AGENTFWD | 70 #ifdef ENABLE_CLI_AGENTFWD |
71 "-A Enable agent auth forwarding\n" | 71 "-A Enable agent auth forwarding\n" |
72 #endif | 72 #endif |
73 #ifdef ENABLE_CLI_LOCALTCPFWD | 73 #ifdef ENABLE_CLI_LOCALTCPFWD |
74 "-L <listenport:remotehost:remoteport> Local port forwarding\n" | 74 "-L <[listenaddress:]listenport:remotehost:remoteport> Local port forwarding\n" |
75 "-g Allow remote hosts to connect to forwarded ports\n" | 75 "-g Allow remote hosts to connect to forwarded ports\n" |
76 #endif | 76 #endif |
77 #ifdef ENABLE_CLI_REMOTETCPFWD | 77 #ifdef ENABLE_CLI_REMOTETCPFWD |
78 "-R <listenport:remotehost:remoteport> Remote port forwarding\n" | 78 "-R <[listenaddress:]listenport:remotehost:remoteport> Remote port forwarding\n" |
79 #endif | 79 #endif |
80 "-W <receive_window_buffer> (default %d, larger may be faster, max 1MB)\n" | 80 "-W <receive_window_buffer> (default %d, larger may be faster, max 1MB)\n" |
81 "-K <keepalive> (0 is never, default %d)\n" | 81 "-K <keepalive> (0 is never, default %d)\n" |
82 "-I <idle_timeout> (0 is never, default %d)\n" | 82 "-I <idle_timeout> (0 is never, default %d)\n" |
83 #ifdef ENABLE_CLI_NETCAT | 83 #ifdef ENABLE_CLI_NETCAT |
680 listenport = part1; | 680 listenport = part1; |
681 connectaddr = part2; | 681 connectaddr = part2; |
682 connectport = part3; | 682 connectport = part3; |
683 } | 683 } |
684 | 684 |
685 } | |
686 | |
687 newfwd = m_malloc(sizeof(struct TCPFwdEntry)); | 685 newfwd = m_malloc(sizeof(struct TCPFwdEntry)); |
688 | 686 |
689 /* Now we check the ports - note that the port ints are unsigned, | 687 /* Now we check the ports - note that the port ints are unsigned, |
690 * the check later only checks for >= MAX_PORT */ | 688 * the check later only checks for >= MAX_PORT */ |
691 if (m_str_to_uint(listenport, &newfwd->listenport) == DROPBEAR_FAILURE) { | 689 if (m_str_to_uint(listenport, &newfwd->listenport) == DROPBEAR_FAILURE) { |