STRUCT VIF_DEVICE(9)
okay so bestie, welcome to struct vif_device(9) from the Kernel API Manual π this one is literally the interface representor for multicast routing, and we're gonna get into every single member, no skips, periodt β¨
πΈ NAME πΈ
struct vif_device β interface representor for multicast routing π¦
β¨ SYNOPSIS β¨
struct vif_device {
struct net_device *dev;
netdevice_tracker dev_tracker;
unsigned long bytes_in, bytes_out;
unsigned long pkt_in, pkt_out;
unsigned long rate_limit;
unsigned char threshold;
unsigned short flags;
int link;
struct netdev_phys_item_id dev_parent_id;
__be32 local, remote;
};
π Members π
okay bestie, here's the member-by-member vibe check π
devβ network device being used πdev_trackerβ refcount tracker fordevreference π«Άbytes_inβ statistic; bytes ingressing πΈbytes_outβ statistic; bytes egresing (sic β keeping the original spelling, iykyk) πpkt_inβ statistic; packets ingressing β¨pkt_outβ statistic; packets egressing π¦rate_limitβ Traffic shaping (NI) π₯thresholdβ TTL threshold βflagsβ Control flags πlinkβ Physical interface index πdev_parent_idβ device parent id πlocalβ Local address πremoteβ Remote address for tunnels π§
π SEE ALSO π
Kernel file ./include/linux/mroute_base.h struct mr_mfc(9), struct mr_table_ops(9), struct mr_table(9) β go read those too, bestie, they're linked in the group chat fr fr π«Ά
mwah π this iconic little page comes from ./include/linux, dated October 2026, and it's all about struct vif_device(9) β bye bestie, slay your kernel reading π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms