VirtualBox

Changeset 49017 in vbox


Ignore:
Timestamp:
Oct 10, 2013 12:24:28 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89763
Message:

G/c leftover #if0'ed static port-forwarding used for testing.

Location:
trunk/src/VBox/NetworkServices/NAT
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/fwtcp.c

    r49016 r49017  
    8080fwtcp_init(void)
    8181{
    82 #if 0
    83     struct fwspec fw_echo;
    84     struct fwspec fw_daytime;
    85     struct fwspec fw_chargen;
    86     struct fwspec fw_ssh;
    87 
    88 
    89 #define FWSPEC_INIT_TCP4(fwspec, dst_port) do {                 \
    90         int __status;                                           \
    91         __status = fwspec_set((fwspec), PF_INET, SOCK_STREAM,   \
    92                                "0.0.0.0", 30000 + (dst_port),   \
    93                                PROXY_GUEST_IPV4, (dst_port));   \
    94         LWIP_ASSERT1(__status == 0);                            \
    95         LWIP_UNUSED_ARG(__status);                              \
    96     } while (0)
    97 
    98     FWSPEC_INIT_TCP4(&fw_echo,     7);
    99     FWSPEC_INIT_TCP4(&fw_daytime, 13);
    100     FWSPEC_INIT_TCP4(&fw_chargen, 19);
    101     FWSPEC_INIT_TCP4(&fw_ssh,     22);
    102 
    103 #undef FWSPEC_INIT_TCP4
    104 
    105     fwtcp_add(&fw_echo);
    106     fwtcp_add(&fw_daytime);
    107     fwtcp_add(&fw_chargen);
    108     fwtcp_add(&fw_ssh);
    109 #endif
     82    return;
    11083}
    11184
  • trunk/src/VBox/NetworkServices/NAT/fwudp.c

    r49016 r49017  
    111111fwudp_init(void)
    112112{
    113 #if 0
    114     struct fwspec fw_echo;
    115     struct fwspec fw_daytime;
    116     struct fwspec fw_chargen;
    117 
    118 #define FWSPEC_INIT_UDP4(fwspec, dst_port) do {                 \
    119         int __status;                                           \
    120         __status = fwspec_set((fwspec), PF_INET, SOCK_DGRAM,    \
    121                                "0.0.0.0", 30000 + (dst_port),   \
    122                                PROXY_GUEST_IPV4, (dst_port));   \
    123         LWIP_ASSERT1(__status == 0);                            \
    124         LWIP_UNUSED_ARG(__status);                              \
    125     } while (0)
    126 
    127     FWSPEC_INIT_UDP4(&fw_echo,     7);
    128     FWSPEC_INIT_UDP4(&fw_daytime, 13);
    129     FWSPEC_INIT_UDP4(&fw_chargen, 19);
    130 
    131 #undef FWSPEC_INIT_UDP4
    132 
    133     fwudp_add(&fw_echo);
    134     fwudp_add(&fw_daytime);
    135     fwudp_add(&fw_chargen);
    136 #endif
     113    return;
    137114}
    138115
  • trunk/src/VBox/NetworkServices/NAT/portfwd.h

    r48001 r49017  
    5555int fwany_ipX_addr_set_src(ipX_addr_t *, const struct sockaddr *);
    5656
    57 /* XXX: for testing */
    58 #ifdef VBOX
    59 #define PROXY_GUEST_IPV4 "10.0.2.15"
    60 #else
    61 #define PROXY_GUEST_IPV4 "192.168.2.11"
    62 #endif
    63 
    6457#endif /* _portfwd_h_ */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette