FreeBSD kernel IPv4 code
|
#include <sys/param.h>
#include <sys/malloc.h>
#include <sys/module.h>
#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/uio.h>
#include <sys/socketvar.h>
#include <sys/syslog.h>
#include <sys/types.h>
#include <sys/queue.h>
#include <sys/time.h>
#include <netinet/in_systm.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <machine/cpufunc.h>
#include <netinet/sctp.h>
#include <netinet/sctp_header.h>
Go to the source code of this file.
Data Structures | |
struct | sctp_nat_assoc |
sctp association information More... | |
struct | sctp_GlobalAddress |
union | sctpChunkOfInt |
SCTP chunk of interest. More... | |
struct | sctp_nat_msg |
SCTP message. More... | |
struct | sctp_nat_timer |
sctp nat timer queue structure More... | |
Macros | |
#define | SCTP_PACKED __attribute__((packed)) |
#define | SCTP_UNUSED __attribute__((unused)) |
#define | LINK_SCTP IPPROTO_SCTP |
#define | SN_TO_LOCAL 0 |
#define | SN_TO_GLOBAL 1 |
#define | SN_TO_NODIR 99 |
#define | SN_NAT_PKT 0x0000 |
#define | SN_DROP_PKT 0x0001 |
#define | SN_PROCESSING_ERROR 0x0003 |
#define | SN_REPLY_ABORT 0x0010 |
#define | SN_SEND_ABORT 0x0020 |
#define | SN_TX_ABORT 0x0030 |
#define | SN_REFLECT_ERROR 0x0100 |
#define | SN_REPLY_ERROR 0x0200 |
#define | SN_TX_ERROR 0x0300 |
#define | PKT_ALIAS_RESPOND 0x1000 |
#define LINK_SCTP IPPROTO_SCTP |
Definition at line 98 of file alias_sctp.h.
#define PKT_ALIAS_RESPOND 0x1000 |
Signal to libalias that there is a response packet to send
Definition at line 114 of file alias_sctp.h.
struct sctp_auth_chunk SCTP_PACKED __attribute__((packed)) |
These are defined in sctp_os_bsd.h, but it can't be included due to its local file inclusion, so I'm defining them here.
Definition at line 83 of file alias_sctp.h.
#define SCTP_UNUSED __attribute__((unused)) |
Definition at line 86 of file alias_sctp.h.
#define SN_DROP_PKT 0x0001 |
drop packet (don't forward it)
Definition at line 105 of file alias_sctp.h.
#define SN_NAT_PKT 0x0000 |
Network Address Translate packet
Definition at line 104 of file alias_sctp.h.
#define SN_PROCESSING_ERROR 0x0003 |
Packet processing error
Definition at line 106 of file alias_sctp.h.
#define SN_REFLECT_ERROR 0x0100 |
Reply with ERROR to sender on OOTB packet Tbit set
Definition at line 110 of file alias_sctp.h.
#define SN_REPLY_ABORT 0x0010 |
Reply with ABORT to sender (don't forward it)
Definition at line 107 of file alias_sctp.h.
#define SN_REPLY_ERROR 0x0200 |
Reply with ERROR to sender on ASCONF clash
Definition at line 111 of file alias_sctp.h.
#define SN_SEND_ABORT 0x0020 |
Send ABORT to destination
Definition at line 108 of file alias_sctp.h.
#define SN_TO_GLOBAL 1 |
packet traveling from local to global
Definition at line 101 of file alias_sctp.h.
#define SN_TO_LOCAL 0 |
packet traveling from global to local
Definition at line 100 of file alias_sctp.h.
#define SN_TO_NODIR 99 |
used where direction is not important
Definition at line 102 of file alias_sctp.h.
#define SN_TX_ABORT 0x0030 |
mask for transmitting abort
Definition at line 109 of file alias_sctp.h.
#define SN_TX_ERROR 0x0300 |
mask for transmitting error
Definition at line 112 of file alias_sctp.h.