mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-30 12:04:07 +00:00
Import nc from OpenBSD 5.0.
This commit is contained in:
parent
c98f06c929
commit
b4a93b50d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/netcat/dist/; revision=228894 svn path=/vendor/netcat/5.0/; revision=228895; tag=vendor/netcat/5.0
4
netcat.c
4
netcat.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: netcat.c,v 1.100 2011/01/09 22:16:46 jeremy Exp $ */
|
/* $OpenBSD: netcat.c,v 1.101 2011/06/21 17:31:07 mikeb Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
|
* Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
|
||||||
*
|
*
|
||||||
@ -552,7 +552,7 @@ remote_connect(const char *host, const char *port, struct addrinfo hints)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (rtableid) {
|
if (rtableid) {
|
||||||
if (setsockopt(s, IPPROTO_IP, SO_RTABLE, &rtableid,
|
if (setsockopt(s, SOL_SOCKET, SO_RTABLE, &rtableid,
|
||||||
sizeof(rtableid)) == -1)
|
sizeof(rtableid)) == -1)
|
||||||
err(1, "setsockopt SO_RTABLE");
|
err(1, "setsockopt SO_RTABLE");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user