Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/udp_var.h
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | |||||
extern u_long udp_recvspace; | extern u_long udp_recvspace; | ||||
VNET_DECLARE(int, udp_cksum); | VNET_DECLARE(int, udp_cksum); | ||||
VNET_DECLARE(int, udp_blackhole); | VNET_DECLARE(int, udp_blackhole); | ||||
#define V_udp_cksum VNET(udp_cksum) | #define V_udp_cksum VNET(udp_cksum) | ||||
#define V_udp_blackhole VNET(udp_blackhole) | #define V_udp_blackhole VNET(udp_blackhole) | ||||
extern int udp_log_in_vain; | extern int udp_log_in_vain; | ||||
static __inline struct inpcbinfo * | static __inline struct inpcbinfo * | ||||
get_inpcbinfo(int protocol) | udp_get_inpcbinfo(int protocol) | ||||
{ | { | ||||
return (protocol == IPPROTO_UDP) ? &V_udbinfo : &V_ulitecbinfo; | return (protocol == IPPROTO_UDP) ? &V_udbinfo : &V_ulitecbinfo; | ||||
} | } | ||||
static __inline struct inpcbhead * | static __inline struct inpcbhead * | ||||
get_pcblist(int protocol) | udp_get_pcblist(int protocol) | ||||
{ | { | ||||
return (protocol == IPPROTO_UDP) ? &V_udb : &V_ulitecb; | return (protocol == IPPROTO_UDP) ? &V_udb : &V_ulitecb; | ||||
} | } | ||||
int udp_newudpcb(struct inpcb *); | int udp_newudpcb(struct inpcb *); | ||||
void udp_discardcb(struct udpcb *); | void udp_discardcb(struct udpcb *); | ||||
void udp_ctlinput(int, struct sockaddr *, void *); | void udp_ctlinput(int, struct sockaddr *, void *); | ||||
Show All 19 Lines |