Deleted Added
full compact
in_var.h (226401) in_var.h (228571)
1/*-
2 * Copyright (c) 1985, 1986, 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 * @(#)in_var.h 8.2 (Berkeley) 1/9/95
1/*-
2 * Copyright (c) 1985, 1986, 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 * @(#)in_var.h 8.2 (Berkeley) 1/9/95
30 * $FreeBSD: head/sys/netinet/in_var.h 226401 2011-10-15 16:28:06Z glebius $
30 * $FreeBSD: head/sys/netinet/in_var.h 228571 2011-12-16 12:16:56Z glebius $
31 */
32
33#ifndef _NETINET_IN_VAR_H_
34#define _NETINET_IN_VAR_H_
35
36#include <sys/queue.h>
37#include <sys/fnv_hash.h>
38#include <sys/tree.h>

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

72};
73
74struct in_aliasreq {
75 char ifra_name[IFNAMSIZ]; /* if name, e.g. "en0" */
76 struct sockaddr_in ifra_addr;
77 struct sockaddr_in ifra_broadaddr;
78#define ifra_dstaddr ifra_broadaddr
79 struct sockaddr_in ifra_mask;
31 */
32
33#ifndef _NETINET_IN_VAR_H_
34#define _NETINET_IN_VAR_H_
35
36#include <sys/queue.h>
37#include <sys/fnv_hash.h>
38#include <sys/tree.h>

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

72};
73
74struct in_aliasreq {
75 char ifra_name[IFNAMSIZ]; /* if name, e.g. "en0" */
76 struct sockaddr_in ifra_addr;
77 struct sockaddr_in ifra_broadaddr;
78#define ifra_dstaddr ifra_broadaddr
79 struct sockaddr_in ifra_mask;
80 int ifra_vhid;
80};
81/*
82 * Given a pointer to an in_ifaddr (ifaddr),
83 * return a pointer to the addr as a sockaddr_in.
84 */
85#define IA_SIN(ia) (&(((struct in_ifaddr *)(ia))->ia_addr))
86#define IA_DSTSIN(ia) (&(((struct in_ifaddr *)(ia))->ia_dstaddr))
87

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

437int in_joingroup_locked(struct ifnet *, const struct in_addr *,
438 /*const*/ struct in_mfilter *, struct in_multi **);
439int in_leavegroup(struct in_multi *, /*const*/ struct in_mfilter *);
440int in_leavegroup_locked(struct in_multi *,
441 /*const*/ struct in_mfilter *);
442int in_control(struct socket *, u_long, caddr_t, struct ifnet *,
443 struct thread *);
444void in_rtqdrain(void);
81};
82/*
83 * Given a pointer to an in_ifaddr (ifaddr),
84 * return a pointer to the addr as a sockaddr_in.
85 */
86#define IA_SIN(ia) (&(((struct in_ifaddr *)(ia))->ia_addr))
87#define IA_DSTSIN(ia) (&(((struct in_ifaddr *)(ia))->ia_dstaddr))
88

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

438int in_joingroup_locked(struct ifnet *, const struct in_addr *,
439 /*const*/ struct in_mfilter *, struct in_multi **);
440int in_leavegroup(struct in_multi *, /*const*/ struct in_mfilter *);
441int in_leavegroup_locked(struct in_multi *,
442 /*const*/ struct in_mfilter *);
443int in_control(struct socket *, u_long, caddr_t, struct ifnet *,
444 struct thread *);
445void in_rtqdrain(void);
446int in_addprefix(struct in_ifaddr *, int);
447int in_scrubprefix(struct in_ifaddr *, u_int);
445void ip_input(struct mbuf *);
446int in_ifadown(struct ifaddr *ifa, int);
447void in_ifscrub(struct ifnet *, struct in_ifaddr *, u_int);
448struct mbuf *ip_fastforward(struct mbuf *);
449void *in_domifattach(struct ifnet *);
450void in_domifdetach(struct ifnet *, void *);
451
452

--- 20 unchanged lines hidden ---
448void ip_input(struct mbuf *);
449int in_ifadown(struct ifaddr *ifa, int);
450void in_ifscrub(struct ifnet *, struct in_ifaddr *, u_int);
451struct mbuf *ip_fastforward(struct mbuf *);
452void *in_domifattach(struct ifnet *);
453void in_domifdetach(struct ifnet *, void *);
454
455

--- 20 unchanged lines hidden ---