icmp6.c (94e83133494420ab2aebd8bcb059d6f261f50f30) icmp6.c (3b0b2840be64ee1ed67bc6939c412b59bfaac2c7)
1/*-
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

1775 * XXX: we only support IPv6 subject address for
1776 * this Qtype.
1777 */
1778 return (0);
1779 }
1780 }
1781
1782 IFNET_RLOCK_NOSLEEP();
1/*-
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

1775 * XXX: we only support IPv6 subject address for
1776 * this Qtype.
1777 */
1778 return (0);
1779 }
1780 }
1781
1782 IFNET_RLOCK_NOSLEEP();
1783 for (ifp = TAILQ_FIRST(&V_ifnet); ifp; ifp = TAILQ_NEXT(ifp, if_list)) {
1783 TAILQ_FOREACH(ifp, &V_ifnet, if_list) {
1784 addrsofif = 0;
1785 IF_ADDR_LOCK(ifp);
1786 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
1787 if (ifa->ifa_addr->sa_family != AF_INET6)
1788 continue;
1789 ifa6 = (struct in6_ifaddr *)ifa;
1790
1791 if ((niflags & NI_NODEADDR_FLAG_ALL) == 0 &&

--- 1144 unchanged lines hidden ---
1784 addrsofif = 0;
1785 IF_ADDR_LOCK(ifp);
1786 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
1787 if (ifa->ifa_addr->sa_family != AF_INET6)
1788 continue;
1789 ifa6 = (struct in6_ifaddr *)ifa;
1790
1791 if ((niflags & NI_NODEADDR_FLAG_ALL) == 0 &&

--- 1144 unchanged lines hidden ---