ReactOS 0.4.15-dev-7953-g1f49173
msg_out.c File Reference
#include "lwip/opt.h"
Include dependency graph for msg_out.c:

Go to the source code of this file.

Detailed Description

SNMP output message processing (RFC1157).

Output responses and traps are build in two passes:

Pass 0: iterate over the output message backwards to determine encoding lengths Pass 1: the actual forward encoding of internal form into ASN1

The single-pass encoding method described by Comer & Stevens requires extra buffer space and copying for reversal of the packet. The buffer requirement can be prohibitively large for big payloads (>= 484) therefore we use the two encoding passes.

Definition in file msg_out.c.