Browse code

- added src_port in WARNING:

Andrei Pelinescu-Onciul authored on 24/02/2003 17:06:29
Showing 1 changed files
... ...
@@ -225,9 +225,11 @@ static char * warning_builder( struct sip_msg *msg, unsigned int *returned_len)
225 225
 	else
226 226
 		foo=&(msg->first_line.u.request.uri);
227 227
 	print_len=snprintf(buf+fix_len, MAX_WARNING_LEN-fix_len,
228
-		"pid=%d req_src_ip=%s in_uri=%.*s out_uri=%.*s via_cnt%c=%d\"",
228
+		"pid=%d req_src_ip=%s req_src_port=%d in_uri=%.*s out_uri=%.*s"
229
+		" via_cnt%c=%d\"",
229 230
 		my_pid(),
230 231
 		ip_addr2a(&msg->rcv.src_ip),
232
+		ntohs(msg->rcv.src_port),
231 233
 		msg->first_line.u.request.uri.len, msg->first_line.u.request.uri.s,
232 234
 		foo->len, foo->s, 
233 235
 		msg->parsed_flag & HDR_EOH ? '=' : '>', /* should be = */