diff options
| author | Paul Saab <ps@FreeBSD.org> | 2000-09-20 18:37:25 +0000 |
|---|---|---|
| committer | Paul Saab <ps@FreeBSD.org> | 2000-09-20 18:37:25 +0000 |
| commit | 994760debfa43dd03e96fe8d27c1b5cac3c4bcc2 (patch) | |
| tree | 0164912147e7176e27141ce32746094e3764ddce | |
| parent | 079ed784d694bef7e5a94fd6ae9d67acec9906f5 (diff) | |
Notes
| -rw-r--r-- | lib/libstand/bootp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libstand/bootp.c b/lib/libstand/bootp.c index c440c982c54d..5ac38b35dbe1 100644 --- a/lib/libstand/bootp.c +++ b/lib/libstand/bootp.c @@ -201,9 +201,9 @@ bootp(sock, flag) bcopy(rbuf.rbootp.bp_file, bootfile, sizeof(bootfile)); bootfile[sizeof(bootfile) - 1] = '\0'; - if (IN_CLASSA(myip.s_addr)) + if (IN_CLASSA(ntohl(myip.s_addr))) nmask = htonl(IN_CLASSA_NET); - else if (IN_CLASSB(myip.s_addr)) + else if (IN_CLASSB(ntohl(myip.s_addr))) nmask = htonl(IN_CLASSB_NET); else nmask = htonl(IN_CLASSC_NET); |
