]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - lib/snmplib/snmp_pdu.c
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / lib / snmplib / snmp_pdu.c
index 4b783c4e65c01a2c633abc1a983b34a5447a689b..c7c6227b0f96de7123b81edabd82f4458c0f01fc 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * Copyright (C) 1996-2018 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
  *
@@ -396,7 +404,7 @@ snmp_pdu_encode(u_char * DestBuf, int *DestBufLen,
         break;
 #endif
 
-        /**********************************************************************/
+    /**********************************************************************/
 
     case SNMP_PDU_GETBULK:
 
@@ -426,7 +434,7 @@ snmp_pdu_encode(u_char * DestBuf, int *DestBufLen,
             return (NULL);
         break;
 
-        /**********************************************************************/
+    /**********************************************************************/
 
     default:
 
@@ -462,7 +470,7 @@ snmp_pdu_encode(u_char * DestBuf, int *DestBufLen,
         if (bufp == NULL)
             return (NULL);
         break;
-    }                          /* End of encoding */
+    }               /* End of encoding */
 
     return (bufp);
 }
@@ -475,10 +483,10 @@ snmp_pdu_encode(u_char * DestBuf, int *DestBufLen,
  * 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;
@@ -552,7 +560,7 @@ snmp_pdu_decode(u_char * Packet,    /* data */
         break;
 #endif
 
-        /**********************************************************************/
+    /**********************************************************************/
 
     case SNMP_PDU_GETBULK:
 
@@ -580,7 +588,7 @@ snmp_pdu_decode(u_char * Packet,    /* data */
             ASN_PARSE_ERROR(NULL);
         break;
 
-        /**********************************************************************/
+    /**********************************************************************/
 
     default:
 
@@ -654,3 +662,4 @@ snmp_add_null_var(struct snmp_pdu *pdu, oid * name, int name_length)
 
     return;
 }
+