|
XenevaOS
|
#include <Net/aunet.h>#include <Net/arp.h>#include <Net/ndp.h>#include <Mm/kmalloc.h>#include <string.h>#include <_null.h>#include <hashmap.h>#include <Fs/Dev/devfs.h>#include <Net/socket.h>#include <Net/route.h>#include <Net/udp.h>#include <Net/icmp.h>#include <Net/icmpv6.h>#include <Net/tcp.h>#include <aucon.h>#include <Drivers/uart.h>
Functions | |
| void | AuInitialiseNet () |
| AuInitialiseNet – initialise network data structures. | |
| void | AuAddNetAdapter (AuVFSNode *netfs, char *name) |
| AuAddNetAdapter – add a net adapter to the adapter list. | |
| AuVFSNode * | AuGetNetworkAdapter (char *name) |
| AuGetNetworkAdapter – get a network adapter. | |
| int | AuAddrIsLocal4 (uint32_t address) |
| int | AuAddrIsLocal6 (const ip6_addr *address) |
| void | AuNetAddConnectedRoute4 (AuVFSNode *nic, const char *ifname) |
| void | AuNetAddConnectedRoute6 (AuVFSNode *nic, const char *ifname) |
| AuVFSNode * | AuNetworkRoute (uint32_t address) |
| AuNetworkRoute – select NIC for an IPv4 destination. | |
| AuVFSNode * | AuNetworkRoute6 (const ip6_addr *address) |
BSD 2-Clause License
Copyright (c) 2022-2026, 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:
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.
| void AuAddNetAdapter | ( | AuVFSNode * | netfs, |
| char * | name | ||
| ) |
AuAddNetAdapter – add a net adapter to the adapter list.
| int AuAddrIsLocal4 | ( | uint32_t | address | ) |
| int AuAddrIsLocal6 | ( | const ip6_addr * | address | ) |
| AuVFSNode * AuGetNetworkAdapter | ( | char * | name | ) |
AuGetNetworkAdapter – get a network adapter.
| name | – adapter name |
| void AuInitialiseNet | ( | ) |
AuInitialiseNet – initialise network data structures.
| void AuNetAddConnectedRoute4 | ( | AuVFSNode * | nic, |
| const char * | ifname | ||
| ) |
| void AuNetAddConnectedRoute6 | ( | AuVFSNode * | nic, |
| const char * | ifname | ||
| ) |
AuNetworkRoute – select NIC for an IPv4 destination.
| address | – Address to consider (MAKE_IP/wire or host-order sockaddr) |