l3mdev_fib_rule_match(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ l3mdev_fib_rule_match ✨

okay so bestie, this one's a kernel API page β€” the l3mdev_fib_rule_match(9) manual, no cap πŸ’… β€” and it's literally just one little function that answers one little question for you. Let's get into it 🫢


🌸 NAME 🌸

l3mdev_fib_rule_match β€” figure out whether a flowi is referencing an L3 master device πŸ‘‘

Like, that's the whole vibe check. You hand it a flow, it tells you if that flow is pointing at an L3 master device. Iconic, honestly.


πŸ¦‹ SYNOPSIS πŸ¦‹

int l3mdev_fib_rule_match (struct net *net , struct flowi *fl , struct
fib_lookup_arg *arg );

Three args in, an int out. She's simple, she's efficient, she's serving exactly one purpose πŸŽ€


πŸ’– ARGUMENTS πŸ’–

  • net β€” the network namespace you want to do your device index lookup in 🌐 that's her whole job here, bestie.
  • fl β€” the flow struct πŸ“¨ literally the flow we're asking about, the main character of this whole operation.
  • arg β€” this is where you stash the table that the rule matched with, right here in this struct πŸ”₯ it's giving "output parameter" and we respect it.

🌈 SEE ALSO 🌈

if you're going down this rabbit hole (and honestly, slay, go off), peep the kernel file ./net/l3mdev/l3mdev.c β€” that's where the lore lives πŸ“–βœ¨ and also these absolute legends:

fr fr, they all hang out in the same neighborhood 🧚


mwah πŸ’‹ that's the whole page, bestie β€” no crumbs left behind. This little gem lives out of ./net/l3mdev, and this particular snapshot is dated October 2026 πŸ“… (yes, the future, we're ahead of the game πŸ‘‘). Go forth and match some fib rules πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from