/* $Id: testminissdpd.c,v 1.7 2012/05/02 10:28:25 nanard Exp $ */ /* Project : miniupnp * website : http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * Author : Thomas BERNARD * copyright (c) 2005-2007 Thomas Bernard * This software is subjet to the conditions detailed in the * provided LICENCE file. */ #include #include #include #include #include #include #define DECODELENGTH(n, p) n = 0; \ do { n = (n << 7) | (*p & 0x7f); } \ while(*(p++)&0x80); void printresponse(const unsigned char * resp, int n) { int i, l; unsigned int nresp; const unsigned char * p; for(i=0; i