Print this page
some functions in the tcp module can be static
*** 40,49 ****
--- 40,51 ----
#include <netinet/tcp.h>
#include <inet/optcom.h>
#include <inet/proto_set.h>
#include <inet/tcp_impl.h>
+ static int tcp_opt_default(queue_t *, int, int, uchar_t *);
+
/*
* Table of all known options handled on a TCP protocol stack.
*
* Note: This table contains options processed by both TCP and IP levels
* and is the superset of options that can be performed on a TCP over IP
*** 304,314 ****
/*
* This routine gets default values of certain options whose default
* values are maintained by protocol specific code
*/
/* ARGSUSED */
! int
tcp_opt_default(queue_t *q, int level, int name, uchar_t *ptr)
{
int32_t *i1 = (int32_t *)ptr;
tcp_stack_t *tcps = Q_TO_TCP(q)->tcp_tcps;
--- 306,316 ----
/*
* This routine gets default values of certain options whose default
* values are maintained by protocol specific code
*/
/* ARGSUSED */
! static int
tcp_opt_default(queue_t *q, int level, int name, uchar_t *ptr)
{
int32_t *i1 = (int32_t *)ptr;
tcp_stack_t *tcps = Q_TO_TCP(q)->tcp_tcps;