RTEMS CPU Kit with SuperCore  4.11.3
Macros | Functions | Variables
tcp_subr.c File Reference
#include "opt_tcpdebug.h"
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/proc.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/protosw.h>
#include <errno.h>
#include <net/route.h>
#include <net/if.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 <netinet/ip_icmp.h>
#include <netinet/tcp.h>
#include <netinet/tcp_fsm.h>
#include <netinet/tcp_seq.h>
#include <netinet/tcp_timer.h>
#include <netinet/tcp_var.h>
#include <netinet/tcpip.h>
Include dependency graph for tcp_subr.c:

Macros

#define _IP_VHL
 
#define TCBHASHSIZE   128
 
#define xchg(a, b, type)   { type t; t=a; a=b; b=t; }
 

Functions

 SYSCTL_INT (_net_inet_tcp, TCPCTL_MSSDFLT, mssdflt, CTLFLAG_RW, &tcp_mssdflt, 0, "Default TCP Maximum Segment Size")
 
 SYSCTL_INT (_net_inet_tcp, TCPCTL_RTTDFLT, rttdflt, CTLFLAG_RW, &tcp_rttdflt, 0, "")
 
 SYSCTL_INT (_net_inet_tcp, TCPCTL_DO_RFC1323, rfc1323, CTLFLAG_RW, &tcp_do_rfc1323, 0, "")
 
void tcp_init (void)
 
struct tcpiphdr * tcp_template (struct tcpcb *tp)
 
void tcp_respond (struct tcpcb *tp, struct tcpiphdr *ti, struct mbuf *m, tcp_seq ack, tcp_seq seq, int flags)
 
struct tcpcb * tcp_newtcpcb (struct inpcb *inp)
 
struct tcpcb * tcp_drop (struct tcpcb *tp, int errnum)
 
struct tcpcb * tcp_close (struct tcpcb *tp)
 
void tcp_drain (void)
 
 SYSCTL_PROC (_net_inet_tcp, TCPCTL_PCBLIST, pcblist, CTLFLAG_RD, 0, 0, tcp_pcblist, "S,xtcpcb", "List of active TCP connections")
 
void tcp_ctlinput (int cmd, struct sockaddr *sa, void *vip)
 
void tcp_quench (struct inpcb *inp, int errnum)
 
void tcp_mtudisc (struct inpcb *inp, int errnum)
 
struct rtentrytcp_rtlookup (struct inpcb *inp)
 
struct rmxp_tao * tcp_gettaocache (struct inpcb *inp)
 

Variables

int tcp_mssdflt = TCP_MSS