From 538c002373eaf2fe44325ce4f791f04d8c1df072 Mon Sep 17 00:00:00 2001 From: Thomas Bernard <miniupnp@free.fr> Date: Mon, 3 Feb 2014 10:50:29 +0100 Subject: [PATCH] miniupnpd: PCP Add support for ANNOUNCE requests --- miniupnpd/Changelog.txt | 5 ++++- miniupnpd/pcpserver.c | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/miniupnpd/Changelog.txt b/miniupnpd/Changelog.txt index f2761ea..9683ace 100644 --- a/miniupnpd/Changelog.txt +++ b/miniupnpd/Changelog.txt @@ -1,4 +1,7 @@ -$Id: Changelog.txt,v 1.346 2013/12/13 13:41:52 nanard Exp $ +$Id: Changelog.txt,v 1.348 2014/02/03 09:32:09 nanard Exp $ + +2014/02/03: + PCP : Add support for ANNOUNCE requests 2013/12/16: Attempt to compile with OS X/pf diff --git a/miniupnpd/pcpserver.c b/miniupnpd/pcpserver.c index d79609b..9b11361 100644 --- a/miniupnpd/pcpserver.c +++ b/miniupnpd/pcpserver.c @@ -1086,6 +1086,10 @@ static int processPCPRequest(void * req, int req_size, pcp_info_t *pcp_msg_info) /* RFC 6887 PCP support * http://tools.ietf.org/html/rfc6887 */ switch ( common_req->r_opcode & 0x7F) { + case PCP_OPCODE_ANNOUNCE: + /* should check PCP Client's IP Address in request */ + /* see http://tools.ietf.org/html/rfc6887#section-14.1 */ + break; case PCP_OPCODE_MAP: remainingSize -= sizeof(pcp_map_v2_t);