miniupnpd: PCP Add support for ANNOUNCE requests

This commit is contained in:
Thomas Bernard 2014-02-03 10:50:29 +01:00
parent 46905418ca
commit 538c002373
2 changed files with 8 additions and 1 deletions

View File

@ -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: 2013/12/16:
Attempt to compile with OS X/pf Attempt to compile with OS X/pf

View File

@ -1086,6 +1086,10 @@ static int processPCPRequest(void * req, int req_size, pcp_info_t *pcp_msg_info)
/* RFC 6887 PCP support /* RFC 6887 PCP support
* http://tools.ietf.org/html/rfc6887 */ * http://tools.ietf.org/html/rfc6887 */
switch ( common_req->r_opcode & 0x7F) { 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: case PCP_OPCODE_MAP:
remainingSize -= sizeof(pcp_map_v2_t); remainingSize -= sizeof(pcp_map_v2_t);