[net.unix-wizards] Talk and "protocol not supported"

chris@umcp-cs.UUCP (Chris Torek) (08/20/86)

In article <6312@sun.uucp> guy@sun.uucp (Guy Harris) writes:
>Barry's right, [talk] is a crock.

I hate to insult programs---it feels as though I am insulting the
programmer, by impliciation---but Barry and Guy are right.

>The only place in a standard 4.2BSD kernel (I presume yours is standard,
>right?) that gives that error is the "socket" call, and it only gives that
>error if no protocol of the type asked for exists.  "talk" asks for a socket
>of type SOCK_STREAM in address family AF_INET, and then for a socket of type
>SOCK_DGRAM in the same address family.  The only way that can fail is if you
>haven't configured in Internet protocol support, ...

This should indeed be the case, yet I have seen the very same error.
There was no code path in the kernel that would have returned that
error for any reasonable operation; and I could only conclude that
talk (or talkd) was at fault yet again.  After one look inside
talk, I never pursued it further.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1516)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris@umcp-cs		ARPA:	chris@mimsy.umd.edu

ber@enea.UUCP (Bjorn Eriksen) (08/23/86)

In article <3033@umcp-cs.UUCP> chris@umcp-cs.UUCP (Chris Torek) writes:
>In article <6312@sun.uucp> guy@sun.uucp (Guy Harris) writes:
>>Barry's right, [talk] is a crock.
>
>I hate to insult programs---it feels as though I am insulting the
>programmer, by impliciation---but Barry and Guy are right.
>
>>...  The only way that can fail is if you
>>haven't configured in Internet protocol support, ...

Sometimes that "make depend" does not work out correct after just adding new
options. I suggest you do a "config XXX" and "make depend" into a clean
directory and generate a new vmunix from scratch before you try to understand
how talk/talkd works.

-- 
Bjorn Eriksen
ENEA DATA Sweden

UUCP:	{seismo,mcvax,munnari,cernvax,diku,inria,prlb2,penet,ukc,unido}!enea!ber
ARPA:	ber%enea.uucp@seismo.CSS.GOV