Deleted Added
full compact
inet6.c (64342) inet6.c (74262)
1/* BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp */
2/*
3 * Copyright (c) 1983, 1988, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 17 unchanged lines hidden (view full) ---

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
1/* BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp */
2/*
3 * Copyright (c) 1983, 1988, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 17 unchanged lines hidden (view full) ---

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $FreeBSD: head/usr.bin/netstat/inet6.c 64342 2000-08-07 16:39:33Z ume $
34 * $FreeBSD: head/usr.bin/netstat/inet6.c 74262 2001-03-14 20:51:26Z brian $
35 */
36
37#ifndef lint
38/*
39static char sccsid[] = "@(#)inet6.c 8.4 (Berkeley) 4/20/94";
40*/
41#endif /* not lint */
42

--- 967 unchanged lines hidden (view full) ---

1010
1011char *
1012inet6name(in6p)
1013 struct in6_addr *in6p;
1014{
1015 register char *cp;
1016 static char line[50];
1017 struct hostent *hp;
35 */
36
37#ifndef lint
38/*
39static char sccsid[] = "@(#)inet6.c 8.4 (Berkeley) 4/20/94";
40*/
41#endif /* not lint */
42

--- 967 unchanged lines hidden (view full) ---

1010
1011char *
1012inet6name(in6p)
1013 struct in6_addr *in6p;
1014{
1015 register char *cp;
1016 static char line[50];
1017 struct hostent *hp;
1018 static char domain[MAXHOSTNAMELEN + 1];
1018 static char domain[MAXHOSTNAMELEN];
1019 static int first = 1;
1020
1021 if (first && !nflag) {
1022 first = 0;
1023 if (gethostname(domain, MAXHOSTNAMELEN) == 0 &&
1024 (cp = index(domain, '.')))
1025 (void) strcpy(domain, cp + 1);
1026 else

--- 23 unchanged lines hidden ---
1019 static int first = 1;
1020
1021 if (first && !nflag) {
1022 first = 0;
1023 if (gethostname(domain, MAXHOSTNAMELEN) == 0 &&
1024 (cp = index(domain, '.')))
1025 (void) strcpy(domain, cp + 1);
1026 else

--- 23 unchanged lines hidden ---