efx_filter_set_ipv4_local(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– efx_filter_set_ipv4_local(9) πŸ’–

okay so bestie, we're in the Kernel API Manual today and this page is literally about one tiny little helper that sets up an IPv4 filter for you πŸ₯° it's from the sfc/siena ethernet driver corner of the kernel, and ngl it's giving "small function, big job" energy. buckle up πŸŽ€


✨ NAME ✨

efx_filter_set_ipv4_local β€” specify IPv4 host, transport protocol and port

like, that's the whole elevator pitch πŸ’… you tell it a host + proto + port and it goes "got it, filter time" ✨


🌸 SYNOPSIS 🌸

int efx_filter_set_ipv4_local (struct efx_filter_spec *spec , u8 proto ,
       __be32 host , __be16 port );

that return type is int btw β€” she returns a value, she's not void, she has main character energy πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • spec β€” the Specification to initialise πŸ’– like, this is the blank canvas bestie, you hand it over and she fills it in
  • proto β€” Transport layer protocol number 🌈 (that's the "which protocol is this even" number)
  • host β€” Local host address, in network byte order ⭐ do not come in here with host byte order, I'm begging 😭
  • port β€” Local port, also in network byte order 🫢 same deal, same rule, iykyk
fr fr, both host and port want network byte order. don't be the person who forgets πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/net/ethernet/sfc/siena/filter.h β€” that's the bestie's home address 🏠 and then the whole friend group:

go read those too, they're iconic, no cap 🌟


mwah πŸ’‹ that's the whole page. this lil beauty lives over in ./drivers/net/ethernet/sfc/siena, dated October 2026, and yes she's still signed efx_filter_set_ipv4_local(9) because legends never change their name πŸ’œβœ¨

πŸ“¦ where this page comes from