efx_filter_set_ipv4_local(9)
π 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 inprotoβ 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, bothhostandportwant 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:
enum efx_filter_match_flags(9)enum efx_filter_priority(9)enum efx_filter_flags(9)struct efx_filter_spec(9)efx_filter_set_ipv4_full(9)efx_filter_set_eth_local(9)efx_filter_set_uc_def(9)efx_filter_set_mc_def(9)
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
- 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