Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/sctp_os_bsd.h
Show All 39 Lines | |||||
/* | /* | ||||
* includes | * includes | ||||
*/ | */ | ||||
#include "opt_inet6.h" | #include "opt_inet6.h" | ||||
#include "opt_inet.h" | #include "opt_inet.h" | ||||
#include "opt_sctp.h" | #include "opt_sctp.h" | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/domain.h> | |||||
#include <sys/eventhandler.h> | |||||
#include <sys/ktr.h> | #include <sys/ktr.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
#include <sys/module.h> | |||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <sys/mbuf.h> | #include <sys/mbuf.h> | ||||
#include <sys/protosw.h> | #include <sys/protosw.h> | ||||
#include <sys/socket.h> | #include <sys/socket.h> | ||||
#include <sys/socketvar.h> | #include <sys/socketvar.h> | ||||
#include <sys/jail.h> | #include <sys/jail.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
Show All 21 Lines | |||||
#include <netinet/in_fib.h> | #include <netinet/in_fib.h> | ||||
#include <netinet/in_pcb.h> | #include <netinet/in_pcb.h> | ||||
#include <netinet/in_var.h> | #include <netinet/in_var.h> | ||||
#include <netinet/ip_var.h> | #include <netinet/ip_var.h> | ||||
#include <netinet/ip_icmp.h> | #include <netinet/ip_icmp.h> | ||||
#include <netinet/icmp_var.h> | #include <netinet/icmp_var.h> | ||||
#ifdef INET6 | #ifdef INET6 | ||||
#include <sys/domain.h> | |||||
#include <netinet/ip6.h> | #include <netinet/ip6.h> | ||||
#include <netinet6/in6_fib.h> | #include <netinet6/in6_fib.h> | ||||
#include <netinet6/ip6_var.h> | #include <netinet6/ip6_var.h> | ||||
#include <netinet6/in6_pcb.h> | #include <netinet6/in6_pcb.h> | ||||
#include <netinet6/ip6protosw.h> | #include <netinet6/ip6protosw.h> | ||||
#include <netinet6/nd6.h> | #include <netinet6/nd6.h> | ||||
#include <netinet6/scope6_var.h> | #include <netinet6/scope6_var.h> | ||||
#endif /* INET6 */ | #endif /* INET6 */ | ||||
▲ Show 20 Lines • Show All 374 Lines • ▼ Show 20 Lines | #define SCTP_SAVE_ATOMIC_DECREMENT(addr, val) \ | ||||
oldval = atomic_fetchadd_int(addr, -val); \ | oldval = atomic_fetchadd_int(addr, -val); \ | ||||
if (oldval < val) { \ | if (oldval < val) { \ | ||||
*addr = 0; \ | *addr = 0; \ | ||||
} \ | } \ | ||||
} | } | ||||
#endif | #endif | ||||
#define SCTP_IS_LISTENING(inp) ((inp->sctp_flags & SCTP_PCB_FLAGS_ACCEPTING) != 0) | #define SCTP_IS_LISTENING(inp) ((inp->sctp_flags & SCTP_PCB_FLAGS_ACCEPTING) != 0) | ||||
int sctp_syscalls_init(void); | |||||
int sctp_syscalls_uninit(void); | |||||
#endif | #endif |