Deleted Added
full compact
if.c (318397) if.c (324472)
1/*-
2 * Copyright (c) 1980, 1986, 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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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 * @(#)if.c 8.5 (Berkeley) 1/9/95
1/*-
2 * Copyright (c) 1980, 1986, 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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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 * @(#)if.c 8.5 (Berkeley) 1/9/95
30 * $FreeBSD: stable/11/sys/net/if.c 318397 2017-05-17 05:53:25Z rpokala $
30 * $FreeBSD: stable/11/sys/net/if.c 324472 2017-10-10 05:25:46Z sephe $
31 */
32
33#include "opt_compat.h"
34#include "opt_inet6.h"
35#include "opt_inet.h"
36
37#include <sys/param.h>
38#include <sys/types.h>

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

2656 break;
2657
2658 case SIOCGIFSTATUS:
2659 case SIOCGIFPSRCADDR:
2660 case SIOCGIFPDSTADDR:
2661 case SIOCGIFMEDIA:
2662 case SIOCGIFXMEDIA:
2663 case SIOCGIFGENERIC:
31 */
32
33#include "opt_compat.h"
34#include "opt_inet6.h"
35#include "opt_inet.h"
36
37#include <sys/param.h>
38#include <sys/types.h>

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

2656 break;
2657
2658 case SIOCGIFSTATUS:
2659 case SIOCGIFPSRCADDR:
2660 case SIOCGIFPDSTADDR:
2661 case SIOCGIFMEDIA:
2662 case SIOCGIFXMEDIA:
2663 case SIOCGIFGENERIC:
2664 case SIOCGIFRSSKEY:
2665 case SIOCGIFRSSHASH:
2664 if (ifp->if_ioctl == NULL)
2665 return (EOPNOTSUPP);
2666 error = (*ifp->if_ioctl)(ifp, cmd, data);
2667 break;
2668
2669 case SIOCSIFLLADDR:
2670 error = priv_check(td, PRIV_NET_SETLLADDR);
2671 if (error)

--- 1531 unchanged lines hidden ---
2666 if (ifp->if_ioctl == NULL)
2667 return (EOPNOTSUPP);
2668 error = (*ifp->if_ioctl)(ifp, cmd, data);
2669 break;
2670
2671 case SIOCSIFLLADDR:
2672 error = priv_check(td, PRIV_NET_SETLLADDR);
2673 if (error)

--- 1531 unchanged lines hidden ---