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

Function bin_get_capability

bin_interface.c:115–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void bin_get_capability(bin_packet_t *packet, str *capability)
116{
117 unsigned short len;
118
119 memcpy(&len, packet->buffer.s + HEADER_SIZE, sizeof(unsigned short));
120 capability->len = len;
121 capability->s = packet->buffer.s + HEADER_SIZE + LEN_FIELD_SIZE;
122}
123
124/*
125 * initializes a packet with a buffer received

Callers 5

bin_set_packet_typeFunction · 0.85
bin_init_bufferFunction · 0.85
call_callbacksFunction · 0.85
clusterer_send_msgFunction · 0.85
clusterer_bcast_msgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected