SO_DEBUG
if (setsockopt(s, SOL_SOCKET, SO_DEBUG,
setsockopt(s, SOL_SOCKET, SO_DEBUG, (char *)&hold,
setsockopt(s, SOL_SOCKET, SO_DEBUG, (char *)&hold,
case SO_DEBUG:
case SO_DEBUG:
if (so->so_options & SO_DEBUG)
if (so->so_options & SO_DEBUG)
if (tp == NULL || (tp->t_inpcb->inp_socket->so_options & SO_DEBUG))
if (tp == NULL || (tp->t_inpcb->inp_socket->so_options & SO_DEBUG))
if (so->so_options & SO_DEBUG) {
if (so->so_options & SO_DEBUG) {
if (tp == NULL || (inp->inp_socket->so_options & SO_DEBUG))
if (tp && (tp->t_inpcb->inp_socket->so_options & SO_DEBUG))
if (tp->t_inpcb->inp_socket->so_options & SO_DEBUG)
if (tp && (tp->t_inpcb->inp_socket->so_options & SO_DEBUG))
if (tp && tp->t_inpcb->inp_socket->so_options & SO_DEBUG)
if (tp && (tp->t_inpcb->inp_socket->so_options & SO_DEBUG))
#define TCPDEBUG2(req) if (tp && (so->so_options & SO_DEBUG)) \
if (telnet_debug && SetSockOpt(net, SOL_SOCKET, SO_DEBUG, 1) < 0) {
(SetSockOpt(net, SOL_SOCKET, SO_DEBUG, telnet_debug)) < 0) {
if (net > 0 && SetSockOpt(net, SOL_SOCKET, SO_DEBUG, 1) < 0)
if (strcmp(sep->se_proto, "tcp") == 0 && (options & SO_DEBUG) &&
turnon(sep->se_fd, SO_DEBUG) < 0)
options |= SO_DEBUG;
if (setsockopt(*s, SOL_SOCKET, SO_DEBUG, &debuglvl,
options |= SO_DEBUG;
if (options & SO_DEBUG)
setsockopt(s, SOL_SOCKET, SO_DEBUG, (char *)&on, sizeof(on));
if (options & SO_DEBUG)
setsockopt(sndsock, SOL_SOCKET, SO_DEBUG,
options |= SO_DEBUG;
if (options & SO_DEBUG)
(void) setsockopt(rcvsock, SOL_SOCKET, SO_DEBUG,
if (options & SO_DEBUG)
(void) setsockopt(sndsock, SOL_SOCKET, SO_DEBUG,