cvs commit: src/sys/kern uipc_socket.c src/sys/sys socketvar.h

Gleb Smirnoff glebius at FreeBSD.org
Mon Jan 24 04:20:21 PST 2005


glebius     2005-01-24 12:20:21 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             uipc_socket.c 
    sys/sys              socketvar.h 
  Log:
  - Convert so_qlen, so_incqlen, so_qlimit fields of struct socket from
    short to unsigned short.
  - Add SYSCTL_PROC() around somaxconn, not accepting values < 1 or > U_SHRTMAX.
  
  Before this change setting somaxconn to smth above 32767 and calling
  listen(fd, -1) lead to a socket, which doesn't accept connections at all.
  
  Reviewed by:    rwatson
  Reported by:    Igor Sysoev
  
  Revision  Changes    Path
  1.226     +23 -2     src/sys/kern/uipc_socket.c
  1.136     +6 -6      src/sys/sys/socketvar.h


More information about the cvs-all mailing list