nps_enet_set_rx_mode(9)
π nps_enet_set_rx_mode β the Kernel API Manual, bestie edition
okay so this is nps_enet_set_rx_mode, and it lives in section 9 of the Kernel API Manual (the kernel-functions one, iykyk). it's short, it's sweet, it's a little icon, and we're gonna get into it β¨
πΈ NAME πΈ
nps_enet_set_rx_mode β literally just: change the receive filtering mode. that's it. that's the whole job π
β¨ SYNOPSIS β¨
void nps_enet_set_rx_mode (struct net_device *ndev );
returns nothing (void, no notes, no drama), takes exactly one thing. slay π
π«Ά ARGUMENTS π«Ά
ndevβ pointer to the network device. that's the whole argument list, one (1) pointer, and it's the net device we're messing with π
π₯ DESCRIPTION π₯
so what does it actually do?? it enables/disables promiscuous mode. that's the vibe. that's the function. flipping the receive filtering between "only stuff addressed to me" and "honestly, hand me everything" ππ
π¦ SEE ALSO π¦
the kernel file it hangs out in: ./drivers/net/ethernet/ezchip/nps_enet.c β and its little friend group:
nps_enet_poll(9)nps_enet_irq_handler(9)nps_enet_hw_reset(9)nps_enet_set_mac_address(9)nps_enet_open(9)nps_enet_stop(9)nps_enet_start_xmit(9)
go read those too, they're all main characters in their own right ππ
ngl, if you're touching receive filtering on real hardware, know what you're doing β promiscuous mode is not a casual accessory π«Ά
and that's the page!! π it comes to you from ./drivers/net/ethernet/ezchip, dated October 2026, and no cap, that's the whole thing β love that for us πβ
π¦ 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