SIP-router core ::Module: SIP-router core. More...
#include <string.h>#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <sys/socket.h>#include <netdb.h>#include <netinet/in.h>#include <arpa/inet.h>#include "forward.h"#include "hash_func.h"#include "config.h"#include "parser/msg_parser.h"#include "char_msg_val.h"#include "route.h"#include "events.h"#include "dprint.h"#include "globals.h"#include "cfg_core.h"#include "data_lump.h"#include "ut.h"#include "mem/mem.h"#include "msg_translator.h"#include "sr_module.h"#include "ip_addr.h"#include "resolve.h"#include "name_alias.h"#include "socket_info.h"#include "onsend.h"#include "compiler_opt.h"#include "core_stats.h"
Go to the source code of this file.
Definition in file forward.c.
| struct socket_info* get_send_socket2 | ( | struct socket_info * | force_send_socket, | |
| union sockaddr_union * | to, | |||
| int | proto, | |||
| enum ss_mismatch * | mismatch | |||
| ) | [read] |
| force_send_socket | - if !=0 and the protocol and af correspond with the destination, it will be returned. If the protocol or af check fail, a look-alike socket will be searched for and mismatch will be set. If no look-alike socket is found it will fallback to normal resolution. | |
| to | - destination | |
| proto | - protocol | |
| mismatch | - result parameter, set if a force_send_socket was used, but there was an error matching it exactly to the destination. Possible values: 0 ok, SS_MISMATCH_PROTO, SS_MISMATCH_ADDR, SS_MISMATCH_AF, SS_MISMATCH_MCAST. |
1.7.1