From owner-freebsd-questions Tue Dec 8 11:42:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA01827 for freebsd-questions-outgoing; Tue, 8 Dec 1998 11:42:37 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lily.ezo.net (lily.ezo.net [206.102.130.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA01822 for ; Tue, 8 Dec 1998 11:42:35 -0800 (PST) (envelope-from jflowers@ezo.net) Received: from ivy.ezo.net (ivy.ezo.net [206.150.211.171]) by lily.ezo.net (8.8.7/8.8.7) with SMTP id OAA01405; Tue, 8 Dec 1998 14:42:16 -0500 (EST) Message-ID: <003a01be22e4$3fbd21c0$abd396ce@ivy.ezo.net> From: "Jim Flowers" To: "Louis A. Mamakos" Cc: Subject: Re: Help with TCP listen() function Date: Tue, 8 Dec 1998 14:52:11 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-Mimeole: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks, that did the trick and allowed me to proceed into the meat of the debugging which is now completed. I appreciate your response. Always have a problem knowing when something is "in doubt" and should be freebsd-questions or on a general "technical track" and is more properly queried on "hackers" or a specific "technical track" like "net". I thought I had it right this time. Jim -----Original Message----- From: Louis A. Mamakos To: Jim Flowers Cc: freebsd-hackers@FreeBSD.ORG ; freebsd-net@FreeBSD.ORG Date: Sunday, December 06, 1998 11:17 AM Subject: Re: Help with TCP listen() function > >The problem is that you're not trying to do a TCP "listen" operation; you're >creating a UDP datagram socket, and not a TCP (SOCK_STREAM) type socket. The >listen system call isn't defined to work on datagram sockets because there >are no new connections to be accepted. > >This is probably a freebsd-questions mailing list issue for any follow-up. > >louie > >> >> ------=_NextPart_000_000A_01BE2111.78BC2770 >> Content-Type: text/plain; >> charset="iso-8859-1" >> Content-Transfer-Encoding: quoted-printable >> >> I am trying to port a cable modem (roadrunner) login program written for = >> linux to freebsd 2.2.7 before the Dec 15 deadline. Should have been = >> suspicious when it compiled cleanly without error message. >> >> The program runs up to the point of setting up a TCP socket to request a = >> login sequence using functions: >> >> socket() >> htons() >> bind() >> listen() >> >> and then quits with errnum for "Operation not supported". >> >> The function calls seem to be correctly written and do not return any = >> errors when called (except for listen()). >> >> Is this a correct sequence to establish a passive tcp connection? Is = >> there a better way to do it? Is there a knowledge base for converting = >> linux code to run on FreeBSD? References for the correct way to write = >> code to establish tcp connections? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message