! \brief* checks if a lump opt condition * returns 1 if cond is true, 0 if false */
| 355 | /*! \brief* checks if a lump opt condition |
| 356 | * returns 1 if cond is true, 0 if false */ |
| 357 | static 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; \ |