XenevaOS
Loading...
Searching...
No Matches
Functions
ipv6.c File Reference
#include <Net/socket.h>
#include <Net/tcp.h>
#include <Net/icmpv6.h>
#include <Net/ipv6.h>
#include <Net/udp.h>
#include <Net/aunet.h>
#include <Net/ethernet.h>
#include <Net/ndp.h>
#include <Net/packet.h>
#include <_null.h>
#include <Mm/kmalloc.h>
#include <Drivers/uart.h>
#include <string.h>
#include <Hal/AA64/sched.h>
Include dependency graph for ipv6.c:

Functions

uint16_t IPv6PseudoChecksum (const ip6_addr *src, const ip6_addr *dst, uint32_t length, uint8_t nextHeader, const void *data, size_t dataLen)
 
void IPv6HandlePacket (void *data, AuVFSNode *nic)
 
int CreateIPv6Socket (int type, int protocol)
 
void IPV6SendPacket (IPv6Header *packet, AuVFSNode *nic)
 

Detailed Description

BSD 2-Clause License

Copyright (c) 2022-2025, 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.

Function Documentation

◆ CreateIPv6Socket()

int CreateIPv6Socket ( int  type,
int  protocol 
)

◆ IPv6HandlePacket()

void IPv6HandlePacket ( void *  data,
AuVFSNode nic 
)

◆ IPv6PseudoChecksum()

uint16_t IPv6PseudoChecksum ( const ip6_addr src,
const ip6_addr dst,
uint32_t  length,
uint8_t  nextHeader,
const void *  data,
size_t  dataLen 
)

BSD 2-Clause License

Copyright (c) 2022-2025, 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.

Note: Full IPv6 (NDP/ICMPv6/UDP6/TCP6) lives in KernelAA64/Net/. This x86 twin keeps EtherType dispatch and shared helpers compiling.

◆ IPV6SendPacket()

void IPV6SendPacket ( IPv6Header packet,
AuVFSNode nic 
)