Deleted Added
full compact
mount_nfs.c (227507) mount_nfs.c (229778)
1/*
2 * Copyright (c) 1992, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
42#endif /* not lint */
43#endif
44#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1992, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
42#endif /* not lint */
43#endif
44#include <sys/cdefs.h>
45__FBSDID("$FreeBSD: head/sbin/mount_nfs/mount_nfs.c 227507 2011-11-14 18:52:07Z jhb $");
45__FBSDID("$FreeBSD: head/sbin/mount_nfs/mount_nfs.c 229778 2012-01-07 16:09:33Z uqs $");
46
47#include <sys/param.h>
48#include <sys/linker.h>
49#include <sys/module.h>
50#include <sys/mount.h>
51#include <sys/socket.h>
52#include <sys/stat.h>
53#include <sys/syslog.h>

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

783 strlen(pname) + 1);
784 }
785 }
786
787 ret = TRYRET_LOCALERR;
788 for (;;) {
789 /*
790 * Try each entry returned by getaddrinfo(). Note the
46
47#include <sys/param.h>
48#include <sys/linker.h>
49#include <sys/module.h>
50#include <sys/mount.h>
51#include <sys/socket.h>
52#include <sys/stat.h>
53#include <sys/syslog.h>

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

783 strlen(pname) + 1);
784 }
785 }
786
787 ret = TRYRET_LOCALERR;
788 for (;;) {
789 /*
790 * Try each entry returned by getaddrinfo(). Note the
791 * occurence of remote errors by setting `remoteerr'.
791 * occurrence of remote errors by setting `remoteerr'.
792 */
793 remoteerr = 0;
794 for (ai = ai_nfs; ai != NULL; ai = ai->ai_next) {
795 if ((ai->ai_family == AF_INET6) &&
796 (opflags & OF_NOINET6))
797 continue;
798 if ((ai->ai_family == AF_INET) &&
799 (opflags & OF_NOINET4))

--- 422 unchanged lines hidden ---
792 */
793 remoteerr = 0;
794 for (ai = ai_nfs; ai != NULL; ai = ai->ai_next) {
795 if ((ai->ai_family == AF_INET6) &&
796 (opflags & OF_NOINET6))
797 continue;
798 if ((ai->ai_family == AF_INET) &&
799 (opflags & OF_NOINET4))

--- 422 unchanged lines hidden ---