search for: aitop

Displaying 20 results from an estimated 41 matches for "aitop".

Did you mean: bitop
2017 Jan 12
3
proposed change to ssh_connect_direct()
On Sat, Jan 7, 2017 at 2:30 PM, Peter Moody <mindrot at hda3.com> wrote: > so I spent a bit of time looking at this and it seems like the only > way to go, at least if I want to keep it in ssh_connect_direct(), is > to use pthreads. further, it seems like getting that accepted is > something of a long shot: Sorry, pthreads is a non-starter. I would have thought that using
2001 Jun 09
2
[PATCH] Make "-L" local ports bind to "127.0.0.1" in openssh-2.9p1
...to/from the this host. */ memset(&hints, 0, sizeof(hints)); hints.ai_family = IPv4or6; hints.ai_flags = gateway_ports ? AI_PASSIVE : 0; hints.ai_socktype = SOCK_STREAM; snprintf(strport, sizeof strport, "%d", listen_port); - if (getaddrinfo(NULL, strport, &hints, &aitop) != 0) + if (getaddrinfo(gateway_ports ? NULL : "127.0.0.1", strport, &hints, &aitop) != 0) packet_disconnect("getaddrinfo: fatal error"); for (ai = aitop; ai; ai = ai->ai_next) {
2002 Feb 15
3
ssh can't resolve hostnames thru WINS
..., I set up Samba and added WINS as a name resolution option. I found out that some programs now can use NetBIOS names, other can't. openssh falls into latter category :-( I found that openssh use this snippet to convert hostname to ip: if((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) fatal("%s: %.100s: %s", __progname, host, gai_strerror(gaierr)); and it fails for me exactly in this if() when I say "ssh <wins_name>". OTOH, ping uses code similar to struct hostent *hp; hp = gethostbyname(hostname); and this works for WINS names....
2006 Mar 13
1
Log message
...hat there are some wacky people scanning sshd port all the time from anywhere. Although sshd reports it with syslog error message which is very helpful, I'd like to know the source ip address with following message: canohost.c: around line #100 if (getaddrinfo(name, NULL, &hints, &aitop) != 0) { logit("reverse mapping checking getaddrinfo for %.700s " "from address %.100s failed - POSSIBLE BREAKIN ATTEMPT!", ntop, name); return xstrdup(ntop); } I added ip address to the message. Since the name woun't be abled to...
2012 Oct 22
1
[PATCH] Implement remote dynamic TCP forwarding
...SSH_CHANNEL_OPEN && - c->type != SSH_CHANNEL_X11_OPEN) + c->type != SSH_CHANNEL_X11_OPEN && + c->type != SSH_CHANNEL_RDYNAMIC) return; /* Get the data. */ @@ -3301,38 +3420,51 @@ channel_connect_ctx_free(struct channel_connect *cctx) cctx->ai = cctx->aitop = NULL; } -/* Return CONNECTING channel to remote host, port */ -static Channel * -connect_to(const char *host, u_short port, char *ctype, char *rname) +static int +connect_to_helper(const char *host, u_short port, struct channel_connect *cctx) { struct addrinfo hints; int gaierr; int soc...
2002 Jan 05
2
new feature w/ patch
..._to_connect, int gateway_ports) { return channel_request_forwarding( - NULL, listen_port, + listen_host, listen_port, host_to_connect, port_to_connect, gateway_ports, /*remote_fwd*/ 0); } @@ -2080,7 +2080,7 @@ int success, sock, on = 1, type; struct addrinfo hints, *ai, *aitop; char ntop[NI_MAXHOST], strport[NI_MAXSERV]; - const char *host; + const char *host, *listen_host = NULL; struct linger linger; success = 0; @@ -2089,6 +2089,7 @@ host = listen_address; type = SSH_CHANNEL_RPORT_LISTENER; } else { + listen_host = listen_address; host = host_to_co...
2001 Mar 13
0
[PATCH] openssh 2.5.1p2 TIS authserv support
...authentication", sKbdInteractiveAuthentication }, { "challengeresponseauthentication", sChallengeResponseAuthentication }, @@ -299,6 +308,34 @@ return sBadOption; } +#ifdef TIS_AUTH +void +add_authserv_addr(ServerOptions *options, char **addr) +{ + struct addrinfo hints, *ai, *aitop; + char *host, *service; + int gaierr; + + memset(&hints, 0, sizeof(hints)); + hints.ai_family = IPv4or6; + hints.ai_socktype = SOCK_STREAM; + hints.ai_flags = (addr == NULL) ? AI_PASSIVE : 0; + + host = strdelim(addr); + service = strdelim(addr); + + if ((gaierr = getaddrinfo(host, service,...
2002 Apr 23
1
problem with X11 forwarding and use_localhost on Linux (solution)
...@@ if (num_socks == NUM_SOCKS) break; #else - break; + if (!x11_use_localhost || num_socks == NUM_SOCKS) + break; #endif } freeaddrinfo(aitop); Stig
2002 May 02
0
problem with X11 forwarding and use_localhost on Linux (solution) (fwd)
...bug("bind port %d: %.100s", port, strerror(errno)); close(sock); @@ -2374,7 +2381,12 @@ if (num_socks == NUM_SOCKS) break; #else - break; + if (x11_use_localhost) { + if (num_socks == NUM_SOCKS) + break; + } else { + break; + } #endif } freeaddrinfo(aitop); In article <Pine.HPX.4.44.0204301333550.2022-100000 at jenny> (at Tue, 30 Apr 2002 13:35:52 -0700 (PDT)), Kevin Steves <kevin at atomicgears.com> says: > itojun, > > do you have any recommendations on this? > > http://bugzilla.mindrot.org/show_bug.cgi?id=164 > &...
2011 Sep 08
1
Dynamic port remote listener - a BUG?
...c->host_port = port_to_connect; c->listening_port = listen_port; success = 1; } if (success == 0) error("channel_setup_fwd_listener: cannot listen to port: %d", listen_port); freeaddrinfo(aitop); return success; } As you see allocated_listen_port gets assigned to some free port, but then... nothing more happens with allocated_listen_port, because c->listening_port is set to listen_port, which in this case equals 0. (note that listen_port IS NOT set to allocated_listen_port!)...
2014 Jul 16
1
ssh - Connection closed by UNKNOWN
...the connection file descriptors. */ packet_set_connection(sock, sock); + debug("Connected to %.200s [%.100s] port %d.", + host, get_remote_ipaddr(), get_remote_port()); return 0; } @@ -493,6 +496,8 @@ ssh_connect_direct(const char *host, struct addrinfo *aitop /* Set the connection. */ packet_set_connection(sock, sock); + debug("Connected to %.200s [%.100s] port %d.", + host, get_remote_ipaddr(), get_remote_port()); return 0; }
2002 Jul 17
2
[Patch] SSH through HTTP proxy using CONNECT
...c/crypto/openssh/sshconnect.c Thu Sep 27 18:33:35 2001 +++ src/sshconnect.c Wed Jul 17 16:14:44 2002 @@ -198,7 +198,9 @@ int gaierr; int on = 1; int sock = -1, attempt; + int connect_port; char ntop[NI_MAXHOST], strport[NI_MAXSERV]; + const char *connect_host; struct addrinfo hints, *ai, *aitop; struct linger linger; struct servent *sp; @@ -218,14 +220,21 @@ if (proxy_command != NULL) return ssh_proxy_connect(host, port, pw, proxy_command); - /* No proxy command. */ + /* If an HTTP proxy is given, connect to it first. */ + if (options.proxy_server != NULL) { + connect_host = o...
2002 Sep 06
0
use of setsockopt(SO_LINGER)
...============================================================= RCS file: /cvs/src/usr.bin/ssh/channels.c,v retrieving revision 1.180 diff -u -r1.180 channels.c --- channels.c 4 Jul 2002 08:12:15 -0000 1.180 +++ channels.c 4 Sep 2002 17:12:51 -0000 @@ -2016,7 +2016,6 @@ struct addrinfo hints, *ai, *aitop; const char *host; char ntop[NI_MAXHOST], strport[NI_MAXSERV]; - struct linger linger; success = 0; host = (type == SSH_CHANNEL_RPORT_LISTENER) ? @@ -2059,13 +2058,13 @@ continue; } /* - * Set socket options. We would like the socket to disappear - * as soon as it has been...
2004 Aug 05
1
LocalForward and RemoteForward bind patch
...nnect; if (host == NULL) { error("No forward host name."); @@ -2167,7 +2167,8 @@ hints.ai_flags = gateway_ports ? AI_PASSIVE : 0; hints.ai_socktype = SOCK_STREAM; snprintf(strport, sizeof strport, "%d", listen_port); - if (getaddrinfo(NULL, strport, &hints, &aitop) != 0) + if (getaddrinfo (listen_addr==NULL?NULL:strlen(listen_addr)>0?listen_addr:NULL, + strport, &hints, &aitop) != 0) packet_disconnect("getaddrinfo: fatal error"); for (ai = aitop; ai; ai = ai->ai_next) { @@ -2222,28 +2223,28 @@ success = 1; } if (suc...
2005 Jan 20
0
AllowUsers - proposal for useful variations on the theme
...+220,58 @@ if ((ret = match_pattern(user, pat)) == 1) ret = match_host_and_ip(host, ipaddr, p); xfree(pat); return ret; } +int +match_user_fixedname(const char *user, const char *ipaddr, + const char *pattern) +{ + char *p, *pat; + int ret; + struct addrinfo hints, *ai, *aitop, ntop[NI_MAXHOST]; + + if ((p = strchr(pattern, '@')) == NULL) + return match_pattern(user, pattern); + + pat = xstrdup(pattern); + p = strchr(pat, '@'); + *p++ = '\0'; + + if ((ret = match_pattern(user, pat)) == 1) { + memset(&hints, 0, sizeof(hints)...
2001 Dec 05
1
DISPLAY=localhost
...play number for the DISPLAY variable, or -1 if + * an error occurs. */ -char * -x11_create_display_inet(int screen_number, int x11_display_offset) +int +x11_create_display_inet(int x11_display_offset, int gateway_ports) { int display_number, sock; u_short port; struct addrinfo hints, *ai, *aitop; char strport[NI_MAXSERV]; int gaierr, n, num_socks = 0, socks[NUM_SOCKS]; - char display[512]; - char hostname[MAXHOSTNAMELEN]; for (display_number = x11_display_offset; display_number < MAX_DISPLAYS; @@ -2416,12 +2414,12 @@ port = 6000 + display_number; memset(&hints, 0...
2000 Dec 07
1
[PATCH] tis authserv support
...sAuthservAddress }, #endif { "checkmail", sCheckMail }, { "listenaddress", sListenAddress }, @@ -277,6 +289,35 @@ return sBadOption; } +#ifdef TIS_AUTH +void +add_authserv_addr(ServerOptions *options, char **addr) +{ + extern int IPv4or6; + struct addrinfo hints, *ai, *aitop; + char *host, *service; + int gaierr; + + memset(&hints, 0, sizeof(hints)); + hints.ai_family = IPv4or6; + hints.ai_socktype = SOCK_STREAM; + hints.ai_flags = (addr == NULL) ? AI_PASSIVE : 0; + + host = strdelim(addr); + service = strdelim(addr); + + if ((gaierr = getaddrinfo(host, service,...
2012 Dec 21
0
File Attachments for previous bug report
...&& c->filter_ctx != NULL) @@ -2667,7 +2667,7 @@ return; cc->cb(type, c, cc->ctx); TAILQ_REMOVE(&c->status_confirms, cc, entry); - bzero(cc, sizeof(*cc)); + memset(cc, 0, sizeof(*cc)); xfree(cc); } @@ -3296,7 +3296,7 @@ xfree(cctx->host); if (cctx->aitop) freeaddrinfo(cctx->aitop); - bzero(cctx, sizeof(*cctx)); + memset(cctx, 0, sizeof(*cctx)); cctx->host = NULL; cctx->ai = cctx->aitop = NULL; } -------------- next part -------------- --- clientloop.c.orig 2012-12-19 17:15:16.548673571 -0800 +++ clientloop.c 2012-12-19 17:...
2001 Feb 21
3
X11 display issues
...ed. Cheers. Andy. *** channels.c.orig Fri Feb 16 16:56:31 2001 --- channels.c Wed Feb 21 11:49:06 2001 *************** *** 1909,1915 **** char * x11_create_display_inet(int screen_number, int x11_display_offset) { ! int display_number, sock; u_short port; struct addrinfo hints, *ai, *aitop; char strport[NI_MAXSERV]; --- 1909,1915 ---- char * x11_create_display_inet(int screen_number, int x11_display_offset) { ! int display_number, sock=-1; u_short port; struct addrinfo hints, *ai, *aitop; char strport[NI_MAXSERV]; *************** *** 1987,1992 **** --- 1987,1997 --...
2012 Nov 24
0
ssh-keyscan continuity patch --
..._ALGS] = c->c_keytype == KT_DSA? "ssh-dss" : (c->c_keytype == KT_RSA ? "ssh-rsa" : @@ -296,8 +318,11 @@ memset(&hints, 0, sizeof(hints)); hints.ai_family = IPv4or6; hints.ai_socktype = SOCK_STREAM; - if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) - fatal("getaddrinfo %s: %s", host, ssh_gai_strerror(gaierr)); + if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) { + error("getaddrinfo %s: %s", host, ssh_gai_strerror(gaierr)); + s = -1; + return s; + } for (ai = aitop; ai; ai = ai->ai_n...