"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "omapip/buffer.c" between
dhcp-4.3.6.tar.gz and dhcp-4.3.6-P1.tar.gz

About: ISC DHCP implements the "Dynamic Host Configuration Protocols" for connection to a local network. 4.3.x release series.

buffer.c  (dhcp-4.3.6):buffer.c  (dhcp-4.3.6-P1)
/* buffer.c /* buffer.c
Buffer access functions for the object management protocol... */ Buffer access functions for the object management protocol... */
/* /*
* Copyright (c) 2009,2012-2014 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 2004-2018 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 2004,2005,2007 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1999-2003 by Internet Software Consortium * Copyright (c) 1999-2003 by Internet Software Consortium
* *
* Permission to use, copy, modify, and distribute this software for any * Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above * purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies. * copyright notice and this permission notice appear in all copies.
* *
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
skipping to change at line 568 skipping to change at line 567
omapi_buffer_reference (&buffer, omapi_buffer_reference (&buffer,
c -> outbufs -> next, MDL); c -> outbufs -> next, MDL);
omapi_buffer_dereference (&c -> outbufs -> next, MDL); omapi_buffer_dereference (&c -> outbufs -> next, MDL);
} }
omapi_buffer_dereference (&c -> outbufs, MDL); omapi_buffer_dereference (&c -> outbufs, MDL);
if (buffer) { if (buffer) {
omapi_buffer_reference (&c -> outbufs, buffer, MDL); omapi_buffer_reference (&c -> outbufs, buffer, MDL);
omapi_buffer_dereference (&buffer, MDL); omapi_buffer_dereference (&buffer, MDL);
} }
} }
/* If we had data left to write when we're told to disconnect,
* we need recall disconnect, now that we're done writing.
* See rt46767. */
if (c->out_bytes == 0 && c->state == omapi_connection_disconnecting) {
omapi_disconnect (h, 1);
return ISC_R_SHUTTINGDOWN;
}
return ISC_R_SUCCESS; return ISC_R_SUCCESS;
} }
isc_result_t omapi_connection_get_uint32 (omapi_object_t *c, isc_result_t omapi_connection_get_uint32 (omapi_object_t *c,
u_int32_t *result) u_int32_t *result)
{ {
u_int32_t inbuf; u_int32_t inbuf;
isc_result_t status; isc_result_t status;
status = omapi_connection_copyout ((unsigned char *)&inbuf, status = omapi_connection_copyout ((unsigned char *)&inbuf,
 End of changes. 2 change blocks. 
2 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)