From ab2533ea979de2a2087b0fcf15d494a9a33ce5a2 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Thu, 23 Jun 2011 17:45:45 +0000 Subject: [PATCH] * Add PnP-X info for a couple more models. --- minidlna.c | 18 ++++++++++++------ upnpglobalvars.h | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/minidlna.c b/minidlna.c index 1e2301a..de01adb 100644 --- a/minidlna.c +++ b/minidlna.c @@ -264,22 +264,28 @@ getfriendlyname(char * buf, int len) } } fclose(info); + memcpy(pnpx_hwid+4, "01F2", 4); if( strcmp(modelnumber, "NVX") == 0 ) - memcpy(pnpx_hwid+4, "01F2&DEV_0101", 17); + memcpy(pnpx_hwid+17, "0101", 4); else if( strcmp(modelnumber, "Pro") == 0 || strcmp(modelnumber, "Pro 6") == 0 || strncmp(modelnumber, "Ultra 6", 7) == 0 ) - memcpy(pnpx_hwid+4, "01F2&DEV_0102", 17); + memcpy(pnpx_hwid+17, "0102", 4); else if( strcmp(modelnumber, "Pro 2") == 0 || strncmp(modelnumber, "Ultra 2", 7) == 0 ) - memcpy(pnpx_hwid+4, "01F2&DEV_0103", 17); + memcpy(pnpx_hwid+17, "0103", 4); else if( strcmp(modelnumber, "Pro 4") == 0 || strncmp(modelnumber, "Ultra 4", 7) == 0 ) - memcpy(pnpx_hwid+4, "01F2&DEV_0104", 17); + memcpy(pnpx_hwid+17, "0104", 4); else if( strcmp(modelnumber+1, "100") == 0 ) - memcpy(pnpx_hwid+4, "01F2&DEV_0105", 17); + memcpy(pnpx_hwid+17, "0105", 4); else if( strcmp(modelnumber+1, "200") == 0 ) - memcpy(pnpx_hwid+4, "01F2&DEV_0106", 17); + memcpy(pnpx_hwid+17, "0106", 4); + /* 0107 = Stora */ + else if( strcmp(modelnumber, "Duo v2") == 0 ) + memcpy(pnpx_hwid+17, "0108", 4); + else if( strcmp(modelnumber, "NV+ v2") == 0 ) + memcpy(pnpx_hwid+17, "0109", 4); #else char * logname; logname = getenv("LOGNAME"); diff --git a/upnpglobalvars.h b/upnpglobalvars.h index 0b52075..a851965 100644 --- a/upnpglobalvars.h +++ b/upnpglobalvars.h @@ -56,7 +56,7 @@ #include -#define MINIDLNA_VERSION "1.0.20" +#define MINIDLNA_VERSION "1.0.20.1" #ifdef NETGEAR # define SERVER_NAME "ReadyDLNA"