*BSD News Article 80604


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!hunter.premier.net!news.cais.net!gabby.ShireNet.com!bilbo.ShireNet.com!larry
From: larry@bilbo.ShireNet.com (Larry Himes)
Newsgroups: comp.unix.bsd.bsdi.misc,comp.unix.programmer
Subject: Problems Writing to Raw Socket
Date: 13 Oct 1996 13:26:24 GMT
Organization: ShireNet Communications Systems, Inc.
Lines: 17
Message-ID: <53qqm0$3rl@frodo.ShireNet.com>
NNTP-Posting-Host: bilbo.shirenet.com
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:5112 comp.unix.programmer:44728

I'm having trouble writing to a raw socket under BSDI/OS 2.1. 
I can open the socket OK but the sendto() fails with a 
message too big error. I'm only sending a 40 byte packet,
so how can that be too big? The purpose of the program is
to enable me to send reset packets to sonnections which 
have become 'stuck' in closing or last-ack state, etc. Which
raises the question of why does this happen at all? 

In any case, the program is not very big and I'll gladly
email the source to anyone who would like to have a look 
at it.  

Thanks.
Larry Himes.