summaryrefslogtreecommitdiff
path: root/omapip/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'omapip/buffer.c')
-rw-r--r--omapip/buffer.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/omapip/buffer.c b/omapip/buffer.c
index a21f0a80..2d034c62 100644
--- a/omapip/buffer.c
+++ b/omapip/buffer.c
@@ -3,7 +3,7 @@
Buffer access functions for the object management protocol... */
/*
- * Copyright (c) 2004-2017 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2022 Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1999-2003 by Internet Software Consortium
*
* This Source Code Form is subject to the terms of the Mozilla Public
@@ -19,8 +19,8 @@
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* Internet Systems Consortium, Inc.
- * 950 Charter Street
- * Redwood City, CA 94063
+ * PO Box 360
+ * Newmarket, NH 03857 USA
* <info@isc.org>
* https://www.isc.org/
*
@@ -146,7 +146,7 @@ static isc_result_t omapi_connection_reader_trace (omapi_object_t *h,
int read_status;
omapi_connection_object_t *c;
unsigned bytes_to_read;
-
+
if (!h || h -> type != omapi_type_connection)
return DHCP_R_INVALIDARG;
c = (omapi_connection_object_t *)h;
@@ -421,7 +421,7 @@ isc_result_t omapi_connection_copyout (unsigned char *buf,
buffer -> head = first_byte + bytes_this_copy - 1;
c -> in_bytes -= bytes_this_copy;
}
-
+
if (!BYTES_IN_BUFFER (buffer))
buffer = buffer -> next;
}
@@ -516,14 +516,14 @@ isc_result_t omapi_connection_writer (omapi_object_t *h)
isc_result_t status;
trace_iov_t iov [2];
int32_t connect_index;
-
+
connect_index = htonl (c -> index);
-
+
iov [0].buf = (char *)&connect_index;
iov [0].len = sizeof connect_index;
iov [1].buf = &buffer -> buf [buffer -> tail];
iov [1].len = bytes_written;
-
+
status = (trace_write_packet_iov
(trace_connection_input, 2, iov,
MDL));
@@ -545,11 +545,11 @@ isc_result_t omapi_connection_writer (omapi_object_t *h)
if (bytes_written != bytes_this_write)
return ISC_R_INPROGRESS;
}
-
+
if (!BYTES_IN_BUFFER (buffer))
buffer = buffer -> next;
}
-
+
/* Get rid of any output buffers we emptied. */
buffer = (omapi_buffer_t *)0;
while (c -> outbufs &&
@@ -598,7 +598,7 @@ isc_result_t omapi_connection_put_uint32 (omapi_object_t *c,
u_int32_t inbuf;
inbuf = htonl (value);
-
+
return omapi_connection_copyin (c, (unsigned char *)&inbuf,
sizeof inbuf);
}
@@ -624,7 +624,7 @@ isc_result_t omapi_connection_put_uint16 (omapi_object_t *c,
u_int16_t inbuf;
inbuf = htons (value);
-
+
return omapi_connection_copyin (c, (unsigned char *)&inbuf,
sizeof inbuf);
}
@@ -740,4 +740,3 @@ isc_result_t omapi_connection_put_named_uint32 (omapi_object_t *c,
status = omapi_connection_put_uint32(c, value);
return (status);
}
-