My Kernel v0.1.0
interface.h File Reference

Network Interfaces. More...

#include <kernel/devices/ethernet.h>
#include <kernel/types.h>
#include <libalgo/linked_list.h>
Include dependency graph for interface.h:

Go to the source code of this file.

Data Structures

struct  net_interface
 A network interface. More...
 
struct  subnet
 An interface subnet. More...
 

Functions

struct net_interfacenet_interface_new (struct ethernet_device *, const char *)
 Create a new network interface.
 
error_t net_interface_add_subnet (struct net_interface *, __be ipv4_t, uint8_t cidr)
 Add a new subnet to a network interface.
 
const struct subnetnet_interface_find_subnet (__be ipv4_t)
 Find the first subnet that contains the specified address. More...
 
struct net_interfacenet_interface_find (__be ipv4_t)
 Find the interface by source IP address.
 

Detailed Description