FreeBSD kernel IPv4 code
sctp_crc32.c File Reference
#include <sys/cdefs.h>
#include "opt_sctp.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/gsb_crc32.h>
#include <sys/mbuf.h>
#include <netinet/sctp.h>
#include <netinet/sctp_crc32.h>
Include dependency graph for sctp_crc32.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
static uint32_t sctp_finalize_crc32c (uint32_t crc32c)
 
static int sctp_calculate_cksum_cb (void *arg, void *data, u_int len)
 
uint32_t sctp_calculate_cksum (struct mbuf *m, int32_t offset)
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ sctp_calculate_cksum()

uint32_t sctp_calculate_cksum ( struct mbuf *  m,
int32_t  offset 
)

Definition at line 93 of file sctp_crc32.c.

References sctp_calculate_cksum_cb(), and sctp_finalize_crc32c().

Referenced by sctp_common_input_processing(), sctp_lowlevel_chunk_output(), and sctp_send_resp_msg().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sctp_calculate_cksum_cb()

static int sctp_calculate_cksum_cb ( void *  arg,
void *  data,
u_int  len 
)
static

Definition at line 77 of file sctp_crc32.c.

Referenced by sctp_calculate_cksum().

Here is the caller graph for this function:

◆ sctp_finalize_crc32c()

static uint32_t sctp_finalize_crc32c ( uint32_t  crc32c)
static

Definition at line 53 of file sctp_crc32.c.

Referenced by sctp_calculate_cksum().

Here is the caller graph for this function: