XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
tcp.h File Reference
#include <list.h>
#include <Net/socket.h>
#include <Net/ipv4.h>
#include <Fs/vfs.h>
Include dependency graph for tcp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _tcphead_
 

Macros

#define TCP_FLAGS_FIN   (1<<0)
 
#define TCP_FLAGS_SYN   (1<<1)
 
#define TCP_FLAGS_RST   (1<<2)
 
#define TCP_FLAGS_PSH   (1<<3)
 
#define TCP_FLAGS_ACK   (1<<4)
 
#define TCP_FLAGS_URG   (1<<5)
 
#define TCP_FLAGS_ECE   (1<<6)
 
#define TCP_FLAGS_CWR   (1<<7)
 
#define TCP_FLAGS_NS   (1<<8)
 
#define TCP_DATA_OFFSET_5   (0x5 << 12)
 
#define TCP_DEFAULT_WIN_SZ   65535
 

Typedefs

typedef struct _tcphead_ TCPHeader
 

Functions

int CreateTCPSocket ()
 
list_tTCPGetSocketList ()
 
int AuTCPAcknowledge (AuVFSNode *nic, AuSocket *sock, IPv4Header *ippack, size_t payloadLen)
 
void TCPProtocolInstall ()
 

Macro Definition Documentation

◆ TCP_DATA_OFFSET_5

#define TCP_DATA_OFFSET_5   (0x5 << 12)

◆ TCP_DEFAULT_WIN_SZ

#define TCP_DEFAULT_WIN_SZ   65535

◆ TCP_FLAGS_ACK

#define TCP_FLAGS_ACK   (1<<4)

◆ TCP_FLAGS_CWR

#define TCP_FLAGS_CWR   (1<<7)

◆ TCP_FLAGS_ECE

#define TCP_FLAGS_ECE   (1<<6)

◆ TCP_FLAGS_FIN

#define TCP_FLAGS_FIN   (1<<0)

BSD 2-Clause License

Copyright (c) 2022-2024, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ TCP_FLAGS_NS

#define TCP_FLAGS_NS   (1<<8)

◆ TCP_FLAGS_PSH

#define TCP_FLAGS_PSH   (1<<3)

◆ TCP_FLAGS_RST

#define TCP_FLAGS_RST   (1<<2)

◆ TCP_FLAGS_SYN

#define TCP_FLAGS_SYN   (1<<1)

◆ TCP_FLAGS_URG

#define TCP_FLAGS_URG   (1<<5)

Typedef Documentation

◆ TCPHeader

typedef struct _tcphead_ TCPHeader

Function Documentation

◆ AuTCPAcknowledge()

int AuTCPAcknowledge ( AuVFSNode nic,
AuSocket sock,
IPv4Header ippack,
size_t  payloadLen 
)
extern

◆ CreateTCPSocket()

int CreateTCPSocket ( )
extern

◆ TCPGetSocketList()

list_t * TCPGetSocketList ( )
extern

◆ TCPProtocolInstall()

void TCPProtocolInstall ( )
extern