MSG_AUTHORITATIVE_HEADER_LEN Macro

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
MSG_AUTHORITATIVE_HEADER_LEN Macro
C
#define MSG_AUTHORITATIVE_HEADER_LEN(x) ( x=(2+2 \
                                     +1+1+snmpEngnIDLength \
                                     +1+1+4 \
                                     +1+1+4 \
                                     +1+1+securityPrimitivesOfIncomingPdu.securityNameLength \
                                     +1+1+snmpOutMsgAuthParamLen \
                                     +1+1+snmpOutMsgPrivParamLen) \
                                )
Description

Length of SNMPv3 authoratative msg header length = Header length ( 2 + 2 bytes) + engineID ( snmpEngnIDLength bytes)

  • engine boot( 4 bytes)+ engine time(4 bytes)

+security name (securityPrimitivesOfIncomingPdu value) +authentication parameters (snmpOutMsgAuthParamLen value) +privacy parameters (snmpOutMsgAuthParamLen value)

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.