alexb/lib/lwip/contrib/src/core/snmp/msg_out.c File Reference

SNMP output message processing (RFC1157). More...

#include "lwip/opt.h"

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines