본문 바로가기

Research/Network9

ubuntu 에서 /etc/resolv.conf 수정 ubuntu에서 /etc/resolv.con를 직접 수정하면 안됨. /etc/resolvconf/resolv.conf.d/base 파일을 수정하면 적용됨. 2013. 4. 22.
ubuntu network 설정을 /etc/network/interface 파일로 사용하고 싶을때 Network Manager 자동 시작 제거 sudo update-rc.d -f NetworkManager remove network-manager-gnome 을 제거 2013. 4. 22.
Boost socket performance on Linux http://www.ibm.com/developerworks/linux/library/l-hisock/index.html 2011. 10. 25.
How to enable IP Forwarding in Linux http://www.ducea.com/2006/08/01/how-to-enable-ip-forwarding-in-linux/ How to enable IP Forwarding in Linux By default any modern Linux distributions will have IP Forwarding disabled. This is normally a good idea, as most peoples will not need IP Forwarding, but if we are setting up a Linux router/gateway or maybe a VPN server (pptp or ipsec) or just a plain dial-in server then we will need to en.. 2009. 10. 13.
tcpdump sh4 cross-compile 먼저 libpcap 라이브러리를 사용하므로 libpcap-1.0.0 을 다운로드해서 컴파일한다. configure를 아래와 같이 수정해 주어야 한다. linux) { echo "$as_me:$LINENO: checking Linux kernel version" >&5 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; } if test "$cross_compiling" = yes; then if test "${ac_cv_linux_vers+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else #ac_cv_linux_vers=unknown ac_cv_linux_vers=2 fi 위와 같이 수정하지 .. 2009. 5. 22.
tcp packet을 받을때 커널의 흐름 출처: http://www.tldp.org/HOWTO/KernelAnalysis-HOWTO-8.html We'll see now an example of what happens when we send a TCP packet to Linux, starting from ''netif_rx [net/core/dev.c]'' call. Interrupt management: "netif_rx" |netif_rx |__skb_queue_tail |qlen++ |* simple pointer insertion * |cpu_raise_softirq |softirq_active(cpu) |= (1 protocol == ptype) // what is the network protocol |ptype->func -> i.. 2008. 11. 26.