+/*
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
/*
* SNMP PDU Encoding
*
#include "squid.h"
-#include <stdio.h>
-
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
break;
#endif
- /**********************************************************************/
+ /**********************************************************************/
case SNMP_PDU_GETBULK:
return (NULL);
break;
- /**********************************************************************/
+ /**********************************************************************/
default:
if (bufp == NULL)
return (NULL);
break;
- } /* End of encoding */
+ } /* End of encoding */
return (bufp);
}
* Variable Bindings start.
*/
u_char *
-snmp_pdu_decode(u_char * Packet, /* data */
- int *Length, /* &length */
+snmp_pdu_decode(u_char * Packet, /* data */
+ int *Length, /* &length */
struct snmp_pdu * PDU)
-{ /* pdu */
+{ /* pdu */
u_char *bufp;
u_char PDUType;
u_char ASNType;
break;
#endif
- /**********************************************************************/
+ /**********************************************************************/
case SNMP_PDU_GETBULK:
ASN_PARSE_ERROR(NULL);
break;
- /**********************************************************************/
+ /**********************************************************************/
default:
return;
}
+