View previous topic :: View next topic |
Author |
Message |
A_380_2009
Joined: 22 Mar 2012 Posts: 17
|
Posted: Tue Jul 10, 2012 3:00 am Post subject: About the macro NAT-PMP and ENABLE_NATPMP |
|
|
Hello:
In the file of miniupnpd.conf ,it includes:
Code: | # enable NAT-PMP support (default is no)
#enable_natpmp=yes |
In the file of config.h ,it includes:
/* Comment the following line to disable NAT-PMP operations */
Code: | #define ENABLE_NATPMP |
My question is:
Do they have the same functions?
If I want to realize the feature about Port Mapping, do they all need uncomment?
Thanks. |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1593
|
Posted: Tue Jul 10, 2012 10:13 am Post subject: |
|
|
config.h defines what is compiled or not into the binary.
disabling features helps keep binary weight low
miniupnpd.conf options are runtime options.
So to have NAT-PMP support enabled, one need :
1) Compile with #define ENABLE_NATPMP in config.h
2) Enable option with enable_natpmp=yes in configuration _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
A_380_2009
Joined: 22 Mar 2012 Posts: 17
|
Posted: Mon Jul 16, 2012 3:48 pm Post subject: |
|
|
Well,thank you for your reply.
BTW,would you please tell me that if I comment
Code: | #define ENABLE_NATPMP |
and set
Does the upnp will realize the NAT port mapping feature?
I understand that the ENABLE_NATPMP and enable_natpmp was set for mac...
Am I right?
Thank you very much! |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1593
|
Posted: Mon Jul 16, 2012 4:18 pm Post subject: |
|
|
if either ENABLE_NATPMP is undefinded (ie commented)
or configuration is
enable_natpmp=no, then NAT PMP will not be available.
NAT PMP was designed by apple and is integrated in Apple line of product, but its usage is not restricted to Macs.
Many software runing under MS Windows do support NAT PMP now. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
|