SAMV71 Xplained Ultra Software Package 1.4

tcp_in.c File Reference

#include "lwip/opt.h"
#include "lwip/tcp.h"
#include "lwip/def.h"
#include "lwip/ip_addr.h"
#include "lwip/netif.h"
#include "lwip/mem.h"
#include "lwip/memp.h"
#include "lwip/inet.h"
#include "lwip/inet_chksum.h"
#include "lwip/stats.h"
#include "lwip/snmp.h"
#include "arch/perf.h"

Go to the source code of this file.

Functions

void tcp_input (struct pbuf *p, struct netif *inp)

Variables

struct tcp_pcbtcp_input_pcb

Detailed Description

Transmission Control Protocol, incoming traffic

The input processing functions of the TCP layer.

These functions are generally called in the order (ip_input() ->) tcp_input() -> * tcp_process() -> tcp_receive() (-> application).

Definition in file tcp_in.c.


Function Documentation

void tcp_input ( struct pbuf p,
struct netif inp 
)

The initial input processing of TCP. It verifies the TCP header, demultiplexes the segment between the PCBs and passes it on to tcp_process(), which implements the TCP finite state machine. This function is called by the IP layer (in ip_input()).

Parameters:
p received TCP segment to process (p->payload pointing to the IP header)
inp network interface on which this segment was received

Definition at line 93 of file tcp_in.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines