in6_pcb.c (170587) | in6_pcb.c (170613) |
---|---|
1/* $FreeBSD: head/sys/netinet6/in6_pcb.c 170587 2007-06-12 00:12:01Z rwatson $ */ | 1/* $FreeBSD: head/sys/netinet6/in6_pcb.c 170613 2007-06-12 16:24:56Z bms $ */ |
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 --- 441 unchanged lines hidden (view full) --- 451#endif /* IPSEC */ 452 inp->inp_gencnt = ++ipi->ipi_gencnt; 453 in_pcbremlists(inp); 454 ip6_freepcbopts(inp->in6p_outputopts); 455 ip6_freemoptions(inp->in6p_moptions); 456 /* Check and free IPv4 related resources in case of mapped addr */ 457 if (inp->inp_options) 458 (void)m_free(inp->inp_options); | 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 --- 441 unchanged lines hidden (view full) --- 451#endif /* IPSEC */ 452 inp->inp_gencnt = ++ipi->ipi_gencnt; 453 in_pcbremlists(inp); 454 ip6_freepcbopts(inp->in6p_outputopts); 455 ip6_freemoptions(inp->in6p_moptions); 456 /* Check and free IPv4 related resources in case of mapped addr */ 457 if (inp->inp_options) 458 (void)m_free(inp->inp_options); |
459 ip_freemoptions(inp->inp_moptions); | 459 if (inp->inp_moptions != NULL) 460 inp_freemoptions(inp->inp_moptions); |
460 inp->inp_vflag = 0; 461 INP_UNLOCK(inp); 462 uma_zfree(ipi->ipi_zone, inp); 463} 464 465struct sockaddr * 466in6_sockaddr(port, addr_p) 467 in_port_t port; --- 487 unchanged lines hidden --- | 461 inp->inp_vflag = 0; 462 INP_UNLOCK(inp); 463 uma_zfree(ipi->ipi_zone, inp); 464} 465 466struct sockaddr * 467in6_sockaddr(port, addr_p) 468 in_port_t port; --- 487 unchanged lines hidden --- |