SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
36.
pcapファイルも読み込みたい
• ファイルポインタで基本どうり
にファイル開いてパケットを書
き込む時はパケットの先頭に
pcapパケットヘッダを追加する
だけ
• この機能が一番簡単に実装でき
たからL2で送信する機能より先
に取りかかっとけば簡単だし作
業加速したかも
magic
number
major
version minor
version
time
zorne
sigfigs
snaplen
link
type
pcap file header
timestamp
caplen
len
pcap packet header