20160901_jeffrey - silenceuncrio/diary GitHub Wiki

Index

  • 0915 - wanst_eth.cgi
  • 1025 - commit - Add wanst_eth.cgi - Add wanst_eth.html
  • 1030 - ariel 刪掉 client_dhcp6_lease_info 裡的 elements
  • 1125 - commit - stop to offer dhcp6c_lease_info related information
  • 1405 - commit - improve wanst_eth.html
  • 1455 - commit - improve wanst_eth.html

0915

先以 wanst.cgi 為最貼近 icos 的基礎

再額外提供一個更貼近實際面的 wanst_eth.cgi 來符合原設計者 john 的設計

  • 加上 active field
  • 如果 szIfName 是空字串的話那就不用讓使用者作修改
  • szIfName 在 web 畫面不用顯示出來

之所以稱為 wanst_eth.cgi 就是該 cgi 只提供 wanst module 的 eth 相關 API

1025

Revision: 475
Author: jeffrey
Date: 2016年9月1日 上午 09:46:27
Message:
Add wanst_eth.cgi
- CGI for ethernet related configuration in MODULE_WANST
- act=get done
- act=apply wait for implementing

----
Modified : /fsl-release-bsp/proscend/prosrc/webcgi/Makefile
Added : /fsl-release-bsp/proscend/prosrc/webcgi/wanst_eth.c
Revision: 477
Author: jeffrey
Date: 2016年9月1日 上午 10:25:28
Message:
Add wanst_eth.html
- web page for ethernet related configuration in MODULE_WANST

----
Added : /fsl-release-bsp/proscend/prosrc/www/wanst_eth.html

1030

icos_shm.h

typedef struct _client_dhcp6_lease_info_
{
	char ifname[NETDEV_NAME_LEN];
	char addr6[IP6_ADDR_LEN];
	char addr6_PD[IP6_ADDR_LEN];
	char addr6_lan[IP6_ADDR_LEN];
	unsigned int plen_lan;
	unsigned int plen;
	unsigned int plen_PD;
	char dns[MAX_DNS6_SRV_NUM][IP6_ADDR_LEN];
	char default_gw[IP6_ADDR_LEN];
	unsigned long IAID;
	unsigned int iaid_type;
	unsigned int RenewTime_PD;
	unsigned int RebindTime_PD;
	char linklocal[IP6_ADDR_LEN];
	unsigned int lease_state;
	unsigned int TPreferredLife;
	unsigned int TValidLife;
	unsigned int TPreferredLife_PD;
	unsigned int TValidLife_PD;
	lease_info_type lease_type;
	unsigned info_refresh_tm;
	int mtu;
} client_dhcp6_lease_info;

ariel 表示她想刪掉 client_dhcp6_lease_info 裡的

  • unsigned long IAID
  • unsigned int iaid_type
  • unsigned info_refresh_tm

但目前 CGI 的 web_lan.c 有使用到這些訊息讓 compile 失敗

1125

Revision: 478
Author: jeffrey
Date: 2016年9月1日 上午 10:38:16
Message:
- stop to offer `dhcp6c_lease_info` related information at jsobj_addipv6()
- wait for icos part finished

----
Modified : /fsl-release-bsp/proscend/prosrc/webcgi/web_lan.c
Revision: 480
Author: jeffrey
Date: 2016年9月1日 上午 11:04:39
Message:
improve wanst_eth.html
- use "ng-disabled" to control each input field "disabled" attribute base on the value of "user.active"

----
Modified : /fsl-release-bsp/proscend/prosrc/www/wanst_eth.html

1405

Revision: 484
Author: jeffrey
Date: 2016年9月1日 下午 01:57:09
Message:
improve wanst_eth.html
- offer a method to get the debug information
- use AngularJS ng-cloak directive to prevent the application from flicker at page load

----
Modified : /fsl-release-bsp/proscend/prosrc/www/wanst_eth.html

1455

Revision: 485
Author: jeffrey
Date: 2016年9月1日 下午 02:50:32
Message:
improve wanst_eth.html
- offer multi-language support 

----
Modified : /fsl-release-bsp/proscend/prosrc/www/wanst_eth.html

不過 angular 要支援 多國語言可以參考 angular translate

就不用自己再重新打造了