2010年10月26日 星期二

Linux Commands - iproute2

Use ip command to set the ip address

show the ip address eth0
# ip addr | grep eth0
2: eth0: mtu 1500 qdisc pfifo_fast qlen 100
0
inet 20.20.20.1/24 brd 20.20.20.255 scope global eth0
inet 10.0.0.1/24 brd 10.0.0.255 scope global eth0:0

reset the ip-address
# ip addr flush dev eth0

show the ip address eth0
# ip addr | grep eth0
2: eth0: mtu 1500 qdisc pfifo_fast qlen 100
0

set the ip-address eth0
# ip addr add 10.0.0.1/24 brd + dev eth0

show the ip address eth0
# ip addr | grep eth0
2: eth0: mtu 1500 qdisc pfifo_fast qlen 100
0
inet 10.0.0.1/24 brd 10.0.0.255 scope global eth0

Linux timestamp

Show/Translate Unix like timestam/human-readable-characters
http://www.epochconverter.com/

2010年10月10日 星期日

packet genrator program

List all the packet genrator program can running on the Windows XP.
* netool31 (japanese)
* Npg1.3.0
* engage packet builder (recommented)
http://www.engagesecurity.com/products/engagepacketbuilder/

* ColaSoft packet builder
http://www.colasoft.com/packet_builder/

Source Insight experience

If some data/function was not referenced in the viewing pages, we can press the following button to reload the whole project.
Project -> Synchronize Files -> Force all files to be re-parsed -> OK
Then the symbol table of whole project will be reload to reflect the accurate situations.


If we want to change the font size of viewing screen, we can select Options --> Document Options --> Screen Fonts. And there we can change the font size to favorite one.

2010年9月27日 星期一

Microsoft Project Tips

* Setting the project starting data to make the whole page into the printed page

2010年9月22日 星期三

Linux Command - wget,curl

some tools can communicate(get/post) with the web server (and others) without needing of user interaction

wget
can simulate the get/post client actions
>> wget example
# wget -v --proxy=on --passive-ftp -nd http://www.buildroot.org/downloads/$BUILDROOT_NAME.tar.bz2

>> guessing the cookie (userid=??) assigned by the web server
curl -sb userid=123456789 http://192.168.0.1/login.jsp | grep

2010年9月20日 星期一

IGMP protocol

>> Sending IGMP joint group packet
>> We can use the following socket and format
ret = setsockopt( socket, IPPROTO_IP, IP_ADD_MEMBERSHIP,
(char *)&ssdpMcastAddr, sizeof (struct ip_mreq) );