1
0
mirror of https://passt.top/passt synced 2024-12-22 13:45:32 +00:00

port_fwd: Fix copypasta error in port_fwd_scan_udp() comments

port_fwd_scan_udp() handles UDP, as the name suggests, but its
function comment has the wrong function name and references TCP, due
to a bad copy-paste from port_fwd_scan_tcp().

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
David Gibson 2024-02-28 22:25:19 +11:00 committed by Stefano Brivio
parent f15be719b3
commit 10376e7a2f

View File

@ -85,7 +85,7 @@ void port_fwd_scan_tcp(struct port_fwd *fwd, const struct port_fwd *rev)
}
/**
* port_fwd_scan_tcp() - Scan /proc to update TCP forwarding map
* port_fwd_scan_udp() - Scan /proc to update UDP forwarding map
* @fwd: Forwarding information to update
* @rev: Forwarding information for the reverse direction
* @tcp_fwd: Corresponding TCP forwarding information