diff options
author | jhay <jhay@FreeBSD.org> | 2001-12-03 17:53:09 +0000 |
---|---|---|
committer | jhay <jhay@FreeBSD.org> | 2001-12-03 17:53:09 +0000 |
commit | 8694133670e050a2493ec36e7235fda524f9df9c (patch) | |
tree | 8261b7e34827af2b4005cb9f83766fa91e9fc2f1 /usr.bin/telnet | |
parent | 882107c92b4c25cdb41786d32f6dddcf835f78bf (diff) | |
download | FreeBSD-src-8694133670e050a2493ec36e7235fda524f9df9c.zip FreeBSD-src-8694133670e050a2493ec36e7235fda524f9df9c.tar.gz |
Merge from crypto/telnet/telnet/commands.c. Add the necessary paths to
the kerberos libraries and includes.
Diffstat (limited to 'usr.bin/telnet')
-rw-r--r-- | usr.bin/telnet/commands.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c index b38893e..9ec649e 100644 --- a/usr.bin/telnet/commands.c +++ b/usr.bin/telnet/commands.c @@ -89,7 +89,9 @@ static char _hostname[MAXHOSTNAMELEN]; static int help(int, char **); static int call(intrtn_t, ...); static void cmdrc(char *, char *); +#ifdef INET6 static int switch_af(struct addrinfo **); +#endif static int togglehelp(void); static int send_tncmd(void (*)(int, int), const char *, char *); static int setmod(int); @@ -2078,7 +2080,9 @@ tn(int argc, char *argv[]) hostname = _hostname; } res0 = res; + #ifdef INET6 af_again: + #endif if (srcroute != 0) { static char hostbuf[BUFSIZ]; @@ -2560,10 +2564,12 @@ static int sourceroute(struct addrinfo *ai, char *arg, char **cpp, int *lenp, int *protop, int *optp) { static char buf[1024 + ALIGNBYTES]; /*XXX*/ - struct cmsghdr *cmsg; char *cp, *cp2, *lsrp, *ep; struct sockaddr_in *_sin; +#ifdef INET6 struct sockaddr_in6 *sin6; + struct cmsghdr *cmsg; +#endif struct addrinfo hints, *res; int error; char c; |