net_ip.cc File Reference

Back to the index.

Functions
net_ip.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>
#include "misc.h"
#include "net.h"

Go to the source code of this file.

Functions

void net_ip_checksum (unsigned char *ip_header, int chksumoffset, int len)
 
void net_ip_tcp_checksum (unsigned char *tcp_header, int chksumoffset, int tcp_len, unsigned char *srcaddr, unsigned char *dstaddr, int udpflag)
 
void net_ip_tcp_connectionreply (struct net *net, void *extra, int con_id, int connecting, unsigned char *data, int datalen, int rst)
 
void net_ip (struct net *net, void *extra, unsigned char *packet, int len)
 
void net_ip_broadcast (struct net *net, void *extra, unsigned char *packet, int len)
 
void net_udp_rx_avail (struct net *net, void *extra)
 
void net_tcp_rx_avail (struct net *net, void *extra)
 

Function Documentation

◆ net_ip()

void net_ip ( struct net net,
void *  extra,
unsigned char *  packet,
int  len 
)

Definition at line 885 of file net_ip.cc.

References debug.

Referenced by net_ethernet_tx().

◆ net_ip_broadcast()

void net_ip_broadcast ( struct net net,
void *  extra,
unsigned char *  packet,
int  len 
)

Definition at line 1133 of file net_ip.cc.

References fatal(), ethernet_packet_link::len, net::netmask_ipv4, and net::netmask_ipv4_len.

Referenced by net_ethernet_tx().

◆ net_ip_checksum()

void net_ip_checksum ( unsigned char *  ip_header,
int  chksumoffset,
int  len 
)

Definition at line 55 of file net_ip.cc.

Referenced by net_ip_tcp_connectionreply(), and net_udp_rx_avail().

◆ net_ip_tcp_checksum()

void net_ip_tcp_checksum ( unsigned char *  tcp_header,
int  chksumoffset,
int  tcp_len,
unsigned char *  srcaddr,
unsigned char *  dstaddr,
int  udpflag 
)

Definition at line 91 of file net_ip.cc.

Referenced by net_ip_tcp_connectionreply().

◆ net_ip_tcp_connectionreply()

void net_ip_tcp_connectionreply ( struct net net,
void *  extra,
int  con_id,
int  connecting,
unsigned char *  data,
int  datalen,
int  rst 
)

◆ net_tcp_rx_avail()

void net_tcp_rx_avail ( struct net net,
void *  extra 
)

◆ net_udp_rx_avail()

void net_udp_rx_avail ( struct net net,
void *  extra 
)

Generated on Tue Aug 25 2020 19:25:06 for GXemul by doxygen 1.8.18