ip6_output.c (177175) | ip6_output.c (177599) |
---|---|
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 * @(#)ip_output.c 8.3 (Berkeley) 1/21/94 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 * @(#)ip_output.c 8.3 (Berkeley) 1/21/94 61 */ 62 63#include <sys/cdefs.h> |
64__FBSDID("$FreeBSD: head/sys/netinet6/ip6_output.c 177175 2008-03-14 16:38:11Z bz $"); | 64__FBSDID("$FreeBSD: head/sys/netinet6/ip6_output.c 177599 2008-03-25 09:39:02Z ru $"); |
65 66#include "opt_inet.h" 67#include "opt_inet6.h" 68#include "opt_ipsec.h" 69 70#include <sys/param.h> 71#include <sys/kernel.h> 72#include <sys/malloc.h> --- 2651 unchanged lines hidden (view full) --- 2724/* 2725 * Return the IP6 multicast options in response to user getsockopt(). 2726 */ 2727static int 2728ip6_getmoptions(int optname, struct ip6_moptions *im6o, struct mbuf **mp) 2729{ 2730 u_int *hlim, *loop, *ifindex; 2731 | 65 66#include "opt_inet.h" 67#include "opt_inet6.h" 68#include "opt_ipsec.h" 69 70#include <sys/param.h> 71#include <sys/kernel.h> 72#include <sys/malloc.h> --- 2651 unchanged lines hidden (view full) --- 2724/* 2725 * Return the IP6 multicast options in response to user getsockopt(). 2726 */ 2727static int 2728ip6_getmoptions(int optname, struct ip6_moptions *im6o, struct mbuf **mp) 2729{ 2730 u_int *hlim, *loop, *ifindex; 2731 |
2732 *mp = m_get(M_TRYWAIT, MT_HEADER); /* XXX */ | 2732 *mp = m_get(M_WAIT, MT_HEADER); /* XXX */ |
2733 2734 switch (optname) { 2735 2736 case IPV6_MULTICAST_IF: 2737 ifindex = mtod(*mp, u_int *); 2738 (*mp)->m_len = sizeof(u_int); 2739 if (im6o == NULL || im6o->im6o_multicast_ifp == NULL) 2740 *ifindex = 0; --- 604 unchanged lines hidden --- | 2733 2734 switch (optname) { 2735 2736 case IPV6_MULTICAST_IF: 2737 ifindex = mtod(*mp, u_int *); 2738 (*mp)->m_len = sizeof(u_int); 2739 if (im6o == NULL || im6o->im6o_multicast_ifp == NULL) 2740 *ifindex = 0; --- 604 unchanged lines hidden --- |