in_var.h (71998) | in_var.h (72084) |
---|---|
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 * $FreeBSD: head/sys/netinet/in_var.h 71998 2001-02-04 12:37:48Z phk $ | 34 * $FreeBSD: head/sys/netinet/in_var.h 72084 2001-02-06 10:12:15Z phk $ |
35 */ 36 37#ifndef _NETINET_IN_VAR_H_ 38#define _NETINET_IN_VAR_H_ 39 40#include <sys/queue.h> 41 42/* --- 134 unchanged lines hidden (view full) --- 177 */ 178#define IN_LOOKUP_MULTI(addr, ifp, inm) \ 179 /* struct in_addr addr; */ \ 180 /* struct ifnet *ifp; */ \ 181 /* struct in_multi *inm; */ \ 182do { \ 183 register struct ifmultiaddr *ifma; \ 184\ | 35 */ 36 37#ifndef _NETINET_IN_VAR_H_ 38#define _NETINET_IN_VAR_H_ 39 40#include <sys/queue.h> 41 42/* --- 134 unchanged lines hidden (view full) --- 177 */ 178#define IN_LOOKUP_MULTI(addr, ifp, inm) \ 179 /* struct in_addr addr; */ \ 180 /* struct ifnet *ifp; */ \ 181 /* struct in_multi *inm; */ \ 182do { \ 183 register struct ifmultiaddr *ifma; \ 184\ |
185 LIST_FOREACH(ifma, &((ifp)->if_multiaddrs), ifma_link) { \ | 185 TAILQ_FOREACH(ifma, &((ifp)->if_multiaddrs), ifma_link) { \ |
186 if (ifma->ifma_addr->sa_family == AF_INET \ 187 && ((struct sockaddr_in *)ifma->ifma_addr)->sin_addr.s_addr == \ 188 (addr).s_addr) \ 189 break; \ 190 } \ 191 (inm) = ifma ? ifma->ifma_protospec : 0; \ 192} while(0) 193 --- 42 unchanged lines hidden --- | 186 if (ifma->ifma_addr->sa_family == AF_INET \ 187 && ((struct sockaddr_in *)ifma->ifma_addr)->sin_addr.s_addr == \ 188 (addr).s_addr) \ 189 break; \ 190 } \ 191 (inm) = ifma ? ifma->ifma_protospec : 0; \ 192} while(0) 193 --- 42 unchanged lines hidden --- |