pavel-pimenov / flylinkdc-r5xx

flylinkdc-r5xx
GNU General Public License v2.0
55 stars 27 forks source link

[miniupnpc] - Достать имя роутера и скинуть его в лог + собрать статистику #1278

Open pavel-pimenov opened 9 years ago

pavel-pimenov commented 9 years ago

From Pavel.Pimenov@gmail.com on August 21, 2013 19:10:53

На моем роутере в miniupnpc\igd_desc_parse.c в функции void IGDdata(void * d, const char * data, int l) Поступает следующая информация:

0x09135935 "WAN Device

NETGEAR, Inc. http://www.NETGEAR.com NETGEAR WNR3500L N300 Wireless Gigabit Router WNR3500L WNR3500L http://www.netgear.com/Products/RoutersandGateways/RangeMaxNEXTWirelessRoutersandGateways/WNR3500L.aspx uuid:281decff-7d48-a95d-383f-2b37ef72052e image/x-icon 64 64 32 http://192.168.1.1/upnp.ico urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1 urn:upnp-org:serviceId:WANCommonIFC1 /Public_UPNP_WAND.xml /Public_UPNP_C2 /Public_UPNP_Event_2 urn:schemas-upnp-org:device:WANConnectionDevice:1 WAN Connection Device NETGEAR, Inc. http://www.NETGEAR.com NETGEAR WNR3500L N300 Wireless Gigabit Router WNR3500L WNR3500L http://www.netgear.com/Products/RoutersandGateways/RangeMaxNEXTWirelessRoutersandGateways/WNR3500L.aspx uuid:390c27a2-00c9-b46b-3949-ea477799a19e image/x-icon 64 64 32 http://192.168.1.1/upnp.ico urn:schemas-upnp-org:service:WANEthernetLinkConfig:1 urn:upnp-org:serviceId:WANEthLinkC1 /Public_UPNP_WANEtherLinkCfg.xml /Public_UPNP_C4 /Public_UPNP_Event_4
pavel-pimenov commented 9 years ago

From Pavel.Pimenov@gmail.com on August 21, 2013 10:13:02

Текущий код достает значение - WAN Device http://www.flickr.com/photos/96019675@N02/9565267260/

Status: Started