CHUNGYUN / flylinkdc

Automatically exported from code.google.com/p/flylinkdc
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

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

0x09135935 "WAN Device</friendlyName>
<manufacturer>NETGEAR, Inc.</manufacturer>
<manufacturerURL>http://www.NETGEAR.com</manufacturerURL>
<modelDescription>NETGEAR WNR3500L N300 Wireless Gigabit 
Router</modelDescription>
<modelNumber>WNR3500L</modelNumber>
<modelName>WNR3500L</modelName>
<modelURL>http://www.netgear.com/Products/RoutersandGateways/RangeMaxNEXTWireles
sRoutersandGateways/WNR3500L.aspx</modelURL>
<UDN>uuid:281decff-7d48-a95d-383f-2b37ef72052e</UDN>
<iconList>
<icon>
<mimetype>image/x-icon</mimetype>
<width>64</width>
<height>64</height>
<depth>32</depth>
<url>http://192.168.1.1/upnp.ico</url>
</icon>
</iconList>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1</serviceTyp
e>
<serviceId>urn:upnp-org:serviceId:WANCommonIFC1</serviceId>
<SCPDURL>/Public_UPNP_WAND.xml</SCPDURL>
<controlURL>/Public_UPNP_C2</controlURL>
<eventSubURL>/Public_UPNP_Event_2</eventSubURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:schemas-upnp-org:device:WANConnectionDevice:1</deviceType>
<friendlyName>WAN Connection Device</friendlyName>
<manufacturer>NETGEAR, Inc.</manufacturer>
<manufacturerURL>http://www.NETGEAR.com</manufacturerURL>
<modelDescription>NETGEAR WNR3500L N300 Wireless Gigabit 
Router</modelDescription>
<modelNumber>WNR3500L</modelNumber>
<modelName>WNR3500L</modelName>
<modelURL>http://www.netgear.com/Products/RoutersandGateways/RangeMaxNEXTWireles
sRoutersandGateways/WNR3500L.aspx</modelURL>
<UDN>uuid:390c27a2-00c9-b46b-3949-ea477799a19e</UDN>
<iconList>
<icon>
<mimetype>image/x-icon</mimetype>
<width>64</width>
<height>64</height>
<depth>32</depth>
<url>http://192.168.1.1/upnp.ico</url>
</icon>
</iconList>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:WANEthernetLinkConfig:1</serviceType>
<serviceId>urn:upnp-org:serviceId:WANEthLinkC1</serviceId>
<SCPDURL>/Public_UPNP_WANEtherLinkCfg.xml</SCPDURL>
<controlURL>/Public_UPNP_C4</controlURL>
<eventSubURL>/Public_UPNP_Event_4</e

Original issue reported on code.google.com by Pavel.Pimenov@gmail.com on 21 Aug 2013 at 5:10

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

Original comment by Pavel.Pimenov@gmail.com on 21 Aug 2013 at 5:13