Deleted Added
full compact
if.c (72786) if.c (74852)
1/*
2 * Copyright (c) 1980, 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 * @(#)if.c 8.3 (Berkeley) 1/4/94
1/*
2 * Copyright (c) 1980, 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 * @(#)if.c 8.3 (Berkeley) 1/4/94
34 * $FreeBSD: head/sys/net/if.c 72786 2001-02-21 06:39:57Z rwatson $
34 * $FreeBSD: head/sys/net/if.c 74852 2001-03-27 13:15:57Z yar $
35 */
36
37#include "opt_compat.h"
38#include "opt_inet6.h"
39#include "opt_inet.h"
40
41#include <sys/param.h>
42#include <sys/malloc.h>

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

1279 ifma->ifma_refcount--;
1280 return 0;
1281 }
1282
1283 rt_newmaddrmsg(RTM_DELMADDR, ifma);
1284 sa = ifma->ifma_lladdr;
1285 s = splimp();
1286 TAILQ_REMOVE(&ifp->if_multiaddrs, ifma, ifma_link);
35 */
36
37#include "opt_compat.h"
38#include "opt_inet6.h"
39#include "opt_inet.h"
40
41#include <sys/param.h>
42#include <sys/malloc.h>

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

1279 ifma->ifma_refcount--;
1280 return 0;
1281 }
1282
1283 rt_newmaddrmsg(RTM_DELMADDR, ifma);
1284 sa = ifma->ifma_lladdr;
1285 s = splimp();
1286 TAILQ_REMOVE(&ifp->if_multiaddrs, ifma, ifma_link);
1287 /*
1288 * Make sure the interface driver is notified
1289 * in the case of a link layer mcast group being left.
1290 */
1291 if (ifma->ifma_addr->sa_family == AF_LINK && sa == 0)
1292 ifp->if_ioctl(ifp, SIOCDELMULTI, 0);
1287 splx(s);
1288 free(ifma->ifma_addr, M_IFMADDR);
1289 free(ifma, M_IFMADDR);
1290 if (sa == 0)
1291 return 0;
1292
1293 /*
1294 * Now look for the link-layer address which corresponds to

--- 93 unchanged lines hidden ---
1293 splx(s);
1294 free(ifma->ifma_addr, M_IFMADDR);
1295 free(ifma, M_IFMADDR);
1296 if (sa == 0)
1297 return 0;
1298
1299 /*
1300 * Now look for the link-layer address which corresponds to

--- 93 unchanged lines hidden ---