RTABLE_ADD(9)
okay bestie, this is RTABLE_ADD(9) from the Kernel Developer's Manual, and it's literally the group chat for routing tables and routing domains. π
β¨
π NAME π
rtable_add, rtable_exists, rtable_loindex, rtable_l2, rtable_l2set β routing tables and routing domains interface. That's the whole vibe: we're managing routing tables and the routing domains they live in. π¦
β¨ SYNOPSIS β¨
#include <net/rtable.h>
int
rtable_add(unsigned int id);
int
rtable_exists(unsigned int id);
unsigned int
rtable_loindex(unsigned int id);
unsigned int
rtable_l2(unsigned int id);
void
rtable_l2set(unsigned int id, unsigned int rdomain);
πΈ DESCRIPTION πΈ
Routing tables contain layer 2 and 3 forwarding information. Each address family in use will have its own routing table. Routing domains are a way of logically segmenting a router among multiple networks and may contain more than one routing table. So yes, it's giving nested friend groups for packets. π
rtable_add(unsigned int id)β adds the routing table with IDidto routing domain0. New table, who dis? β¨rtable_exists(unsigned int id)β returns1if the routing table with IDidexists, and0otherwise. A lil vibe check for your table. π«Άrtable_loindex(unsigned int id)β returns the defaultlo(4)interface index for the routing table with IDid. Loopback bestie located. πrtable_l2(unsigned int id)β gets the routing domain of the routing table with IDid. Peek at where it belongs. πrtable_l2set(unsigned int id, unsigned int rdomain)β places the routing table with IDidunder the routing domain with IDrdomain. Move it into its assigned group chat. π¦
π₯ CONTEXT π₯
rtable_add(), rtable_exists(), rtable_loindex(), rtable_l2(), and task_l2set() can be called during autoconf, from process context, or from interrupt context. (Yes, task_l2set() is exactly what the page says here β we're not editing it, bestie.) π
π RETURN VALUES π
rtable_add() may fail with:
[ENOMEM]β Memory could not be allocated to extend the list of routing domains. No memory, no table, no slay. π
π SEE ALSO π
Go peek at lo(4), route(4), and route(8) β the whole routing cinematic universe is waiting. π
That's the page, bestie. Source/version: Debian, dated March 26, 2021 β xoxo, your Unix group-chat fairy π§π
π¦ where this page comes from
- nixpkgs unstable: cvs-export
- Copyright (c) 2011 Bret S. Lambert <blambert@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms