Deleted Added
full compact
in6.c (196481) in6.c (196535)
1/*-
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58 * SUCH DAMAGE.
59 *
60 * @(#)in.c 8.2 (Berkeley) 11/15/93
61 */
62
63#include <sys/cdefs.h>
1/*-
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58 * SUCH DAMAGE.
59 *
60 * @(#)in.c 8.2 (Berkeley) 11/15/93
61 */
62
63#include <sys/cdefs.h>
64__FBSDID("$FreeBSD: head/sys/netinet6/in6.c 196481 2009-08-23 20:40:19Z rwatson $");
64__FBSDID("$FreeBSD: head/sys/netinet6/in6.c 196535 2009-08-25 09:52:38Z rwatson $");
65
66#include "opt_inet.h"
67#include "opt_inet6.h"
68
69#include <sys/param.h>
70#include <sys/errno.h>
71#include <sys/jail.h>
72#include <sys/malloc.h>

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

2490 */
2491#ifdef __LP64__
2492 uint32_t pad;
2493#endif
2494 struct sockaddr_dl sdl;
2495 } ndpc;
2496 int i, error;
2497
65
66#include "opt_inet.h"
67#include "opt_inet6.h"
68
69#include <sys/param.h>
70#include <sys/errno.h>
71#include <sys/jail.h>
72#include <sys/malloc.h>

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

2490 */
2491#ifdef __LP64__
2492 uint32_t pad;
2493#endif
2494 struct sockaddr_dl sdl;
2495 } ndpc;
2496 int i, error;
2497
2498 IFNET_RLOCK_ASSERT();
2498 LLTABLE_LOCK_ASSERT();
2499
2500 error = 0;
2501 for (i = 0; i < LLTBL_HASHTBL_SIZE; i++) {
2502 LIST_FOREACH(lle, &llt->lle_head[i], lle_next) {
2503 struct sockaddr_dl *sdl;
2504
2505 /* skip deleted or invalid entries */
2506 if ((lle->la_flags & (LLE_DELETED|LLE_VALID)) != LLE_VALID)

--- 152 unchanged lines hidden ---
2499
2500 error = 0;
2501 for (i = 0; i < LLTBL_HASHTBL_SIZE; i++) {
2502 LIST_FOREACH(lle, &llt->lle_head[i], lle_next) {
2503 struct sockaddr_dl *sdl;
2504
2505 /* skip deleted or invalid entries */
2506 if ((lle->la_flags & (LLE_DELETED|LLE_VALID)) != LLE_VALID)

--- 152 unchanged lines hidden ---