diff options
author | Lutz Donnerhacke <donner@FreeBSD.org> | 2021-05-15 13:24:12 +0000 |
---|---|---|
committer | Lutz Donnerhacke <donner@FreeBSD.org> | 2021-06-07 05:48:07 +0000 |
commit | fc2d7fb643f83fff73b1038734b934fdafa946c3 (patch) | |
tree | 6f12da2b8ef2f3219dc19c01ec28ef673168ac72 /sys/netinet/libalias/alias.h | |
parent | d1b7ff3dac5727fba692e7de999e9b6834b72659 (diff) | |
download | src-fc2d7fb643f83fff73b1038734b934fdafa946c3.tar.gz src-fc2d7fb643f83fff73b1038734b934fdafa946c3.zip |
libalias: Remove unused function LibAliasCheckNewLink
The functionality to detect a newly created link after processing a
single packet is decoupled from the packet processing. Every new
packet is processed asynchronously and will reset the indicator, hence
the function is unusable. I made a Google search for third party code,
which uses the function, and failed to find one.
That's why the function should be removed: It unusable and unused.
A much simplified API/ABI will remain in anything below 14.
Discussed with: kp
Reviewed by: manpages (bcr)
Differential Revision: https://reviews.freebsd.org/D30275
(cherry picked from commit bfd41ba1fe1d0e40b6a813aeb0354cac8d884f5b)
Diffstat (limited to 'sys/netinet/libalias/alias.h')
-rw-r--r-- | sys/netinet/libalias/alias.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/libalias/alias.h b/sys/netinet/libalias/alias.h index 36f1ca168823..558a750b4fd8 100644 --- a/sys/netinet/libalias/alias.h +++ b/sys/netinet/libalias/alias.h @@ -120,10 +120,12 @@ void *LibAliasGetFragment(struct libalias *, void *_ptr); int LibAliasSaveFragment(struct libalias *, void *_ptr); /* Miscellaneous functions. */ -int LibAliasCheckNewLink(struct libalias *); unsigned short LibAliasInternetChecksum(struct libalias *, unsigned short *_ptr, int _nbytes); void LibAliasSetTarget(struct libalias *, struct in_addr _target_addr); +/* never used and never worked, to be removed in FreeBSD 14 */ +int LibAliasCheckNewLink(struct libalias *); + /* Transparent proxying routines. */ int LibAliasProxyRule(struct libalias *, const char *_cmd); |