Deleted Added
full compact
if.h (302408) if.h (324472)
1/*-
2 * Copyright (c) 1982, 1986, 1989, 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.h 8.1 (Berkeley) 6/10/93
1/*-
2 * Copyright (c) 1982, 1986, 1989, 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.h 8.1 (Berkeley) 6/10/93
30 * $FreeBSD: stable/11/sys/net/if.h 301496 2016-06-06 09:51:58Z araujo $
30 * $FreeBSD: stable/11/sys/net/if.h 324472 2017-10-10 05:25:46Z sephe $
31 */
32
33#ifndef _NET_IF_H_
34#define _NET_IF_H_
35
36#include <sys/cdefs.h>
37
38#if __BSD_VISIBLE

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

520 uint8_t dev_addr; /* i2c address (0xA0, 0xA2) */
521 uint8_t offset; /* read offset */
522 uint8_t len; /* read length */
523 uint8_t spare0;
524 uint32_t spare1;
525 uint8_t data[8]; /* read buffer */
526};
527
31 */
32
33#ifndef _NET_IF_H_
34#define _NET_IF_H_
35
36#include <sys/cdefs.h>
37
38#if __BSD_VISIBLE

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

520 uint8_t dev_addr; /* i2c address (0xA0, 0xA2) */
521 uint8_t offset; /* read offset */
522 uint8_t len; /* read length */
523 uint8_t spare0;
524 uint32_t spare1;
525 uint8_t data[8]; /* read buffer */
526};
527
528/*
529 * RSS hash.
530 */
531
532#define RSS_FUNC_NONE 0 /* RSS disabled */
533#define RSS_FUNC_PRIVATE 1 /* non-standard */
534#define RSS_FUNC_TOEPLITZ 2
535
536#define RSS_TYPE_IPV4 0x00000001
537#define RSS_TYPE_TCP_IPV4 0x00000002
538#define RSS_TYPE_IPV6 0x00000004
539#define RSS_TYPE_IPV6_EX 0x00000008
540#define RSS_TYPE_TCP_IPV6 0x00000010
541#define RSS_TYPE_TCP_IPV6_EX 0x00000020
542#define RSS_TYPE_UDP_IPV4 0x00000040
543#define RSS_TYPE_UDP_IPV6 0x00000080
544#define RSS_TYPE_UDP_IPV6_EX 0x00000100
545
546#define RSS_KEYLEN 128
547
548struct ifrsskey {
549 char ifrk_name[IFNAMSIZ]; /* if name, e.g. "en0" */
550 uint8_t ifrk_func; /* RSS_FUNC_ */
551 uint8_t ifrk_spare0;
552 uint16_t ifrk_keylen;
553 uint8_t ifrk_key[RSS_KEYLEN];
554};
555
556struct ifrsshash {
557 char ifrh_name[IFNAMSIZ]; /* if name, e.g. "en0" */
558 uint8_t ifrh_func; /* RSS_FUNC_ */
559 uint8_t ifrh_spare0;
560 uint16_t ifrh_spare1;
561 uint32_t ifrh_types; /* RSS_TYPE_ */
562};
563
528#endif /* __BSD_VISIBLE */
529
530#ifdef _KERNEL
531#ifdef MALLOC_DECLARE
532MALLOC_DECLARE(M_IFADDR);
533MALLOC_DECLARE(M_IFMADDR);
534#endif
535#endif

--- 15 unchanged lines hidden ---
564#endif /* __BSD_VISIBLE */
565
566#ifdef _KERNEL
567#ifdef MALLOC_DECLARE
568MALLOC_DECLARE(M_IFADDR);
569MALLOC_DECLARE(M_IFMADDR);
570#endif
571#endif

--- 15 unchanged lines hidden ---