#include <netinet/ip_var.h>
#include <netinet/udp.h>
#include <sys/counter.h>
#include <netinet/in_pcb.h>
Go to the source code of this file.
|
typedef void(* | udp_tun_func_t) (struct mbuf *, int, struct inpcb *, const struct sockaddr *, void *) |
|
typedef void(* | udp_tun_icmp_t) (int, struct sockaddr *, void *, void *) |
|
|
| VNET_PCPUSTAT_DECLARE (struct udpstat, udpstat) |
|
void | kmod_udpstat_inc (int statnum) |
|
| SYSCTL_DECL (_net_inet_udp) |
|
| VNET_DECLARE (struct inpcbinfo, udbinfo) |
|
| VNET_DECLARE (struct inpcbinfo, ulitecbinfo) |
|
| VNET_DECLARE (int, udp_cksum) |
|
| VNET_DECLARE (int, udp_blackhole) |
|
| VNET_DECLARE (bool, udp_blackhole_local) |
|
| VNET_DECLARE (int, udp_log_in_vain) |
|
| VNET_DECLARE (int, zero_checksum_port) |
|
static __inline struct inpcbinfo * | udp_get_inpcbinfo (int protocol) |
|
int | udp_newudpcb (struct inpcb *) |
|
void | udp_discardcb (struct udpcb *) |
|
void | udp_ctlinput (int, struct sockaddr *, void *) |
|
void | udplite_ctlinput (int, struct sockaddr *, void *) |
|
int | udp_ctloutput (struct socket *, struct sockopt *) |
|
int | udp_input (struct mbuf **, int *, int) |
|
void | udplite_input (struct mbuf *, int) |
|
struct inpcb * | udp_notify (struct inpcb *inp, int errno) |
|
int | udp_shutdown (struct socket *so) |
|
int | udp_set_kernel_tunneling (struct socket *so, udp_tun_func_t f, udp_tun_icmp_t i, void *ctx) |
|
◆ intoudpcb
#define intoudpcb |
( |
|
ip | ) |
((struct udpcb *)(ip)->inp_ppcb) |
◆ KMOD_UDPSTAT_INC
◆ sotoudpcb
◆ UDPCTL_CHECKSUM
#define UDPCTL_CHECKSUM 1 /* checksum UDP packets */ |
◆ UDPCTL_MAXDGRAM
#define UDPCTL_MAXDGRAM 3 /* max datagram size */ |
◆ UDPCTL_PCBLIST
#define UDPCTL_PCBLIST 5 /* list of PCBs for UDP sockets */ |
◆ UDPCTL_RECVSPACE
#define UDPCTL_RECVSPACE 4 /* default receive buffer space */ |
◆ UDPCTL_STATS
#define UDPCTL_STATS 2 /* statistics (read-only) */ |
◆ UDPSTAT_ADD
#define UDPSTAT_ADD |
( |
|
name, |
|
|
|
val |
|
) |
| VNET_PCPUSTAT_ADD(struct udpstat, udpstat, name, (val)) |
◆ UDPSTAT_INC
◆ UF_ESPINUDP
#define UF_ESPINUDP 0x00000002 /* w/ non-ESP marker. */ |
◆ UF_ESPINUDP_NON_IKE
#define UF_ESPINUDP_NON_IKE 0x00000001 /* w/ non-IKE marker .. */ |
◆ ui_dport
#define ui_dport ui_u.uh_dport |
◆ ui_dst
#define ui_dst ui_i.ih_dst |
◆ ui_len
#define ui_len ui_i.ih_len |
◆ ui_pr
◆ ui_sport
#define ui_sport ui_u.uh_sport |
◆ ui_src
#define ui_src ui_i.ih_src |
◆ ui_sum
#define ui_sum ui_u.uh_sum |
◆ ui_ulen
#define ui_ulen ui_u.uh_ulen |
◆ ui_v
#define ui_v ui_i.ih_x1[0] |
◆ ui_x1
◆ V_udbinfo
#define V_udbinfo VNET(udbinfo) |
◆ V_udp_blackhole
#define V_udp_blackhole VNET(udp_blackhole) |
◆ V_udp_blackhole_local
#define V_udp_blackhole_local VNET(udp_blackhole_local) |
◆ V_udp_cksum
#define V_udp_cksum VNET(udp_cksum) |
◆ V_udp_log_in_vain
#define V_udp_log_in_vain VNET(udp_log_in_vain) |
◆ V_ulitecbinfo
#define V_ulitecbinfo VNET(ulitecbinfo) |
◆ V_zero_checksum_port
#define V_zero_checksum_port VNET(zero_checksum_port) |
◆ udp_tun_func_t
typedef void(* udp_tun_func_t) (struct mbuf *, int, struct inpcb *, const struct sockaddr *, void *) |
◆ udp_tun_icmp_t
typedef void(* udp_tun_icmp_t) (int, struct sockaddr *, void *, void *) |
◆ kmod_udpstat_inc()
void kmod_udpstat_inc |
( |
int |
statnum | ) |
|
◆ SYSCTL_DECL()
SYSCTL_DECL |
( |
_net_inet_udp |
| ) |
|
◆ udp_ctlinput()
void udp_ctlinput |
( |
int |
, |
|
|
struct sockaddr * |
, |
|
|
void * |
|
|
) |
| |
◆ udp_ctloutput()
int udp_ctloutput |
( |
struct socket * |
so, |
|
|
struct sockopt * |
sopt |
|
) |
| |
Definition at line 925 of file udp_usrreq.c.
References INP_CHECK_SOCKAF, INP_WLOCK, INP_WUNLOCK, intoudpcb, ip_ctloutput(), sotoinpcb, udpcb::u_rxcslen, udpcb::u_txcslen, UDP_ENCAP, UDPLITE_RECV_CSCOV, and UDPLITE_SEND_CSCOV.
◆ udp_discardcb()
void udp_discardcb |
( |
struct udpcb * |
up | ) |
|
◆ udp_get_inpcbinfo()
static __inline struct inpcbinfo * udp_get_inpcbinfo |
( |
int |
protocol | ) |
|
|
static |
◆ udp_input()
int udp_input |
( |
struct mbuf ** |
, |
|
|
int * |
, |
|
|
int |
|
|
) |
| |
◆ udp_newudpcb()
int udp_newudpcb |
( |
struct inpcb * |
inp | ) |
|
◆ udp_notify()
struct inpcb * udp_notify |
( |
struct inpcb * |
inp, |
|
|
int |
errno |
|
) |
| |
◆ udp_set_kernel_tunneling()
◆ udp_shutdown()
int udp_shutdown |
( |
struct socket * |
so | ) |
|
◆ udplite_ctlinput()
void udplite_ctlinput |
( |
int |
, |
|
|
struct sockaddr * |
, |
|
|
void * |
|
|
) |
| |
◆ udplite_input()
void udplite_input |
( |
struct mbuf * |
, |
|
|
int |
|
|
) |
| |
◆ VNET_DECLARE() [1/7]
VNET_DECLARE |
( |
bool |
, |
|
|
udp_blackhole_local |
|
|
) |
| |
◆ VNET_DECLARE() [2/7]
VNET_DECLARE |
( |
int |
, |
|
|
udp_blackhole |
|
|
) |
| |
◆ VNET_DECLARE() [3/7]
VNET_DECLARE |
( |
int |
, |
|
|
udp_cksum |
|
|
) |
| |
◆ VNET_DECLARE() [4/7]
VNET_DECLARE |
( |
int |
, |
|
|
udp_log_in_vain |
|
|
) |
| |
◆ VNET_DECLARE() [5/7]
VNET_DECLARE |
( |
int |
, |
|
|
zero_checksum_port |
|
|
) |
| |
◆ VNET_DECLARE() [6/7]
◆ VNET_DECLARE() [7/7]
VNET_DECLARE |
( |
struct inpcbinfo |
, |
|
|
ulitecbinfo |
|
|
) |
| |
◆ VNET_PCPUSTAT_DECLARE()
◆ udp_recvspace
◆ udp_sendspace
◆ udp_usrreqs
struct pr_usrreqs udp_usrreqs |
|
extern |