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

Function lump_check_opt

msg_translator.c:357–370  ·  view source on GitHub ↗

! \brief* checks if a lump opt condition * returns 1 if cond is true, 0 if false */

Source from the content-addressed store, hash-verified

355/*! \brief* checks if a lump opt condition
356 * returns 1 if cond is true, 0 if false */
357static inline int lump_check_opt( struct lump *l,
358 struct sip_msg* msg,
359 const struct socket_info* snd_s
360 )
361{
362 const struct ip_addr* ip;
363 unsigned short port;
364 int proto;
365
366#define get_ip_port_proto \
367 if (snd_s==0){ \
368 LM_CRIT("null send socket\n"); \
369 return 1; /* we presume they are different :-) */ \
370 } \
371 if (msg->rcv.bind_address){ \
372 ip=&msg->rcv.bind_address->address; \
373 port=msg->rcv.bind_address->port_no; \

Callers 1

msg_translator.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected