Deleted Added
full compact
af_inet.c (301059) af_inet.c (301185)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#ifndef lint
31static const char rcsid[] =
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#ifndef lint
31static const char rcsid[] =
32 "$FreeBSD: head/sbin/ifconfig/af_inet.c 301059 2016-05-31 17:30:08Z allanjude $";
32 "$FreeBSD: head/sbin/ifconfig/af_inet.c 301185 2016-06-02 03:16:02Z allanjude $";
33#endif /* not lint */
34
35#include <sys/param.h>
36#include <sys/ioctl.h>
37#include <sys/socket.h>
38#include <net/if.h>
39
40#include <ctype.h>

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

49#include <netinet/in_var.h>
50#include <arpa/inet.h>
51#include <netdb.h>
52
53#include "ifconfig.h"
54
55static struct in_aliasreq in_addreq;
56static struct ifreq in_ridreq;
33#endif /* not lint */
34
35#include <sys/param.h>
36#include <sys/ioctl.h>
37#include <sys/socket.h>
38#include <net/if.h>
39
40#include <ctype.h>

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

49#include <netinet/in_var.h>
50#include <arpa/inet.h>
51#include <netdb.h>
52
53#include "ifconfig.h"
54
55static struct in_aliasreq in_addreq;
56static struct ifreq in_ridreq;
57static char addr_buf[MAXHOSTNAMELEN *2 + 1]; /*for getnameinfo()*/
57static char addr_buf[NI_MAXHOST]; /*for getnameinfo()*/
58extern char *f_inet, *f_addr;
59
60static void
61in_status(int s __unused, const struct ifaddrs *ifa)
62{
63 struct sockaddr_in *sin, null_sin;
64 int error, n_flags;
65

--- 175 unchanged lines hidden ---
58extern char *f_inet, *f_addr;
59
60static void
61in_status(int s __unused, const struct ifaddrs *ifa)
62{
63 struct sockaddr_in *sin, null_sin;
64 int error, n_flags;
65

--- 175 unchanged lines hidden ---