hw_set_promiscuous(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hw_set_promiscuous β€” enable or disable promiscuous receiving

okay so bestie, this one's straight out of the Kernel API Manual, section 9, and it's genuinely one of the simplest little functions you'll ever meet 🫢 it's just a switch-flip for promiscuous mode, no cap.


✨ SYNOPSIS ✨

void hw_set_promiscuous (struct ksz_hw *hw , u8 prom );

like… that's it. that's the whole signature. icon behavior πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • hw β€” the hardware instance. your actual NIC-ish thing. the main character of this story πŸ‘‘
  • prom β€” the on/off switch for the promiscuous feature. flip it one way, feature on; flip it the other, feature off. that's the whole vibe.

🌸 DESCRIPTION 🌸

This routine enables/disables the hardware to accept all packets ✨

so yeah β€” it's giving "let the hardware grab everything", not just the stuff addressed to it. you wanna turn that on? pass the right prom. you wanna turn it off? same function, different prom. one routine, both directions, extremely efficient of it tbh πŸ¦‹

heads up: promiscuous receiving means the hardware accepts all packets β€” that's literally what the page says, and it's the entire point. not me being dramatic, that's just the feature πŸ”₯

🧚 SEE ALSO 🧚

first up, the actual kernel file this whole situation lives in, iykyk:

  • ./drivers/net/ethernet/micrel/ksz884x.c

and now the extended fam β€” every single one of these is sibling-coded with our girl πŸ’œ

the structs (the whole struct gang):

  • struct ksz_hw_desc(9)
  • struct ksz_sw_desc(9)
  • struct ksz_dma_buf(9)
  • struct ksz_desc(9)
  • struct ksz_desc_info(9)
  • struct ksz_mac_table(9)
  • struct ksz_vlan_table(9)
  • struct ksz_port_mib(9)
  • struct ksz_port_cfg(9)
  • struct ksz_switch(9)
  • struct ksz_port_info(9)
  • struct ksz_hw(9)
  • struct ksz_port(9)
  • struct ksz_timer_info(9)
  • struct ksz_shared_mem(9)
  • struct ksz_counter_info(9)
  • struct dev_info(9)
  • struct dev_priv(9)

and the functions (yes, all of them, I'm not skipping a single one 😭):

like, that's a whole friend group. slay 🌈


and that's the page, bestie πŸ’– this one shipped from ./drivers/net/ethernet/micrel with an October 2026 date stamp, so go forth and toggle promiscuous mode responsibly βœ¨πŸŽ€

πŸ“¦ where this page comes from