Deleted Added
full compact
if_llatbl.h (287789) if_llatbl.h (287798)
1/*
2 * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
3 * Copyright (c) 2004-2008 Qing Li. All rights reserved.
4 * Copyright (c) 2008 Kip Macy. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
3 * Copyright (c) 2004-2008 Qing Li. All rights reserved.
4 * Copyright (c) 2008 Kip Macy. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/net/if_llatbl.h 287789 2015-09-14 16:48:19Z melifaro $");
28__FBSDID("$FreeBSD: head/sys/net/if_llatbl.h 287798 2015-09-14 19:17:25Z vangyzen $");
29
30#ifndef _NET_IF_LLATBL_H_
31#define _NET_IF_LLATBL_H_
32
33#include <sys/_rwlock.h>
34#include <netinet/in.h>
35
36struct ifnet;

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

178
179/*
180 * LLentry flags
181 */
182#define LLE_DELETED 0x0001 /* entry must be deleted */
183#define LLE_STATIC 0x0002 /* entry is static */
184#define LLE_IFADDR 0x0004 /* entry is interface addr */
185#define LLE_VALID 0x0008 /* ll_addr is valid */
29
30#ifndef _NET_IF_LLATBL_H_
31#define _NET_IF_LLATBL_H_
32
33#include <sys/_rwlock.h>
34#include <netinet/in.h>
35
36struct ifnet;

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

178
179/*
180 * LLentry flags
181 */
182#define LLE_DELETED 0x0001 /* entry must be deleted */
183#define LLE_STATIC 0x0002 /* entry is static */
184#define LLE_IFADDR 0x0004 /* entry is interface addr */
185#define LLE_VALID 0x0008 /* ll_addr is valid */
186#define LLE_REDIRECT 0x0010 /* installed by redirect; has host rtentry */
186#define LLE_PUB 0x0020 /* publish entry ??? */
187#define LLE_LINKED 0x0040 /* linked to lookup structure */
188/* LLE request flags */
189#define LLE_EXCLUSIVE 0x2000 /* return lle xlocked */
190
191#define LLATBL_HASH(key, mask) \
192 (((((((key >> 8) ^ key) >> 8) ^ key) >> 8) ^ key) & mask)
193

--- 52 unchanged lines hidden ---
187#define LLE_PUB 0x0020 /* publish entry ??? */
188#define LLE_LINKED 0x0040 /* linked to lookup structure */
189/* LLE request flags */
190#define LLE_EXCLUSIVE 0x2000 /* return lle xlocked */
191
192#define LLATBL_HASH(key, mask) \
193 (((((((key >> 8) ^ key) >> 8) ^ key) >> 8) ^ key) & mask)
194

--- 52 unchanged lines hidden ---