MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / set_bin_pkg_version

Function set_bin_pkg_version

bin_interface.h:111–115  ·  view source on GitHub ↗

overrides the version of the bin protocol from the given message */

Source from the content-addressed store, hash-verified

109
110/* overrides the version of the bin protocol from the given message */
111static inline void set_bin_pkg_version(bin_packet_t *packet, short new_version)
112{
113 memcpy(packet->buffer.s + BIN_PACKET_MARKER_SIZE
114 + PKG_LEN_FIELD_SIZE, &new_version, sizeof(new_version));
115}
116
117/*
118 * returns the capability from the message

Callers 1

handle_sync_packetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected