inet_neta.c (9268022b74279434ed6300244e3f977e56a8ceb5) inet_neta.c (060e5496fc388fc6c9f2f377050f69f8e8cd15b0)
1/*
2 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (c) 1996,1999 by Internet Software Consortium.
4 *
5 * Permission to use, copy, modify, and 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 *

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

47 * return:
48 * pointer to dst, or NULL if an error occurred (check errno).
49 * note:
50 * format of ``src'' is as for inet_network().
51 * author:
52 * Paul Vixie (ISC), July 1996
53 */
54char *
1/*
2 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (c) 1996,1999 by Internet Software Consortium.
4 *
5 * Permission to use, copy, modify, and 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 *

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

47 * return:
48 * pointer to dst, or NULL if an error occurred (check errno).
49 * note:
50 * format of ``src'' is as for inet_network().
51 * author:
52 * Paul Vixie (ISC), July 1996
53 */
54char *
55inet_neta(src, dst, size)
56 in_addr_t src;
57 char *dst;
58 size_t size;
55inet_neta(in_addr_t src, char *dst, size_t size)
59{
60 char *odst = dst;
61 char *tp;
62
63 while (src & 0xffffffff) {
64 u_char b = (src & 0xff000000) >> 24;
65
66 src <<= 8;

--- 32 unchanged lines hidden ---
56{
57 char *odst = dst;
58 char *tp;
59
60 while (src & 0xffffffff) {
61 u_char b = (src & 0xff000000) >> 24;
62
63 src <<= 8;

--- 32 unchanged lines hidden ---