Deleted Added
full compact
nfs_diskless.c (121816) nfs_diskless.c (122698)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
37 */
38
39#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
37 */
38
39#include <sys/cdefs.h>
40__FBSDID("$FreeBSD: head/sys/nfsclient/nfs_diskless.c 121816 2003-10-31 18:32:15Z brooks $");
40__FBSDID("$FreeBSD: head/sys/nfsclient/nfs_diskless.c 122698 2003-11-14 20:54:10Z alfred $");
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/kernel.h>
45#include <sys/malloc.h>
46#include <sys/mount.h>
47
48#include <sys/socket.h>
49#include <net/if.h>
50#include <net/if_dl.h>
51#include <net/if_types.h>
52#include <net/if_var.h>
53#include <net/ethernet.h>
54#include <netinet/in.h>
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/kernel.h>
45#include <sys/malloc.h>
46#include <sys/mount.h>
47
48#include <sys/socket.h>
49#include <net/if.h>
50#include <net/if_dl.h>
51#include <net/if_types.h>
52#include <net/if_var.h>
53#include <net/ethernet.h>
54#include <netinet/in.h>
55#include <rpc/rpcclnt.h>
55#include <nfs/rpcv2.h>
56#include <nfs/nfsproto.h>
57#include <nfsclient/nfs.h>
58#include <nfsclient/nfsdiskless.h>
59
60static int inaddr_to_sockaddr(char *ev, struct sockaddr_in *sa);
61static int hwaddr_to_sockaddr(char *ev, struct sockaddr_dl *sa);
62static int decode_nfshandle(char *ev, u_char *fh);

--- 174 unchanged lines hidden ---
56#include <nfs/rpcv2.h>
57#include <nfs/nfsproto.h>
58#include <nfsclient/nfs.h>
59#include <nfsclient/nfsdiskless.h>
60
61static int inaddr_to_sockaddr(char *ev, struct sockaddr_in *sa);
62static int hwaddr_to_sockaddr(char *ev, struct sockaddr_dl *sa);
63static int decode_nfshandle(char *ev, u_char *fh);

--- 174 unchanged lines hidden ---