Deleted Added
full compact
if.c (181803) if.c (181887)
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: head/sys/net/if.c 181803 2008-08-17 23:27:27Z bz $
30 * $FreeBSD: head/sys/net/if.c 181887 2008-08-20 01:05:56Z julian $
31 */
32
33#include "opt_compat.h"
34#include "opt_inet6.h"
35#include "opt_inet.h"
36#include "opt_mac.h"
37#include "opt_carp.h"
38

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

171 struct ifnet *ifp;
172
173 IFNET_RLOCK();
174 ifp = V_ifindex_table[idx].ife_ifnet;
175 IFNET_RUNLOCK();
176 return (ifp);
177}
178
31 */
32
33#include "opt_compat.h"
34#include "opt_inet6.h"
35#include "opt_inet.h"
36#include "opt_mac.h"
37#include "opt_carp.h"
38

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

171 struct ifnet *ifp;
172
173 IFNET_RLOCK();
174 ifp = V_ifindex_table[idx].ife_ifnet;
175 IFNET_RUNLOCK();
176 return (ifp);
177}
178
179static void
179void
180ifnet_setbyindex(u_short idx, struct ifnet *ifp)
181{
182
183 IFNET_WLOCK_ASSERT();
184
185 V_ifindex_table[idx].ife_ifnet = ifp;
186}
187

--- 2626 unchanged lines hidden ---
180ifnet_setbyindex(u_short idx, struct ifnet *ifp)
181{
182
183 IFNET_WLOCK_ASSERT();
184
185 V_ifindex_table[idx].ife_ifnet = ifp;
186}
187

--- 2626 unchanged lines hidden ---