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

Function get_bin_pkg_version

bin_interface.h:101–108  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

99
100/* returns the version of the bin protocol from the given message */
101static inline short get_bin_pkg_version(bin_packet_t *packet)
102{
103 short rval;
104
105 memcpy(&rval, packet->buffer.s + BIN_PACKET_MARKER_SIZE
106 + PKG_LEN_FIELD_SIZE, sizeof(rval));
107 return rval;
108}
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)

Callers 12

srec_loaded_callbackFunction · 0.85
receive_urecord_insertFunction · 0.85
receive_ucontact_insertFunction · 0.85
receive_ucontact_updateFunction · 0.85
receive_ucontact_deleteFunction · 0.85
handle_sync_packetFunction · 0.85
dlg_replicated_createFunction · 0.85
dlg_replicated_updateFunction · 0.85
dlg_replicated_deleteFunction · 0.85
receive_dlg_replFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected