Deleted Added
full compact
in6_var.h (62587) in6_var.h (72084)
1/* $FreeBSD: head/sys/netinet6/in6_var.h 62587 2000-07-04 16:35:15Z itojun $ */
1/* $FreeBSD: head/sys/netinet6/in6_var.h 72084 2001-02-06 10:12:15Z phk $ */
2/* $KAME: in6_var.h,v 1.33 2000/05/17 05:07:26 jinmei Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

512 */
513
514#define IN6_LOOKUP_MULTI(addr, ifp, in6m) \
515/* struct in6_addr addr; */ \
516/* struct ifnet *ifp; */ \
517/* struct in6_multi *in6m; */ \
518do { \
519 register struct ifmultiaddr *ifma; \
2/* $KAME: in6_var.h,v 1.33 2000/05/17 05:07:26 jinmei Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

512 */
513
514#define IN6_LOOKUP_MULTI(addr, ifp, in6m) \
515/* struct in6_addr addr; */ \
516/* struct ifnet *ifp; */ \
517/* struct in6_multi *in6m; */ \
518do { \
519 register struct ifmultiaddr *ifma; \
520 for (ifma = (ifp)->if_multiaddrs.lh_first; ifma; \
521 ifma = ifma->ifma_link.le_next) { \
520 TAILQ_FOREACH(ifma, &(ifp)->if_multiaddrs, ifma_link) { \
522 if (ifma->ifma_addr->sa_family == AF_INET6 \
523 && IN6_ARE_ADDR_EQUAL(&((struct sockaddr_in6 *)ifma->ifma_addr)->sin6_addr, \
524 &(addr))) \
525 break; \
526 } \
527 (in6m) = (struct in6_multi *)(ifma ? ifma->ifma_protospec : 0); \
528} while(0)
529

--- 56 unchanged lines hidden ---
521 if (ifma->ifma_addr->sa_family == AF_INET6 \
522 && IN6_ARE_ADDR_EQUAL(&((struct sockaddr_in6 *)ifma->ifma_addr)->sin6_addr, \
523 &(addr))) \
524 break; \
525 } \
526 (in6m) = (struct in6_multi *)(ifma ? ifma->ifma_protospec : 0); \
527} while(0)
528

--- 56 unchanged lines hidden ---