Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Nov 1996 11:05:10 -0500 (EST)
From:      Chris Madison <cmadison@tippy2.vnet.net>
To:        questions@freebsd.org
Subject:   socket(), PF_ROUTE, SOCK_RAW question
Message-ID:  <Pine.BSI.3.95.961124105546.14419L-100000@tippy2.vnet.net>

next in thread | raw e-mail | index | archive | help

Hello freebsd ppl!

I've been trying to understand some of the arp code in relation to why I
get the cannot intuit message when adding a host via arp -s.  Basically in
arp.c, function rtmsg(), a socket is written to and read from.  Socket(2)
is called with the PF_ROUTE, SOCK_RAW options earlier in the code;
contained in function getsocket(). Okay, now I know the buffer being
written to the socket contains the correct information in the field that
I am interested in, but after the read the info is no longer there.  The #
bytes written is 108 and the amount read is 128, which is the struct
rt_msghdr size.  Finally to my question, what goes on when the socket is
written to?  More specifically is the info processed in any way so that
when the read is executed the info should be changed?????  Or in short, am
I to expect to read something from the socket that I didn't write?????

Please respond to me directly b/c I'm not subbed at this time.

TIA,
Chris





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.95.961124105546.14419L-100000>