diff --git a/miniupnpd/pcp_msg_struct.h b/miniupnpd/pcp_msg_struct.h index bb557bc..0d5f912 100644 --- a/miniupnpd/pcp_msg_struct.h +++ b/miniupnpd/pcp_msg_struct.h @@ -178,12 +178,12 @@ typedef struct pcp_options_hdr { /* same for both request and response */ typedef struct pcp_map_v2 { uint32_t nonce[3]; - uint8_t protocol; + uint8_t protocol; /* 6 = TCP, 17 = UDP, 0 = 'all protocols' */ uint8_t reserved[3]; - uint16_t int_port; - uint16_t ext_port; - struct in6_addr ext_ip; /* ipv4 will be represented - by the ipv4 mapped ipv6 */ + uint16_t int_port; /* 0 indicates 'all ports' */ + uint16_t ext_port; /* suggested external port */ + struct in6_addr ext_ip; /* suggested external IP address + * ipv4 will be represented by the ipv4 mapped ipv6 */ uint8_t next_data[0]; } pcp_map_v2_t;