in6_mcast.c (292015) | in6_mcast.c (298995) |
---|---|
1/* 2 * Copyright (c) 2009 Bruce Simpson. 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 --- 19 unchanged lines hidden (view full) --- 28 */ 29 30/* 31 * IPv6 multicast socket, group, and socket option processing module. 32 * Normative references: RFC 2292, RFC 3492, RFC 3542, RFC 3678, RFC 3810. 33 */ 34 35#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2009 Bruce Simpson. 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 --- 19 unchanged lines hidden (view full) --- 28 */ 29 30/* 31 * IPv6 multicast socket, group, and socket option processing module. 32 * Normative references: RFC 2292, RFC 3492, RFC 3542, RFC 3678, RFC 3810. 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/netinet6/in6_mcast.c 292015 2015-12-09 11:14:27Z melifaro $"); | 36__FBSDID("$FreeBSD: head/sys/netinet6/in6_mcast.c 298995 2016-05-03 18:05:43Z pfg $"); |
37 38#include "opt_inet6.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> 43#include <sys/malloc.h> 44#include <sys/mbuf.h> --- 524 unchanged lines hidden (view full) --- 569 * the group actually being joined on the local host. 570 * 571 * VIMAGE: XXX: Currently the mld_sgalloc feature has been removed. 572 * This turns off the allocation of a recorded source entry if 573 * the group has not been joined. 574 * 575 * Return 0 if the source didn't exist or was already marked as recorded. 576 * Return 1 if the source was marked as recorded by this function. | 37 38#include "opt_inet6.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> 43#include <sys/malloc.h> 44#include <sys/mbuf.h> --- 524 unchanged lines hidden (view full) --- 569 * the group actually being joined on the local host. 570 * 571 * VIMAGE: XXX: Currently the mld_sgalloc feature has been removed. 572 * This turns off the allocation of a recorded source entry if 573 * the group has not been joined. 574 * 575 * Return 0 if the source didn't exist or was already marked as recorded. 576 * Return 1 if the source was marked as recorded by this function. |
577 * Return <0 if any error occured (negated errno code). | 577 * Return <0 if any error occurred (negated errno code). |
578 */ 579int 580in6m_record_source(struct in6_multi *inm, const struct in6_addr *addr) 581{ 582 struct ip6_msource find; 583 struct ip6_msource *ims, *nims; 584 585 IN6_MULTI_LOCK_ASSERT(); --- 2248 unchanged lines hidden --- | 578 */ 579int 580in6m_record_source(struct in6_multi *inm, const struct in6_addr *addr) 581{ 582 struct ip6_msource find; 583 struct ip6_msource *ims, *nims; 584 585 IN6_MULTI_LOCK_ASSERT(); --- 2248 unchanged lines hidden --- |