Deleted Added
full compact
netaddr.c (302408) netaddr.c (309007)
1/*
2 * Copyright (C) 2004, 2005, 2007, 2010-2012 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 1999-2002 Internet Software Consortium.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

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

275 }
276 if ((c & 0xFF) != 0)
277 return (ISC_R_MASKNONCONTIG);
278 i++;
279 }
280 for (; i < ipbytes; i++) {
281 if (p[i] != 0)
282 return (ISC_R_MASKNONCONTIG);
1/*
2 * Copyright (C) 2004, 2005, 2007, 2010-2012 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 1999-2002 Internet Software Consortium.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

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

275 }
276 if ((c & 0xFF) != 0)
277 return (ISC_R_MASKNONCONTIG);
278 i++;
279 }
280 for (; i < ipbytes; i++) {
281 if (p[i] != 0)
282 return (ISC_R_MASKNONCONTIG);
283 i++;
284 }
285 *lenp = nbytes * 8 + nbits;
286 return (ISC_R_SUCCESS);
287}
288
289void
290isc_netaddr_fromin(isc_netaddr_t *netaddr, const struct in_addr *ina) {
291 memset(netaddr, 0, sizeof(*netaddr));

--- 145 unchanged lines hidden ---
283 }
284 *lenp = nbytes * 8 + nbits;
285 return (ISC_R_SUCCESS);
286}
287
288void
289isc_netaddr_fromin(isc_netaddr_t *netaddr, const struct in_addr *ina) {
290 memset(netaddr, 0, sizeof(*netaddr));

--- 145 unchanged lines hidden ---