請問可以用open(), write(), read()對 eth嗎? - Linux

Table of Contents

各位大大好


小弟目前想要對 ethernet 孔丟接資料,

之前是使用libpcap,都順利運作,

可是因為速度不夠快,

想改成直接用system call 也就是

open(), write(), read() 對eth1

有無可能嗎?

目前遇到的第一個困境是我找不到這個device在哪Orz

我使用的OS是CentOs

感謝!

--

All Comments

Rebecca avatarRebecca2010-10-09
去看看libpcap是怎麼寫的啊
Rae avatarRae2010-10-14
借台ixia或smartbit試試看吧