dev_set_promiscuity(9)
π¦ dev_set_promiscuity π¦
okay bestie, welcome to the dev_set_promiscuity(9) page from the Kernel API Manual π this one is literally about updating the promiscuity count on a device, and itβs giving very specific little gremlin energy in the best way.
β¨ NAME β¨
dev_set_promiscuity β update promiscuity count on a device π
π SYNOPSIS π
int dev_set_promiscuity (struct net_device *dev , int inc );
πΈ ARGUMENTS πΈ
devβ the device, aka thestruct net_device *weβre messing with π«Άincβ the modifier, aka the little number that nudges the promiscuity count up or down β¨
π DESCRIPTION π
okay so this function adds or removes promiscuity from a device. the way it works is: while the count in the device remains above zero, the interface remains promiscuous. once it hits zero, the device reverts back to normal filtering operation. periodt π
a negative inc value is used to drop promiscuity on the device. and it returns 0 if successful or a negative errno code on error. no cap, thatβs the whole vibe check π₯
π¦ SEE ALSO π¦
the kernel file to peek at is ./net/core/dev_api.c, and the whole friend group is:
dev_change_name(9)dev_set_alias(9)dev_change_flags(9)dev_set_group(9)dev_change_net_namespace(9)dev_change_carrier(9)dev_change_tx_queue_len(9)dev_change_proto_down(9)dev_open(9)dev_close(9)dev_disable_lro(9)dev_set_allmulti(9)dev_set_mac_address(9)netdev_state_change(9)
source/version: ./net/core β’ date: October 2026 β’ manual: dev_set_promiscuity(9) β xoxo, your kernel bestie ππ
π¦ 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