*BSD News Article 96152


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!feeder.chicago.cic.net!math.ohio-state.edu!jussieu.fr!fdn.fr!r2d2.fdn.org!sphynx.fdn.fr!causse
From: causse@sphynx.fdn.fr (Philippe Causse)
Subject: Re: Accept()-ing a connection from a specific IP address...
X-Newsreader: TIN [version 1.2 PL2]
Organization: individual - paris - france
Message-ID: <EAq6E3.EG@sphynx.fdn.fr>
References: <864144757.18711@dejanews.com> <EAHuuM.129@sphynx.fdn.fr> <5m7np9$ain@uriah.heep.sax.de>
Date: Sun, 25 May 1997 07:06:03 GMT
Lines: 26
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:41599

J Wunsch (j@uriah.heep.sax.de) wrote:
: knob@wizards.staff.Germany.EU.net (Bernard Steiner) wrote:

: > What I would like to know is whether or not it is now possible to
: > (a) use the rcvmsg() (or was that recvfrom() ?) calls for bound TCP
: > sockets *and* (b) somehow discard TCP SYNs from illegitimate
: > addresses and optionally tell the other side we are refusing
: > connections ?

: I think that's possible.  Read the IPC tutorials in /usr/share/doc, i
: remember that i've seen this option been mentioned.  (It might also
: have been in the Daemon Book, but ISTR it was in the online docs.)

recvfrom() cannot be applied to an unbound TCP socket, therefore you need
to accept() before... (see pgm example in previous posting).

: -- 
: cheers, J"org

: joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
: Never trust an operating system you don't have sources for. ;-)

-- 
-------------------------------------------------------------------
P. Causse			http://www.fdn.fr/~pcausse
4.4BSD/X11R6/Motif-2.0/C++	mailto:causse@sphynx.fdn.fr (UUCP)