in6_ifattach.c (cbd18445373acc6a511c0c6866b7778f7e2bb082) | in6_ifattach.c (2e730bea0af04061e1bcfd7f4d49b5ea0024be85) |
---|---|
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 --- 764 unchanged lines hidden (view full) --- 773 LIST_REMOVE(imm, i6mm_chain); 774 in6_leavegroup(imm); 775 } 776 777 /* remove from the routing table */ 778 if ((ia->ia_flags & IFA_ROUTE) && 779 (rt = rtalloc1((struct sockaddr *)&ia->ia_addr, 0, 0UL))) { 780 rtflags = rt->rt_flags; | 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 --- 764 unchanged lines hidden (view full) --- 773 LIST_REMOVE(imm, i6mm_chain); 774 in6_leavegroup(imm); 775 } 776 777 /* remove from the routing table */ 778 if ((ia->ia_flags & IFA_ROUTE) && 779 (rt = rtalloc1((struct sockaddr *)&ia->ia_addr, 0, 0UL))) { 780 rtflags = rt->rt_flags; |
781 rtfree(rt); | 781 RTFREE_LOCKED(rt); |
782 rtrequest(RTM_DELETE, (struct sockaddr *)&ia->ia_addr, 783 (struct sockaddr *)&ia->ia_addr, 784 (struct sockaddr *)&ia->ia_prefixmask, 785 rtflags, (struct rtentry **)0); 786 } 787 788 /* remove from the linked list */ 789 TAILQ_REMOVE(&ifp->if_addrlist, (struct ifaddr *)ia, ifa_list); --- 124 unchanged lines hidden --- | 782 rtrequest(RTM_DELETE, (struct sockaddr *)&ia->ia_addr, 783 (struct sockaddr *)&ia->ia_addr, 784 (struct sockaddr *)&ia->ia_prefixmask, 785 rtflags, (struct rtentry **)0); 786 } 787 788 /* remove from the linked list */ 789 TAILQ_REMOVE(&ifp->if_addrlist, (struct ifaddr *)ia, ifa_list); --- 124 unchanged lines hidden --- |