Re: Access packets directly from NIC

2012-10-31 Thread Виталий Туровец
2012/10/31 Jack Mc Lauren jack.mclau...@yahoo.com:
 Hello FreeBSD users !

 How can i access and check packets directly from NIC ?

 Regards,
 Jack
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

I believe that easiest way is using tcpdump.
Also you should specify what you mean by 'accessing packets': is it
the need to view raw packet data, or what? :)

-- 




~~~
WBR,
Vitaliy Turovets
NOC Lead @TV-Net ISP
NOC Lead @Service Outsourcing company
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Access packets directly from NIC

2012-10-31 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Wed Oct 31 06:29:57 2012
 From: =?UTF-8?B?0JLQuNGC0LDQu9C40Lkg0KLRg9GA0L7QstC10YY=?=
  core...@corebug.net
 Date: Wed, 31 Oct 2012 13:29:05 +0200
 Subject: Re: Access packets directly from NIC
 To: Jack Mc Lauren jack.mclau...@yahoo.com
 Cc: FreeBSD Global Users Mailing List freebsd-questions@freebsd.org

 2012/10/31 Jack Mc Lauren jack.mclau...@yahoo.com:
  Hello FreeBSD users !
 
  How can i access and check packets directly from NIC ?
 
  Regards, Jack

 I believe that easiest way is using tcpdump. Also you should specify what 
 you mean by 'accessing packets': is it the need to view raw packet data, 
 or what? :)


tcpdump is _the_ tool for this for command-line use.

For access from within a program, 'man bpf'.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Access packets directly from NIC

2012-10-31 Thread Jack Mc Lauren
I believe that easiest way is using tcpdump.
Also you should specify what you mean by 'accessing packets': is it
the need to view raw packet data, or what? :)

Yes, i need to view raw packets and check their protocol, e.g. whether they are 
ICMP packets or something else ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org