port-rewrite.patch 726 B

12345678910111213141516171819202122
  1. Index: portmap.c
  2. ===================================================================
  3. --- portmap.c (revision 877)
  4. +++ portmap.c (working copy)
  5. @@ -210,7 +210,7 @@
  6. if (*ip_hdr == NULL) {
  7. return 0;
  8. - } else if ((*ip_hdr)->ip_p == htons(IPPROTO_TCP)) {
  9. + } else if ((*ip_hdr)->ip_p == IPPROTO_TCP) {
  10. tcp_hdr = (tcp_hdr_t *)get_layer4(*ip_hdr);
  11. /* check if we need to remap the destination port */
  12. @@ -227,7 +227,7 @@
  13. changes ++;
  14. }
  15. - } else if ((*ip_hdr)->ip_p == htons(IPPROTO_UDP)) {
  16. + } else if ((*ip_hdr)->ip_p == IPPROTO_UDP) {
  17. udp_hdr = (udp_hdr_t *)get_layer4(*ip_hdr);
  18. /* check if we need to remap the destination port */