What replaced socket(AF_INET,SOCK_PACKET....

What replaced socket(AF_INET,SOCK_PACKET....

Post by Tristan Colga » Tue, 02 Nov 1999 04:00:00


  Im in the process of writing some network analyzing code
and cant track down what Im supposed to use instead of the
packet socket for getting datalink layer info.

  Ive seen sockaddr_ll floating around, but that seems to
be packet socket related, Ive tried AF_PACKET instead of
AF_INET, doesnt seem to have any effect on the network
interfaces I get back from the ioctls, they still seem
to be AF_INET ones (admittedly thats all I have on the box
but I expected the returned interfaces to be AF_PACKET).

  Im totally new to all this, so forgive me if Im talking
shit, I just cant find anything that doesnt use the
apparently obselete (according to the kernel messages I
keep seeing) interface.


ICQ# 645908  |  PGP6 Key available on request.
CV available at http://www.aghh.freeserve.co.uk/cv.html
  "You can get all your daily vitamins from 43 pints of
Guinness and a glass of milk" - a usenet sig.


1. AF_INET socket problem


Last night I terminated a program that was listening on a socket, but its
entry didn't disappear from the netstat table, so I couldn't re-use the port
number without rebooting.  I seem to remember this happening before, a while
ago - is there a fix for this or is it just me being terminally thick?




[ Ian Chard, Systems Integration |  "I did know someone who liked Bros, but   ]

2. server ppp

3. Buffering in SOCK_PACKET sockets

4. xconfigurator

5. Does socket(AF_INET, SOCK_RAW, 0) work on Solaris/Sparc?

6. Tyan Thunder S1836DLUAN-GX

7. Establishing two way communications with AF_INET sockets

8. MIME type for Live3D

9. BUG? Data lost closing AF_INET sockets.

10. SOCK_PACKET sockets

11. Buffering in SOCK_PACKET sockets

12. Binding an IPv6 address to an AF_INET socket?

13. Problem with Socket Programming (AF_INET Type)