Deleted Added
full compact
getifaddrs.c (197029) getifaddrs.c (228571)
1/* $KAME: getifaddrs.c,v 1.9 2001/08/20 02:31:20 itojun Exp $ */
2
3/*
4 * Copyright (c) 1995, 1999
5 * Berkeley Software Design, Inc. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

25 * BSDI getifaddrs.c,v 2.12 2000/02/23 14:51:59 dab Exp
26 */
27/*
28 * NOTE: SIOCGIFCONF case is not LP64 friendly. it also does not perform
29 * try-and-error for region size.
30 */
31
32#include <sys/cdefs.h>
1/* $KAME: getifaddrs.c,v 1.9 2001/08/20 02:31:20 itojun Exp $ */
2
3/*
4 * Copyright (c) 1995, 1999
5 * Berkeley Software Design, Inc. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

25 * BSDI getifaddrs.c,v 2.12 2000/02/23 14:51:59 dab Exp
26 */
27/*
28 * NOTE: SIOCGIFCONF case is not LP64 friendly. it also does not perform
29 * try-and-error for region size.
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/lib/libc/net/getifaddrs.c 197029 2009-09-09 10:31:20Z phk $");
33__FBSDID("$FreeBSD: head/lib/libc/net/getifaddrs.c 228571 2011-12-16 12:16:56Z glebius $");
34
35#include "namespace.h"
36#include <sys/types.h>
37#include <sys/ioctl.h>
38#include <sys/socket.h>
39#include <net/if.h>
40#ifdef NET_RT_IFLIST
41#include <sys/param.h>

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

71#ifndef ALIGN
72#define ALIGN(p) (((u_long)(p) + ALIGNBYTES) &~ ALIGNBYTES)
73#endif
74
75#if _BSDI_VERSION >= 199701
76#define HAVE_IFM_DATA
77#endif
78
34
35#include "namespace.h"
36#include <sys/types.h>
37#include <sys/ioctl.h>
38#include <sys/socket.h>
39#include <net/if.h>
40#ifdef NET_RT_IFLIST
41#include <sys/param.h>

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

71#ifndef ALIGN
72#define ALIGN(p) (((u_long)(p) + ALIGNBYTES) &~ ALIGNBYTES)
73#endif
74
75#if _BSDI_VERSION >= 199701
76#define HAVE_IFM_DATA
77#endif
78
79#if _BSDI_VERSION >= 199802
79#if (_BSDI_VERSION >= 199802) || (__FreeBSD_version >= 1000003)
80/* ifam_data is very specific to recent versions of bsdi */
81#define HAVE_IFAM_DATA
82#endif
83
84#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
85#define HAVE_IFM_DATA
86#endif
87

--- 331 unchanged lines hidden ---
80/* ifam_data is very specific to recent versions of bsdi */
81#define HAVE_IFAM_DATA
82#endif
83
84#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
85#define HAVE_IFM_DATA
86#endif
87

--- 331 unchanged lines hidden ---