Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!rpi!zaphod.mps.ohio-state.edu!ub!acsu.buffalo.edu From: oday@acsu.buffalo.edu (abdi m oday) Newsgroups: comp.protocols.tcp-ip Subject: Reading IP packets via sockets Message-ID: <35425@eerie.acsu.Buffalo.EDU> Date: 10 Sep 90 15:06:03 GMT Sender: news@acsu.Buffalo.EDU Organization: SUNY Buffalo Lines: 22 Nntp-Posting-Host: autarch.acsu.buffalo.edu Hi folks. I need to write a user program that reads all ip packets on the local LAN. I think I can do this using NIT (network Interface Tap) but since this code is ultimately going to run on a MVME-147 board running VxWorks, I'd like to do this with raw sockets since I know they support sockets. My question is, can raw sockets be used to read all packets ? Will the IP layer pass things to the socket even though the packet might not be addressed to the socket, or to the machine itself ( I intend to use the "promisc mode"). I'd appreciate any help with this. thanks -Abdi oday@acsu.buffalo.edu (716) 631-6848