Browse code

-more port order fixes (seems I overwritten a file with the old version...)

Andrei Pelinescu-Onciul authored on 06/04/2003 22:39:04
Showing 3 changed files
... ...
@@ -18,7 +18,7 @@
18 18
 VERSION = 0
19 19
 PATCHLEVEL = 8
20 20
 SUBLEVEL =   11
21
-EXTRAVERSION = pre12
21
+EXTRAVERSION = pre13
22 22
 
23 23
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
24 24
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")
... ...
@@ -30,6 +30,7 @@
30 30
  * 2001-??-?? created by andrei
31 31
  * ????-??-?? lots of changes by a lot of people
32 32
  * 2003-02-11 added inline msg_send (andrei)
33
+ * 2003-04-07 changed all ports to host byte order (andrei)
33 34
  */
34 35
 
35 36
 
... ...
@@ -60,8 +61,8 @@ int update_sock_struct_from_via( union sockaddr_union* to,
60 60
 /* use src_ip, port=src_port if rport, via port if via port, 5060 otherwise */
61 61
 #define update_sock_struct_from_ip(  to, msg ) \
62 62
 	init_su((to), &(msg)->rcv.src_ip, \
63
-			((msg)->via1->rport)?htons((msg)->rcv.src_port): \
64
-			((msg)->via1->port)?htons((msg)->via1->port): htons(SIP_PORT) )
63
+			((msg)->via1->rport)?(msg)->rcv.src_port: \
64
+			((msg)->via1->port)?(msg)->via1->port: SIP_PORT )
65 65
 
66 66
 int forward_reply( struct sip_msg* msg);
67 67
 
... ...
@@ -29,6 +29,7 @@
29 29
  * History:
30 30
  * --------
31 31
  *  2003-02-13  added struct dest_info (andrei)
32
+ *  2003-04-06  all ports are stored/passed in host byte order now (andrei)
32 33
  */
33 34
 
34 35
 #ifndef ip_addr_h