12345678910111213141516171819202122 |
- Index: portmap.c
- ===================================================================
- --- portmap.c (revision 877)
- +++ portmap.c (working copy)
- @@ -210,7 +210,7 @@
-
- if (*ip_hdr == NULL) {
- return 0;
- - } else if ((*ip_hdr)->ip_p == htons(IPPROTO_TCP)) {
- + } else if ((*ip_hdr)->ip_p == IPPROTO_TCP) {
- tcp_hdr = (tcp_hdr_t *)get_layer4(*ip_hdr);
-
- /* check if we need to remap the destination port */
- @@ -227,7 +227,7 @@
- changes ++;
- }
-
- - } else if ((*ip_hdr)->ip_p == htons(IPPROTO_UDP)) {
- + } else if ((*ip_hdr)->ip_p == IPPROTO_UDP) {
- udp_hdr = (udp_hdr_t *)get_layer4(*ip_hdr);
-
- /* check if we need to remap the destination port */
|