Deleted Added
full compact
ifconfig.c (269888) ifconfig.c (270064)
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

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

33 The Regents of the University of California. All rights reserved.\n";
34#endif /* not lint */
35
36#ifndef lint
37#if 0
38static char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94";
39#endif
40static 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

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

33 The Regents of the University of California. All rights reserved.\n";
34#endif /* not lint */
35
36#ifndef lint
37#if 0
38static char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94";
39#endif
40static const char rcsid[] =
41 "$FreeBSD: head/sbin/ifconfig/ifconfig.c 269888 2014-08-12 19:37:49Z gjb $";
41 "$FreeBSD: head/sbin/ifconfig/ifconfig.c 270064 2014-08-16 19:13:52Z melifaro $";
42#endif /* not lint */
43
44#include <sys/param.h>
45#include <sys/ioctl.h>
46#include <sys/socket.h>
47#include <sys/time.h>
48#include <sys/module.h>
49#include <sys/linker.h>

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

1006 af_other_status(s);
1007 else if (afp->af_other_status != NULL)
1008 afp->af_other_status(s);
1009
1010 strncpy(ifs.ifs_name, name, sizeof ifs.ifs_name);
1011 if (ioctl(s, SIOCGIFSTATUS, &ifs) == 0)
1012 printf("%s", ifs.ascii);
1013
42#endif /* not lint */
43
44#include <sys/param.h>
45#include <sys/ioctl.h>
46#include <sys/socket.h>
47#include <sys/time.h>
48#include <sys/module.h>
49#include <sys/linker.h>

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

1006 af_other_status(s);
1007 else if (afp->af_other_status != NULL)
1008 afp->af_other_status(s);
1009
1010 strncpy(ifs.ifs_name, name, sizeof ifs.ifs_name);
1011 if (ioctl(s, SIOCGIFSTATUS, &ifs) == 0)
1012 printf("%s", ifs.ascii);
1013
1014 if (verbose > 0)
1015 sfp_status(s, &ifr, verbose);
1016
1014 close(s);
1015 return;
1016}
1017
1018static void
1019tunnel_status(int s)
1020{
1021 af_all_tunnel_status(s);

--- 207 unchanged lines hidden ---
1017 close(s);
1018 return;
1019}
1020
1021static void
1022tunnel_status(int s)
1023{
1024 af_all_tunnel_status(s);

--- 207 unchanged lines hidden ---