Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > tcpdump parse errors :P

tcpdump parse errors :P
Thread Tools
Mac Enthusiast
Join Date: Aug 2001
Location: planet express
Status: Offline
Reply With Quote
Feb 16, 2003, 01:41 PM
 
can anyone explain why i keep getting those stupid "parse errors" with tcpdump?

example:

bitcrash# tcpdump -i en0 -n proto udp
tcpdump: parse error

whereas:

bitcrash# tcpdump -i en0 -n proto gre
tcpdump: listening on en0

would work with no errors.

so what´s the dealio?
"And Zapp Brannigan, your score qualifies you as assistant delivery boy, second class."
"Hmm. I guess I'll have to sleep my way to the top. Kif, wake me when I'm there."
     
Fresh-Faced Recruit
Join Date: Jan 2002
Status: Offline
Reply With Quote
Feb 17, 2003, 01:07 PM
 
'udp' needs to be escaped because udp is a keyword (RTF manpage).
'gre' doesn't need to because it isn't a keyword.

BTW, it also works if you drop the 'proto' keyword and the escape, ie:

tcpdump -i en0 -n udp
or
tcpdump -i en0 -n gre

Why the difference? *shrug*
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:20 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2