in_var.h (13200) | in_var.h (13357) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)in_var.h 8.2 (Berkeley) 1/9/95 |
34 * $Id: in_var.h,v 1.13 1995/12/19 20:46:14 wollman Exp $ | 34 * $Id: in_var.h,v 1.14 1996/01/03 20:24:33 wollman Exp $ |
35 */ 36 37#ifndef _NETINET_IN_VAR_H_ 38#define _NETINET_IN_VAR_H_ 39 40#include <sys/queue.h> 41 42/* --- 63 unchanged lines hidden (view full) --- 106 IA_DSTSIN(ia):IA_SIN(ia))->sin_addr.s_addr != (addr).s_addr; \ 107 ia = ia->ia_next) \ 108 continue; \ 109 if (ia == NULL) \ 110 for (ia = in_ifaddr; \ 111 ia != NULL; \ 112 ia = ia->ia_next) \ 113 if (ia->ia_ifp->if_flags & IFF_POINTOPOINT && \ | 35 */ 36 37#ifndef _NETINET_IN_VAR_H_ 38#define _NETINET_IN_VAR_H_ 39 40#include <sys/queue.h> 41 42/* --- 63 unchanged lines hidden (view full) --- 106 IA_DSTSIN(ia):IA_SIN(ia))->sin_addr.s_addr != (addr).s_addr; \ 107 ia = ia->ia_next) \ 108 continue; \ 109 if (ia == NULL) \ 110 for (ia = in_ifaddr; \ 111 ia != NULL; \ 112 ia = ia->ia_next) \ 113 if (ia->ia_ifp->if_flags & IFF_POINTOPOINT && \ |
114 IA_SIN(ia)->sin_addr.s_addr != (addr).s_addr) \ | 114 IA_SIN(ia)->sin_addr.s_addr == (addr).s_addr) \ |
115 break; \ 116 (ifp) = (ia == NULL) ? NULL : ia->ia_ifp; \ 117} 118 119/* 120 * Macro for finding the internet address structure (in_ifaddr) corresponding 121 * to a given interface (ifnet structure). 122 */ --- 112 unchanged lines hidden --- | 115 break; \ 116 (ifp) = (ia == NULL) ? NULL : ia->ia_ifp; \ 117} 118 119/* 120 * Macro for finding the internet address structure (in_ifaddr) corresponding 121 * to a given interface (ifnet structure). 122 */ --- 112 unchanged lines hidden --- |