Opened 4 years ago

Closed 4 years ago

#1127 closed (fixed)

Please update src/router/upnp/src/linux/linux_osl.c with the following

Reported by: sharo Owned by: somebody
Keywords: Cc:

Description

Line 487: upnp_osl_wan_link_status(): uint if_up=0; <=> uint if_up=1; ETHTOOL not supported Line 522: upnp_osl_wan_max_bitrates(...): *rx=*tx=100*1000000; return TRUE; ETHTOOL not supported

This will allow XP to report link speed, duration, IGD packets statistics. Also in igd_pri_wan_var(), replace

if(unit==10)
 unit=0;
snprintf(prefix,len,"wan%d_%s",unit,var);

with

if(unit==10)
 snprintf(prefix,len,"wan_%s",var);
else
 snprintf(prefix,len,"wan%d_%s",unit,var);

File linux_main.c, line 102: snprintf(prefix,sizeof(prefix), "wan%d_",wan_primary_ifunit()); with snprintf(prefix,sizeof(prefix),"wan_"); LAME :)

also second line of wanif= nvram_safe_get("pppoe_ifname"):\ no wan_pppoe_ifname in nvram

however the memory leak still remains

Change History (3)

comment:1 Changed 4 years ago by olmari

I agree!

I miss those stats in DD-WRT... Also I have suggested using MiniUPnPd but make v24sp2 working flawlessly first ;)

comment:2 Changed 4 years ago by BrainSlayer

the function igd_pri_wan_var is unused by the code. this change makes no sense.

comment:3 Changed 4 years ago by BrainSlayer

  • Resolution set to fixed
  • Status changed from new to closed

the change in linux_main.c is useless too, the wan interface is given by the commandline (-W)

upnp -D -W ppp0 for instance is used by dd-wrt of pppoe is configured

Note: See TracTickets for help on using tickets.