mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-04 17:15:50 +00:00
Fix a bunch of SYSCTL_INT() that should have been SYSCTL_ULONG() to
match the type of the variable they are exporting. Spotted by: Thomas Hurst <tom@hur.st> MFC after: 3 days
This commit is contained in:
parent
05ee80c796
commit
e59898ff36
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153427
@ -726,14 +726,14 @@ static u_long unpdg_recvspace = 4*1024;
|
||||
static int unp_rights; /* file descriptors in flight */
|
||||
|
||||
SYSCTL_DECL(_net_local_stream);
|
||||
SYSCTL_INT(_net_local_stream, OID_AUTO, sendspace, CTLFLAG_RW,
|
||||
SYSCTL_ULONG(_net_local_stream, OID_AUTO, sendspace, CTLFLAG_RW,
|
||||
&unpst_sendspace, 0, "");
|
||||
SYSCTL_INT(_net_local_stream, OID_AUTO, recvspace, CTLFLAG_RW,
|
||||
SYSCTL_ULONG(_net_local_stream, OID_AUTO, recvspace, CTLFLAG_RW,
|
||||
&unpst_recvspace, 0, "");
|
||||
SYSCTL_DECL(_net_local_dgram);
|
||||
SYSCTL_INT(_net_local_dgram, OID_AUTO, maxdgram, CTLFLAG_RW,
|
||||
SYSCTL_ULONG(_net_local_dgram, OID_AUTO, maxdgram, CTLFLAG_RW,
|
||||
&unpdg_sendspace, 0, "");
|
||||
SYSCTL_INT(_net_local_dgram, OID_AUTO, recvspace, CTLFLAG_RW,
|
||||
SYSCTL_ULONG(_net_local_dgram, OID_AUTO, recvspace, CTLFLAG_RW,
|
||||
&unpdg_recvspace, 0, "");
|
||||
SYSCTL_DECL(_net_local);
|
||||
SYSCTL_INT(_net_local, OID_AUTO, inflight, CTLFLAG_RD, &unp_rights, 0, "");
|
||||
|
@ -567,9 +567,9 @@ rip_ctlinput(int cmd, struct sockaddr *sa, void *vip)
|
||||
u_long rip_sendspace = RIPSNDQ;
|
||||
u_long rip_recvspace = RIPRCVQ;
|
||||
|
||||
SYSCTL_INT(_net_inet_raw, OID_AUTO, maxdgram, CTLFLAG_RW,
|
||||
SYSCTL_ULONG(_net_inet_raw, OID_AUTO, maxdgram, CTLFLAG_RW,
|
||||
&rip_sendspace, 0, "Maximum outgoing raw IP datagram size");
|
||||
SYSCTL_INT(_net_inet_raw, OID_AUTO, recvspace, CTLFLAG_RW,
|
||||
SYSCTL_ULONG(_net_inet_raw, OID_AUTO, recvspace, CTLFLAG_RW,
|
||||
&rip_recvspace, 0, "Maximum space for incoming raw IP datagrams");
|
||||
|
||||
static int
|
||||
|
@ -1162,10 +1162,10 @@ tcp_ctloutput(so, sopt)
|
||||
* be set by the route).
|
||||
*/
|
||||
u_long tcp_sendspace = 1024*32;
|
||||
SYSCTL_INT(_net_inet_tcp, TCPCTL_SENDSPACE, sendspace, CTLFLAG_RW,
|
||||
SYSCTL_ULONG(_net_inet_tcp, TCPCTL_SENDSPACE, sendspace, CTLFLAG_RW,
|
||||
&tcp_sendspace , 0, "Maximum outgoing TCP datagram size");
|
||||
u_long tcp_recvspace = 1024*64;
|
||||
SYSCTL_INT(_net_inet_tcp, TCPCTL_RECVSPACE, recvspace, CTLFLAG_RW,
|
||||
SYSCTL_ULONG(_net_inet_tcp, TCPCTL_RECVSPACE, recvspace, CTLFLAG_RW,
|
||||
&tcp_recvspace , 0, "Maximum incoming TCP datagram size");
|
||||
|
||||
/*
|
||||
|
@ -899,7 +899,7 @@ release:
|
||||
|
||||
u_long udp_sendspace = 9216; /* really max datagram size */
|
||||
/* 40 1K datagrams */
|
||||
SYSCTL_INT(_net_inet_udp, UDPCTL_MAXDGRAM, maxdgram, CTLFLAG_RW,
|
||||
SYSCTL_ULONG(_net_inet_udp, UDPCTL_MAXDGRAM, maxdgram, CTLFLAG_RW,
|
||||
&udp_sendspace, 0, "Maximum outgoing UDP datagram size");
|
||||
|
||||
u_long udp_recvspace = 40 * (1024 +
|
||||
@ -909,7 +909,7 @@ u_long udp_recvspace = 40 * (1024 +
|
||||
sizeof(struct sockaddr_in)
|
||||
#endif
|
||||
);
|
||||
SYSCTL_INT(_net_inet_udp, UDPCTL_RECVSPACE, recvspace, CTLFLAG_RW,
|
||||
SYSCTL_ULONG(_net_inet_udp, UDPCTL_RECVSPACE, recvspace, CTLFLAG_RW,
|
||||
&udp_recvspace, 0, "Maximum space for incoming UDP datagrams");
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user