*BSD News Article 15683


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!darwin.sura.net!udel!rochester!rocksanne!leisner
From: leisner@wrc.xerox.com (Marty Leisner x71348 )
Subject: bind question
Message-ID: <1993May5.161504.18622@spectrum.xerox.com>
Sender: news@spectrum.xerox.com
Reply-To: leisner@eso.mc.xerox.com
Organization: Xerox
X-Newsreader: TIN [version 1.1 PL9]
Date: Wed, 5 May 1993 16:15:04 GMT
Lines: 16

bind uses a sizeof to get the size of the structure.

I've seen implementations which use strlen(name) and sizeof(struct).

I assume the reason people used strlen because size(struct) would
force the whole structure to be copied into kernel space..?

Where is the socket/bind calls in the bsd net-2 release?  I can't 
find it (I found the kernel code though...)


--
Marty Leisner	leisner@eso.mc.xerox.com   leisner.henr801c@xerox.com
"To write poetry after Auschwitz is barbaric"
        German philosopher Theodor Adorno