Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/sctp_crc32.h
Show All 24 Lines | |||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | ||||
* THE POSSIBILITY OF SUCH DAMAGE. | * THE POSSIBILITY OF SUCH DAMAGE. | ||||
* | |||||
* $FreeBSD$ | |||||
*/ | */ | ||||
#include <sys/cdefs.h> | |||||
__FBSDID("$FreeBSD$"); | |||||
tuexen: Not sure why this is needed. We use this pattern in all SCTP related files. So why change it… | |||||
markjAuthorUnsubmitted Done Inline ActionsI will just revert this hunk. __FBSDID is typically only used in .c files, but it doesn't really matter. markj: I will just revert this hunk. __FBSDID is typically only used in .c files, but it doesn't… | |||||
#ifndef _NETINET_SCTP_CRC32_H_ | #ifndef _NETINET_SCTP_CRC32_H_ | ||||
#define _NETINET_SCTP_CRC32_H_ | #define _NETINET_SCTP_CRC32_H_ | ||||
#if defined(_KERNEL) | #if defined(_KERNEL) | ||||
uint32_t sctp_calculate_cksum(struct mbuf *, uint32_t); | uint32_t sctp_calculate_cksum(struct mbuf *, uint32_t); | ||||
#ifdef SCTP | #if defined(SCTP) || defined(SCTP_SUPPORT) | ||||
void sctp_delayed_cksum(struct mbuf *, uint32_t offset); | void sctp_delayed_cksum(struct mbuf *, uint32_t offset); | ||||
#endif | #endif | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* __crc32c_h__ */ | #endif /* __crc32c_h__ */ |
Not sure why this is needed. We use this pattern in all SCTP related files. So why change it only here. If this is wrong, we need to change it separately in all files.