]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a --sctp flag to nc.
authormarkj <markj@FreeBSD.org>
Fri, 10 Jul 2020 19:54:04 +0000 (19:54 +0000)
committermarkj <markj@FreeBSD.org>
Fri, 10 Jul 2020 19:54:04 +0000 (19:54 +0000)
commit593aee73adc6415d24101e62a43a69ab447a3b7c
treec48dc3c8d825a5098fbe6bcdbf901d6f0eeafda7
parent2c9b3f6dbf58a3ac827e85d6d9ee5f04b5063627
Add a --sctp flag to nc.

The change adds an SCTP mode akin to UDP mode.  This is handy for doing
smoke testing of SCTP.

Use a long option to minimize the risk of option conflicts with OpenBSD.
For bonus points, this change unbreaks --no-tcpopt by adding a missing
case required by getopt_long().

Reviewed by: delphij, tuexen
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25610
contrib/netcat/nc.1
contrib/netcat/netcat.c