Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2011 12:51:35 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/usr.sbin/bsnmpd/modules/snmp_hostres hostres_device_tbl.c
Message-ID:  <201107111251.p6BCpoiQ054134@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ae          2011-07-11 12:51:35 UTC

  FreeBSD src repository

  Modified files:
    usr.sbin/bsnmpd/modules/snmp_hostres hostres_device_tbl.c 
  Log:
  SVN rev 223933 on 2011-07-11 12:51:35Z by ae
  
  Use full buffer size in read(2) call, there is no need to preserve the
  last byte of the buffer.
  
  Since we call refresh_device_tbl() for any devctl event types - no need
  to check the first byte of buffer. Remove these checks.
  
  Also remove logging for the case of unknown devd message. It incorrectly
  triggers when all devctl events are not fit into one buffer and part of
  unread data will be read in the next pass.
  
  When length of data readed from devctl is equal to sizeof(buf), then try
  to read from socket again, to read full data.
  
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.6       +5 -11     src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107111251.p6BCpoiQ054134>