diff options
author | 2024-03-26 19:05:46 +0100 | |
---|---|---|
committer | 2024-03-29 12:18:24 -0700 | |
commit | a0ad11fc2632903ec0fe9cd16b07d7dd2ade8341 (patch) | |
tree | cbbafc5ca69f82aafd763cd4d10bddd622b61981 /net/unix/af_unix.c | |
parent | nfc: st95hf: Switch to using gpiod API (diff) | |
download | wireguard-linux-a0ad11fc2632903ec0fe9cd16b07d7dd2ade8341.tar.xz wireguard-linux-a0ad11fc2632903ec0fe9cd16b07d7dd2ade8341.zip |
net: port TP_STORE_ADDR_PORTS_SKB macro to be tcp/udp independent
This patch moves TP_STORE_ADDR_PORTS_SKB() to a common header and removes
the TCP specific implementation details.
Previously the macro assumed the skb passed as an argument is a
TCP packet, the implementation now uses an argument to the L4 header and
uses that to extract the source/destination ports, which happen
to be named the same in "struct tcphdr" and "struct udphdr"
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Link: https://lore.kernel.org/r/9e306f78260dfbbdc7353ba5f864cc027a409540.1711475011.git.balazs.scheidler@axoflow.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions