skb_flow_get_ports(9)
okay bestie, welcome to the Kernel API Manual page for skb_flow_get_ports(9) β this one is literally about grabbing the upper layer ports and returning them. π
π NAME π
skb_flow_get_ports β extract the upper layer ports and return them. no cap, that's the whole assignment. β¨
β¨ SYNOPSIS β¨
here's the signature, kept exactly as-is because we do not mess with code, periodt:
__be32 skb_flow_get_ports (const struct sk_buff *skb , int thoff , u8
ip_proto , const void *data , int hlen );
π ARGUMENTS π
skbβ thesk_buffto extract the ports from. π«Άthoffβ the transport header offset.ip_protoβ the protocol for which to get the port offset.dataβ raw buffer pointer to the packet; if it'sNULL, useskb->data.hlenβ packet header length; ifdataisNULL, useskb_headlen(skb).
π¦ DESCRIPTION π¦
the function will try to retrieve the ports at offset thoff + poff, where poff is the protocol port offset returned from proto_ports_offset. that's the tea. β
π₯ SEE ALSO π₯
Kernel file ./net/core/flow_dissector.c plus these besties:
skb_flow_get_icmp_tci(9)__skb_flow_dissect_batadv(9)__skb_flow_dissect(9)__skb_get_hash_net(9)skb_get_poff(9)
mwah π β this page is sourced from ./net/core, dated October 2026, and it's the skb_flow_get_ports(9) entry. byeee 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