#include "globals.h"#include "parser/msg_parser.h"#include "route.h"#include "proxy.h"#include "ip_addr.h"#include "stats.h"#include "udp_server.h"#include "compiler_opt.h"Go to the source code of this file.
Defines | |
| #define | update_sock_struct_from_ip(to, msg) |
Functions | |
| socket_info * | get_send_socket (struct sip_msg *msg, union sockaddr_union *su, int proto) |
| socket_info * | get_out_socket (union sockaddr_union *to, int proto) |
| int | check_self (str *host, unsigned short port, unsigned short proto) |
| int | check_self_port (unsigned short port, unsigned short proto) |
| int | forward_request (struct sip_msg *msg, str *dst, unsigned short port, struct dest_info *send_info) |
| int | update_sock_struct_from_via (union sockaddr_union *to, struct sip_msg *msg, struct via_body *via) |
| int | forward_reply (struct sip_msg *msg) |
| int | msg_send (struct dest_info *dst, char *buf, int len) |
|
|
Value: init_su((to), &(msg)->rcv.src_ip, \ (((msg)->via1->rport)||((msg)->msg_flags&FL_FORCE_RPORT))? \ (msg)->rcv.src_port: \ ((msg)->via1->port)?(msg)->via1->port: SIP_PORT ) Definition at line 78 of file forward.h. Referenced by init_rb(), and sl_send_reply(). |
|
||||||||||||||||
|
Definition at line 293 of file forward.c. References DBG, grep_aliases(), grep_sock_info(), _str::len, _str::s, and str. Referenced by check_self_op(), forward_reply(), get_direction(), is_myself(), ospGetNextHop(), and ospGetRouteParameters(). |
|
||||||||||||
|
Definition at line 309 of file forward.c. References grep_sock_info_by_port(). Referenced by is_myself(). |
|
|
Definition at line 595 of file forward.c. References build_res_buf_from_sip_res(), check_self(), DBG, via_body::error, sip_msg::first_line, HDR_VIA2_F, via_body::host, via_body::i, dest_info::id, init_dest_info, L_ERR, L_NOTICE, len, _str::len, LOG, mod_response_cbks, msg_send(), parse_headers(), pkg_free, via_body::port, dest_info::proto, via_body::proto, PROTO_SCTP, PROTO_TCP, PROTO_TLS, msg_start::reply, reverse_hex2int(), s, _str::s, SIP_PORT, STATS_TX_RESPONSE, msg_start::statuscode, dest_info::to, msg_start::u, update_sock_struct_from_via(), via_param::value, sip_msg::via1, sip_msg::via2, and ZSW. Referenced by receive_msg(). |
|
||||||||||||||||||||
|
||||||||||||
|
Definition at line 110 of file forward.c. References DBG, find_si(), L_CRIT, L_ERR, len, LOG, sockaddr_union::s, si, sockaddru_len, and su2ip_addr(). Referenced by get_send_socket(). |
|
||||||||||||||||
|
Definition at line 159 of file forward.c. References socket_info::address, ip_addr::af, bind_address, DBG, find_si(), sip_msg::force_send_socket, get_out_socket(), L_CRIT, L_ERR, L_WARN, likely, LOG, mhomed, socket_info::port_no, socket_info::proto, PROTO_SCTP, PROTO_TCP, PROTO_TLS, PROTO_UDP, sockaddr_union::s, SI_IS_MCAST, socket_info::socket, and unlikely. Referenced by add_uac(), build_req_buf_from_sip_req(), do_action(), forward_request(), msg_send(), natping_contact(), pingClients(), select_next_hop_src_ip(), and uri2dst(). |
|
||||||||||||||||
|
Definition at line 100 of file forward.h. References buf, get_send_socket(), L_CRIT, L_ERR, L_WARN, len, likely, LOG, dest_info::proto, PROTO_UDP, sctp_msg_send(), dest_info::send_sock, SI_IS_MCAST, tcp_send(), dest_info::to, udp_send(), and unlikely. Referenced by forward_reply(), forward_request(), natping_contact(), reply_received(), send_pr_buffer(), and sl_send_reply(). |
|
||||||||||||||||
|
Definition at line 527 of file forward.c. References DBG, via_body::host, hostent2su(), L_NOTICE, _str::len, LOG, sip_msg::msg_flags, via_body::port, via_body::proto, sip_msg::rcv, via_body::received, via_body::rport, _str::s, sip_resolvehost, receive_info::src_port, str, str2s(), via_param::value, and sip_msg::via1. Referenced by forward_reply(), init_rb(), and sl_send_reply(). |
1.3.9.1