diff options
author | phk <phk@FreeBSD.org> | 1994-10-22 16:30:58 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-10-22 16:30:58 +0000 |
commit | 3d7628e9dbc3539512df60c09dee5dd2b8b6a258 (patch) | |
tree | 30b1a86caa0459b4b5422bfebe1771f741969962 | |
parent | 8b298247f8d4dd5b49695edf7972b5d097bef031 (diff) | |
download | FreeBSD-src-3d7628e9dbc3539512df60c09dee5dd2b8b6a258.zip FreeBSD-src-3d7628e9dbc3539512df60c09dee5dd2b8b6a258.tar.gz |
Found one of the show-stoppers in netboot...
-rw-r--r-- | sys/i386/boot/netboot/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/boot/netboot/main.c b/sys/i386/boot/netboot/main.c index e5d9871..276d388 100644 --- a/sys/i386/boot/netboot/main.c +++ b/sys/i386/boot/netboot/main.c @@ -165,7 +165,7 @@ load() } nfsdiskless.swap_saddr.sin_len = sizeof(struct sockaddr_in); nfsdiskless.swap_saddr.sin_family = AF_INET; - nfsdiskless.swap_saddr.sin_port = swap_nfs_port; + nfsdiskless.swap_saddr.sin_port = htons(swap_nfs_port); nfsdiskless.swap_saddr.sin_addr.s_addr = htonl(arptable[ARP_SWAPSERVER].ipaddr); nfsdiskless.swap_args.sotype = SOCK_DGRAM; @@ -191,7 +191,7 @@ load() } nfsdiskless.root_saddr.sin_len = sizeof(struct sockaddr_in); nfsdiskless.root_saddr.sin_family = AF_INET; - nfsdiskless.root_saddr.sin_port = root_nfs_port; + nfsdiskless.root_saddr.sin_port = htons(root_nfs_port); nfsdiskless.root_saddr.sin_addr.s_addr = htonl(arptable[ARP_ROOTSERVER].ipaddr); nfsdiskless.root_args.sotype = SOCK_DGRAM; |