Deleted Added
full compact
if_lagg.h (287723) if_lagg.h (287808)
1/* $OpenBSD: if_trunk.h,v 1.11 2007/01/31 06:20:19 reyk Exp $ */
2
3/*
4 * Copyright (c) 2005, 2006 Reyk Floeter <reyk@openbsd.org>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 *
1/* $OpenBSD: if_trunk.h,v 1.11 2007/01/31 06:20:19 reyk Exp $ */
2
3/*
4 * Copyright (c) 2005, 2006 Reyk Floeter <reyk@openbsd.org>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 *
18 * $FreeBSD: stable/10/sys/net/if_lagg.h 287723 2015-09-12 20:36:39Z hrs $
18 * $FreeBSD: stable/10/sys/net/if_lagg.h 287808 2015-09-15 05:19:10Z hiren $
19 */
20
21#ifndef _NET_LAGG_H
22#define _NET_LAGG_H
23
24/*
25 * Global definitions
26 */

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

143#define LAGG_OPT_NONE 0x00
144#define LAGG_OPT_USE_FLOWID 0x01 /* use M_FLOWID */
145/* Pseudo flags which are used in ro_opts but not stored into sc_opts. */
146#define LAGG_OPT_FLOWIDSHIFT 0x02 /* Set flowid */
147#define LAGG_OPT_FLOWIDSHIFT_MASK 0x1f /* flowid is uint32_t */
148#define LAGG_OPT_LACP_STRICT 0x10 /* LACP strict mode */
149#define LAGG_OPT_LACP_TXTEST 0x20 /* LACP debug: txtest */
150#define LAGG_OPT_LACP_RXTEST 0x40 /* LACP debug: rxtest */
19 */
20
21#ifndef _NET_LAGG_H
22#define _NET_LAGG_H
23
24/*
25 * Global definitions
26 */

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

143#define LAGG_OPT_NONE 0x00
144#define LAGG_OPT_USE_FLOWID 0x01 /* use M_FLOWID */
145/* Pseudo flags which are used in ro_opts but not stored into sc_opts. */
146#define LAGG_OPT_FLOWIDSHIFT 0x02 /* Set flowid */
147#define LAGG_OPT_FLOWIDSHIFT_MASK 0x1f /* flowid is uint32_t */
148#define LAGG_OPT_LACP_STRICT 0x10 /* LACP strict mode */
149#define LAGG_OPT_LACP_TXTEST 0x20 /* LACP debug: txtest */
150#define LAGG_OPT_LACP_RXTEST 0x40 /* LACP debug: rxtest */
151#define LAGG_OPT_LACP_TIMEOUT 0x80 /* LACP timeout */
151 u_int ro_count; /* number of ports */
152 u_int ro_active; /* active port count */
153 u_int ro_flapping; /* number of flapping */
154 int ro_flowid_shift; /* shift the flowid */
155};
156
157#define SIOCGLAGGOPTS _IOWR('i', 152, struct lagg_reqopts)
158#define SIOCSLAGGOPTS _IOW('i', 153, struct lagg_reqopts)

--- 152 unchanged lines hidden ---
152 u_int ro_count; /* number of ports */
153 u_int ro_active; /* active port count */
154 u_int ro_flapping; /* number of flapping */
155 int ro_flowid_shift; /* shift the flowid */
156};
157
158#define SIOCGLAGGOPTS _IOWR('i', 152, struct lagg_reqopts)
159#define SIOCSLAGGOPTS _IOW('i', 153, struct lagg_reqopts)

--- 152 unchanged lines hidden ---