Deleted Added
full compact
in6_pcb.c (98102) in6_pcb.c (98141)
1/* $FreeBSD: head/sys/netinet6/in6_pcb.c 98102 2002-06-10 20:05:46Z hsu $ */
1/* $FreeBSD: head/sys/netinet6/in6_pcb.c 98141 2002-06-12 06:01:22Z hsu $ */
2/* $KAME: in6_pcb.c,v 1.31 2001/05/21 05:45:10 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

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

617 if (inp->in6p_route.ro_rt)
618 rtfree(inp->in6p_route.ro_rt);
619 /* Check and free IPv4 related resources in case of mapped addr */
620 if (inp->inp_options)
621 (void)m_free(inp->inp_options);
622 ip_freemoptions(inp->inp_moptions);
623
624 inp->inp_vflag = 0;
2/* $KAME: in6_pcb.c,v 1.31 2001/05/21 05:45:10 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

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

617 if (inp->in6p_route.ro_rt)
618 rtfree(inp->in6p_route.ro_rt);
619 /* Check and free IPv4 related resources in case of mapped addr */
620 if (inp->inp_options)
621 (void)m_free(inp->inp_options);
622 ip_freemoptions(inp->inp_moptions);
623
624 inp->inp_vflag = 0;
625 INP_LOCK_DESTROY(inp);
625 uma_zfree(ipi->ipi_zone, inp);
626}
627
628/*
629 * The calling convention of in6_setsockaddr() and in6_setpeeraddr() was
630 * modified to match the pru_sockaddr() and pru_peeraddr() entry points
631 * in struct pr_usrreqs, so that protocols can just reference then directly
632 * without the need for a wrapper function. The socket must have a valid

--- 476 unchanged lines hidden ---
626 uma_zfree(ipi->ipi_zone, inp);
627}
628
629/*
630 * The calling convention of in6_setsockaddr() and in6_setpeeraddr() was
631 * modified to match the pru_sockaddr() and pru_peeraddr() entry points
632 * in struct pr_usrreqs, so that protocols can just reference then directly
633 * without the need for a wrapper function. The socket must have a valid

--- 476 unchanged lines hidden ---