Shammer's Philosophy

My private adversaria

TCP

try tcprewrite

There is a packet re-sending tool, named tcpreplay tried at this article before. And there is a case also to modify the L2/L3 information of those packets. There is a tool to do it, it is tcprewrite. I tried to generate a Lisp script like …

try tcpreplay

Steps capture packet which I need to re-send check above step packet by tcpdump -r XXX.pcap -X tcpreplay -i $ETH_NAME $CAPTURED_PACKET packet capturing record open 2 terminal windows execute "tcpdump -i $ETH_NAME $FILTER" at one window exe…

Socket 構造体

C TCP

いくつかのサイト等参考にして、C で EchoServer などの簡単なプログラムを書いてきたけれども、似たような名前の構造体がたくさん出てきて、おまじない感覚で書いているので少し調べてみた。大きく、以下の3つがあるようだ。 sockaddr in_addr sockaddr_in…

TCP Socket 状態遷移

TCP

詳しく書かれたサイトを見つけたのでメモ。 第15回 信頼性のある通信を実現するTCPプロトコル(2) (3/3):基礎から学ぶWindowsネットワーク - @IT 第16回 信頼性のある通信を実現するTCPプロトコル(3) (3/4):基礎から学ぶWindowsネットワーク - @IT詳…