From 4a7f97c7f3275c7918acc282f6c710ae89739a58 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 22 Mar 2014 13:12:10 +0100 Subject: [PATCH] miniupnpd/pcp_msg_struct.h: comments --- miniupnpd/pcp_msg_struct.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;