freebsd-skq/contrib/bsnmp/snmpd
Enji Cooper 0ba351ef58 Refactor transport sources a bit to facilitate changes coming down pipeline
Add recv callback to transport layer to better facilitate code reuse and
readability and for symmetry with send callback. Move recv_dgram and
recv_stream to udp_recv and lsock_recv, respectively, and make the
beforementioned functions recv callbacks for the udp and lsock transports,
respectively.

Consolidate the check_priv* functions in their relevant trans*.c source to
limit scope/use.

Note: this code is roughly based content from the submitter, although this
was modified to be more of a direct move from snmpd/main.c to the trans_*.c
sources, and to reduce unnecessary static function declarations.

MFC after:	2 weeks
Submitted by:	Thor Steingrimsson <thor.steingrimsson@isilon.com>
Sponsored by:	Dell EMC Isilon
2016-12-26 10:17:22 +00:00
..
action.c Allow SNMPv3 authNoPriv and noAuthNoPriv protocols to discover snmpEngineTime 2016-12-24 11:23:18 +00:00
BEGEMOT-MIB.txt
BEGEMOT-SNMPD.txt
bsnmpd.1 Fix .Dd 2016-05-15 03:44:32 +00:00
config.c Replace QUADFMT with %ju and QUADXFMT with %jx and cast values with uintmax_t 2016-05-15 00:10:37 +00:00
export.c
FOKUS-MIB.txt
main.c Refactor transport sources a bit to facilitate changes coming down pipeline 2016-12-26 10:17:22 +00:00
snmpd.config
snmpd.h Refactor transport sources a bit to facilitate changes coming down pipeline 2016-12-26 10:17:22 +00:00
snmpd.sh
snmpmod.3
snmpmod.h
trans_lsock.c Refactor transport sources a bit to facilitate changes coming down pipeline 2016-12-26 10:17:22 +00:00
trans_lsock.h
trans_udp.c Refactor transport sources a bit to facilitate changes coming down pipeline 2016-12-26 10:17:22 +00:00
trans_udp.h
trap.c Staticize several variables that are used exclusively in bsnmpd/main.c and 2015-12-28 01:51:20 +00:00
tree.def