Waiting for the wind

programming memo in different platforms

「networking」分類文章彙整

stray ‘\’ in program

發文作者 cotton5415 於 九月 13, 2007

problem
compiling error:

mmi_gfx_macro.h:21: parse error before `{‘
mmi_gfx_macro.h:21: stray ‘\’ in program
mmi_gfx_macro.h:22: stray ‘\’ in program

root cause
Possibly \ at “end" of a CRLF terminated line is not seen as
line-continued?
solution:
%dos2unix <your_c_file>

發表於 Debian's Road, Embedded system's Road, Fedora Core 6's Road, MAC OS X's Road, network programming, networking | 張貼留言 »

tcpdump network packets

發文作者 cotton5415 於 五月 30, 2007

sudo tcpdump -vvv -XX -s 2000 -i eth0 tcp port 80 -l > dat

-s 2000: snarf data size = 2000 bytes
-i eth0: interface = eth0

發表於 Debian's Road, Fedora Core 6's Road, networking | 張貼留言 »

 
Follow

Get every new post delivered to your Inbox.