Deleted Added
full compact
in6.c (301875) in6.c (302054)
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

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

56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58 * SUCH DAMAGE.
59 *
60 * @(#)in.c 8.2 (Berkeley) 11/15/93
61 */
62
63#include <sys/cdefs.h>
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

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

56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58 * SUCH DAMAGE.
59 *
60 * @(#)in.c 8.2 (Berkeley) 11/15/93
61 */
62
63#include <sys/cdefs.h>
64__FBSDID("$FreeBSD: head/sys/netinet6/in6.c 301875 2016-06-13 22:31:16Z pfg $");
64__FBSDID("$FreeBSD: head/sys/netinet6/in6.c 302054 2016-06-21 13:48:49Z bz $");
65
66#include "opt_compat.h"
67#include "opt_inet.h"
68#include "opt_inet6.h"
69
70#include <sys/param.h>
71#include <sys/eventhandler.h>
72#include <sys/errno.h>

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

2414
2415void
2416in6_domifdetach(struct ifnet *ifp, void *aux)
2417{
2418 struct in6_ifextra *ext = (struct in6_ifextra *)aux;
2419
2420 mld_domifdetach(ifp);
2421 scope6_ifdetach(ext->scope6_id);
65
66#include "opt_compat.h"
67#include "opt_inet.h"
68#include "opt_inet6.h"
69
70#include <sys/param.h>
71#include <sys/eventhandler.h>
72#include <sys/errno.h>

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

2414
2415void
2416in6_domifdetach(struct ifnet *ifp, void *aux)
2417{
2418 struct in6_ifextra *ext = (struct in6_ifextra *)aux;
2419
2420 mld_domifdetach(ifp);
2421 scope6_ifdetach(ext->scope6_id);
2422 nd6_ifdetach(ext->nd_ifinfo);
2422 nd6_ifdetach(ifp, ext->nd_ifinfo);
2423 lltable_free(ext->lltable);
2424 COUNTER_ARRAY_FREE(ext->in6_ifstat,
2425 sizeof(struct in6_ifstat) / sizeof(uint64_t));
2426 free(ext->in6_ifstat, M_IFADDR);
2427 COUNTER_ARRAY_FREE(ext->icmp6_ifstat,
2428 sizeof(struct icmp6_ifstat) / sizeof(uint64_t));
2429 free(ext->icmp6_ifstat, M_IFADDR);
2430 free(ext, M_IFADDR);

--- 60 unchanged lines hidden ---
2423 lltable_free(ext->lltable);
2424 COUNTER_ARRAY_FREE(ext->in6_ifstat,
2425 sizeof(struct in6_ifstat) / sizeof(uint64_t));
2426 free(ext->in6_ifstat, M_IFADDR);
2427 COUNTER_ARRAY_FREE(ext->icmp6_ifstat,
2428 sizeof(struct icmp6_ifstat) / sizeof(uint64_t));
2429 free(ext->icmp6_ifstat, M_IFADDR);
2430 free(ext, M_IFADDR);

--- 60 unchanged lines hidden ---