skb_flow_get_ports(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” the sk_buff to 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's NULL, use skb->data.
  • hlen β€” packet header length; if data is NULL, use skb_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:

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