Deleted Added
full compact
if.h (263102) if.h (269243)
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: head/sys/net/if.h 263102 2014-03-13 03:42:24Z glebius $
30 * $FreeBSD: head/sys/net/if.h 269243 2014-07-29 15:01:29Z glebius $
31 */
32
33#ifndef _NET_IF_H_
34#define _NET_IF_H_
35
36#include <sys/cdefs.h>
37
38#if __BSD_VISIBLE

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

299 */
300struct ifa_msghdr {
301 u_short ifam_msglen; /* to skip over non-understood messages */
302 u_char ifam_version; /* future binary compatibility */
303 u_char ifam_type; /* message type */
304 int ifam_addrs; /* like rtm_addrs */
305 int ifam_flags; /* value of ifa_flags */
306 u_short ifam_index; /* index for associated ifp */
31 */
32
33#ifndef _NET_IF_H_
34#define _NET_IF_H_
35
36#include <sys/cdefs.h>
37
38#if __BSD_VISIBLE

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

299 */
300struct ifa_msghdr {
301 u_short ifam_msglen; /* to skip over non-understood messages */
302 u_char ifam_version; /* future binary compatibility */
303 u_char ifam_type; /* message type */
304 int ifam_addrs; /* like rtm_addrs */
305 int ifam_flags; /* value of ifa_flags */
306 u_short ifam_index; /* index for associated ifp */
307 int ifam_metric; /* value of ifa_metric */
307 int ifam_metric; /* value of ifa_ifp->if_metric */
308};
309
310/*
311 * The 'l' version shall be used by new interfaces, like NET_RT_IFLISTL. It is
312 * extensible after ifam_metric or within ifam_data. Both the ifa_msghdrl and
313 * if_data now have a member field detailing the struct length in addition to
314 * the routing message length. Macros are provided to find the start of
315 * ifm_data and the start of the socket address strucutres immediately following

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

324 u_char ifam_version; /* future binary compatibility */
325 u_char ifam_type; /* message type */
326 int ifam_addrs; /* like rtm_addrs */
327 int ifam_flags; /* value of ifa_flags */
328 u_short ifam_index; /* index for associated ifp */
329 u_short _ifam_spare1; /* spare space to grow if_index, see if_var.h */
330 u_short ifam_len; /* length of ifa_msghdrl incl. if_data */
331 u_short ifam_data_off; /* offset of if_data from beginning */
308};
309
310/*
311 * The 'l' version shall be used by new interfaces, like NET_RT_IFLISTL. It is
312 * extensible after ifam_metric or within ifam_data. Both the ifa_msghdrl and
313 * if_data now have a member field detailing the struct length in addition to
314 * the routing message length. Macros are provided to find the start of
315 * ifm_data and the start of the socket address strucutres immediately following

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

324 u_char ifam_version; /* future binary compatibility */
325 u_char ifam_type; /* message type */
326 int ifam_addrs; /* like rtm_addrs */
327 int ifam_flags; /* value of ifa_flags */
328 u_short ifam_index; /* index for associated ifp */
329 u_short _ifam_spare1; /* spare space to grow if_index, see if_var.h */
330 u_short ifam_len; /* length of ifa_msghdrl incl. if_data */
331 u_short ifam_data_off; /* offset of if_data from beginning */
332 int ifam_metric; /* value of ifa_metric */
332 int ifam_metric; /* value of ifa_ifp->if_metric */
333 struct if_data ifam_data;/* statistics and other data about if or
334 * address */
335};
336
337/*
338 * Message format for use in obtaining information about multicast addresses
339 * from the routing socket
340 */

--- 195 unchanged lines hidden ---
333 struct if_data ifam_data;/* statistics and other data about if or
334 * address */
335};
336
337/*
338 * Message format for use in obtaining information about multicast addresses
339 * from the routing socket
340 */

--- 195 unchanged lines hidden ---