NAME
BSD::Tcpdrop - Perl extension for dropping TCP connections in *BSD
SYNOPSIS
use BSD::Tcpdrop;
tcpdropbyname($local_ip, $local_port, $foreign_ip, $foreign_port);
DESCRIPTION
Shameslessly steal the tcpdrop source from the BSD base system and glue it to Perl with XS, so that we can now drop the TCP connection within perl.
The source is stolen from git repository of DragonflyBSD
Tested on FreeBSD 11.1 and DragonflyBSD 4.9-DEVELOPMENT
EXPORT
tcpdropbyname($local_ip, $local_port, $foreign_ip, $foreign_port) return true (1) when success return false (0) if fail
SEE ALSO
https://www.freebsd.org/cgi/man.cgi?query=tcpdrop&sektion=8
https://www.freebsd.org/cgi/man.cgi?query=sysctl&apropos=0&sektion=3
AUTHOR
Baggio Kwok, <rootkwok@cpan.org<gt>