RTEMS CPU Kit with SuperCore  4.11.3
Macros | Functions | Variables
in_pcb.c File Reference
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/protosw.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/proc.h>
#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <net/if.h>
#include <net/route.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/in_pcb.h>
#include <netinet/in_var.h>
#include <netinet/ip_var.h>
#include <limits.h>
Include dependency graph for in_pcb.c:

Macros

#define RANGECHK(var, min, max)
 
#define satosin(sa)   ((struct sockaddr_in *)(sa))
 
#define sintosa(sin)   ((struct sockaddr *)(sin))
 
#define ifatoia(ifa)   ((struct in_ifaddr *)(ifa))
 

Functions

 SYSCTL_NODE (_net_inet_ip, IPPROTO_IP, portrange, CTLFLAG_RW, 0, "IP Ports")
 
 SYSCTL_PROC (_net_inet_ip_portrange, OID_AUTO, lowfirst, CTLTYPE_INT|CTLFLAG_RW, &ipport_lowfirstauto, 0, &sysctl_net_ipport_check, "I", "")
 
 SYSCTL_PROC (_net_inet_ip_portrange, OID_AUTO, lowlast, CTLTYPE_INT|CTLFLAG_RW, &ipport_lowlastauto, 0, &sysctl_net_ipport_check, "I", "")
 
 SYSCTL_PROC (_net_inet_ip_portrange, OID_AUTO, first, CTLTYPE_INT|CTLFLAG_RW, &ipport_firstauto, 0, &sysctl_net_ipport_check, "I", "")
 
 SYSCTL_PROC (_net_inet_ip_portrange, OID_AUTO, last, CTLTYPE_INT|CTLFLAG_RW, &ipport_lastauto, 0, &sysctl_net_ipport_check, "I", "")
 
 SYSCTL_PROC (_net_inet_ip_portrange, OID_AUTO, hifirst, CTLTYPE_INT|CTLFLAG_RW, &ipport_hifirstauto, 0, &sysctl_net_ipport_check, "I", "")
 
 SYSCTL_PROC (_net_inet_ip_portrange, OID_AUTO, hilast, CTLTYPE_INT|CTLFLAG_RW, &ipport_hilastauto, 0, &sysctl_net_ipport_check, "I", "")
 
int in_pcballoc (struct socket *so, struct inpcbinfo *pcbinfo)
 
int in_pcbbind (struct inpcb *inp, struct mbuf *nam)
 
int in_pcbladdr (struct inpcb *inp, struct mbuf *nam, struct sockaddr_in **plocal_sin)
 
int in_pcbconnect (struct inpcb *inp, struct mbuf *nam)
 
void in_pcbdisconnect (struct inpcb *inp)
 
void in_pcbdetach (struct inpcb *inp)
 
void in_setsockaddr (struct inpcb *inp, struct mbuf *nam)
 
void in_setpeeraddr (struct inpcb *inp, struct mbuf *nam)
 
void in_pcbnotify (struct inpcbhead *head, struct sockaddr *dst, u_int fport_arg, struct in_addr laddr, u_int lport_arg, int cmd, void(*notify)(struct inpcb *, int))
 
void in_losing (struct inpcb *inp)
 
struct inpcbin_pcblookup (struct inpcbinfo *pcbinfo, struct in_addr faddr, u_int fport_arg, struct in_addr laddr, u_int lport_arg, int wild_okay)
 
struct inpcbin_pcblookuphash (struct inpcbinfo *pcbinfo, struct in_addr faddr, u_int fport_arg, struct in_addr laddr, u_int lport_arg, int wildcard)
 
void in_pcbrehash (struct inpcb *inp)
 

Variables

struct in_addr zeroin_addr
 

Macro Definition Documentation

◆ RANGECHK

#define RANGECHK (   var,
  min,
  max 
)
Value:
if ((var) < (min)) { (var) = (min); } \
else if ((var) > (max)) { (var) = (max); }