1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

includes.h: Added FreeBSD 3.x fixes. Added HPUX10.x fixes.

interface.c: Added netmask fix.
nmbd_nameregister.c: Fixed unitialised variable warnings.
nmbd_winsproxy.c: Fixed unitialised variable warnings.
nmbd_winsserver.c: Fixed DEC warnings.
print_svid.c: Fixed DEC warnings.
printing.c: Added LPRng fixes.
Jeremy.
This commit is contained in:
Jeremy Allison
-
parent 800510a852
commit 28aff043c4
7 changed files with 45 additions and 13 deletions

View File

@ -48,11 +48,15 @@ static void default_netmask(struct in_addr *inm, struct in_addr *iad)
** Guess a netmask based on the class of the IP address given.
*/
switch((ntohl(iad->s_addr) & 0xE0000000)) {
case 0: /* Class A addr */
case 0x00000000: /* Class A addr */
case 0x20000000:
case 0x40000000:
case 0x60000000:
inm->s_addr = htonl(0xFF000000);
break;
case 0x80000000: /* Class B addr */
case 0xA0000000:
inm->s_addr = htonl(0xFFFF0000);
break;