summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrob <rob@openbsd.org>2021-01-02 01:06:31 +0000
committerrob <rob@openbsd.org>2021-01-02 01:06:31 +0000
commit71bc694ef364652ed2dec5baf026ae4d18214d2b (patch)
tree0341889b16b53d8d703482ddb6931a4fdab6ae63
parentImport libunwind 11.0.0 in new LLVM directory, thus not yet linked to (diff)
downloadwireguard-openbsd-71bc694ef364652ed2dec5baf026ae4d18214d2b.tar.xz
wireguard-openbsd-71bc694ef364652ed2dec5baf026ae4d18214d2b.zip
Whitespace.
OK martijn@
-rw-r--r--lib/libagentx/ax.c14
-rw-r--r--lib/libagentx/ax.h64
2 files changed, 39 insertions, 39 deletions
diff --git a/lib/libagentx/ax.c b/lib/libagentx/ax.c
index eb10672b0d2..f2e159fa4f6 100644
--- a/lib/libagentx/ax.c
+++ b/lib/libagentx/ax.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ax.c,v 1.6 2020/12/29 21:44:48 rob Exp $ */
+/* $OpenBSD: ax.c,v 1.7 2021/01/02 01:06:31 rob Exp $ */
/*
* Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org>
*
@@ -1052,8 +1052,8 @@ ax_pdu_add_uint16(struct ax *ax, uint16_t value)
else
value = htole16(value);
memcpy(ax->ax_wbuf + ax->ax_wbtlen, &value, sizeof(value));
- ax->ax_wbtlen += sizeof(value);
- return 0;
+ ax->ax_wbtlen += sizeof(value);
+ return 0;
}
static int
@@ -1067,8 +1067,8 @@ ax_pdu_add_uint32(struct ax *ax, uint32_t value)
else
value = htole32(value);
memcpy(ax->ax_wbuf + ax->ax_wbtlen, &value, sizeof(value));
- ax->ax_wbtlen += sizeof(value);
- return 0;
+ ax->ax_wbtlen += sizeof(value);
+ return 0;
}
static int
@@ -1082,8 +1082,8 @@ ax_pdu_add_uint64(struct ax *ax, uint64_t value)
else
value = htole64(value);
memcpy(ax->ax_wbuf + ax->ax_wbtlen, &value, sizeof(value));
- ax->ax_wbtlen += sizeof(value);
- return 0;
+ ax->ax_wbtlen += sizeof(value);
+ return 0;
}
diff --git a/lib/libagentx/ax.h b/lib/libagentx/ax.h
index 36bc64fbaf2..17fe584c877 100644
--- a/lib/libagentx/ax.h
+++ b/lib/libagentx/ax.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ax.h,v 1.3 2020/10/27 17:19:44 martijn Exp $ */
+/* $OpenBSD: ax.h,v 1.4 2021/01/02 01:06:31 rob Exp $ */
/*
* Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org>
*
@@ -39,74 +39,74 @@ enum ax_byte_order {
enum ax_pdu_type {
AX_PDU_TYPE_OPEN = 1,
AX_PDU_TYPE_CLOSE = 2,
- AX_PDU_TYPE_REGISTER = 3,
- AX_PDU_TYPE_UNREGISTER = 4,
- AX_PDU_TYPE_GET = 5,
+ AX_PDU_TYPE_REGISTER = 3,
+ AX_PDU_TYPE_UNREGISTER = 4,
+ AX_PDU_TYPE_GET = 5,
AX_PDU_TYPE_GETNEXT = 6,
AX_PDU_TYPE_GETBULK = 7,
AX_PDU_TYPE_TESTSET = 8,
- AX_PDU_TYPE_COMMITSET = 9,
+ AX_PDU_TYPE_COMMITSET = 9,
AX_PDU_TYPE_UNDOSET = 10,
- AX_PDU_TYPE_CLEANUPSET = 11,
+ AX_PDU_TYPE_CLEANUPSET = 11,
AX_PDU_TYPE_NOTIFY = 12,
AX_PDU_TYPE_PING = 13,
AX_PDU_TYPE_INDEXALLOCATE = 14,
AX_PDU_TYPE_INDEXDEALLOCATE = 15,
AX_PDU_TYPE_ADDAGENTCAPS = 16,
AX_PDU_TYPE_REMOVEAGENTCAPS = 17,
- AX_PDU_TYPE_RESPONSE = 18
+ AX_PDU_TYPE_RESPONSE = 18
};
enum ax_pdu_error {
- AX_PDU_ERROR_NOERROR = 0,
+ AX_PDU_ERROR_NOERROR = 0,
AX_PDU_ERROR_GENERR = 5,
- AX_PDU_ERROR_NOACCESS = 6,
- AX_PDU_ERROR_WRONGTYPE = 7,
+ AX_PDU_ERROR_NOACCESS = 6,
+ AX_PDU_ERROR_WRONGTYPE = 7,
AX_PDU_ERROR_WRONGLENGTH = 8,
AX_PDU_ERROR_WRONGENCODING = 9,
- AX_PDU_ERROR_WRONGVALUE = 10,
- AX_PDU_ERROR_NOCREATION = 11,
- AX_PDU_ERROR_INCONSISTENTVALUE = 12,
+ AX_PDU_ERROR_WRONGVALUE = 10,
+ AX_PDU_ERROR_NOCREATION = 11,
+ AX_PDU_ERROR_INCONSISTENTVALUE = 12,
AX_PDU_ERROR_RESOURCEUNAVAILABLE = 13,
AX_PDU_ERROR_COMMITFAILED = 14,
- AX_PDU_ERROR_UNDOFAILED = 15,
+ AX_PDU_ERROR_UNDOFAILED = 15,
AX_PDU_ERROR_NOTWRITABLE = 17,
- AX_PDU_ERROR_INCONSISTENTNAME = 18,
- AX_PDU_ERROR_OPENFAILED = 256,
- AX_PDU_ERROR_NOTOPEN = 257,
+ AX_PDU_ERROR_INCONSISTENTNAME = 18,
+ AX_PDU_ERROR_OPENFAILED = 256,
+ AX_PDU_ERROR_NOTOPEN = 257,
AX_PDU_ERROR_INDEXWRONGTYPE = 258,
AX_PDU_ERROR_INDEXALREADYALLOCATED = 259,
- AX_PDU_ERROR_INDEXNONEAVAILABLE = 260,
- AX_PDU_ERROR_INDEXNOTALLOCATED = 261,
- AX_PDU_ERROR_UNSUPPORTEDCONETXT = 262,
+ AX_PDU_ERROR_INDEXNONEAVAILABLE = 260,
+ AX_PDU_ERROR_INDEXNOTALLOCATED = 261,
+ AX_PDU_ERROR_UNSUPPORTEDCONETXT = 262,
AX_PDU_ERROR_DUPLICATEREGISTRATION = 263,
AX_PDU_ERROR_UNKNOWNREGISTRATION = 264,
- AX_PDU_ERROR_UNKNOWNAGENTCAPS = 265,
- AX_PDU_ERROR_PARSEERROR = 266,
+ AX_PDU_ERROR_UNKNOWNAGENTCAPS = 265,
+ AX_PDU_ERROR_PARSEERROR = 266,
AX_PDU_ERROR_REQUESTDENIED = 267,
- AX_PDU_ERROR_PROCESSINGERROR = 268
+ AX_PDU_ERROR_PROCESSINGERROR = 268
};
enum ax_data_type {
- AX_DATA_TYPE_INTEGER = 2,
+ AX_DATA_TYPE_INTEGER = 2,
AX_DATA_TYPE_OCTETSTRING = 4,
AX_DATA_TYPE_NULL = 5,
AX_DATA_TYPE_OID = 6,
- AX_DATA_TYPE_IPADDRESS = 64,
- AX_DATA_TYPE_COUNTER32 = 65,
- AX_DATA_TYPE_GAUGE32 = 66,
- AX_DATA_TYPE_TIMETICKS = 67,
+ AX_DATA_TYPE_IPADDRESS = 64,
+ AX_DATA_TYPE_COUNTER32 = 65,
+ AX_DATA_TYPE_GAUGE32 = 66,
+ AX_DATA_TYPE_TIMETICKS = 67,
AX_DATA_TYPE_OPAQUE = 68,
- AX_DATA_TYPE_COUNTER64 = 70,
+ AX_DATA_TYPE_COUNTER64 = 70,
AX_DATA_TYPE_NOSUCHOBJECT = 128,
AX_DATA_TYPE_NOSUCHINSTANCE = 129,
AX_DATA_TYPE_ENDOFMIBVIEW = 130
};
enum ax_close_reason {
- AX_CLOSE_OTHER = 1,
- AX_CLOSEN_PARSEERROR = 2,
- AX_CLOSE_PROTOCOLERROR = 3,
+ AX_CLOSE_OTHER = 1,
+ AX_CLOSEN_PARSEERROR = 2,
+ AX_CLOSE_PROTOCOLERROR = 3,
AX_CLOSE_TIMEOUTS = 4,
AX_CLOSE_SHUTDOWN = 5,
AX_CLOSE_BYMANAGER = 6