討論串[問題] libpcap 顯示封包來源
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 5→)留言6則,0人參與, 最新作者visor (~~~~~~~~~~)時間16年前 (2010/06/10 11:28), 編輯資訊
0
0
1
內容預覽:
給你看一下 inet_ntoa 的 code 吧. #define INET_NTOA_MAX_LEN 16 /* max 12 digits + 3 '.'s + 1 nul */. char *inet_ntoa_r(struct in_addr in, char buf[INET_NTOA_M
(還有621個字)

推噓2(2推 0噓 7→)留言9則,0人參與, 最新作者septemhill (冰淇淋乾杯)時間16年前 (2010/06/10 11:19), 編輯資訊
0
0
1
內容預覽:
程式碼如下:. 在Linux平台上開發,使用libpcap-0.94. http://nopaste.csie.org/5ad1b. 目前在我程式碼中有註解了兩個地方:/* 1 *//* 2 */. 兩個地方顯示出來的結果似乎怪怪的. 把inet_ntoa(daddr)和inet_ntoa(sad
首頁
上一頁
1
下一頁
尾頁