Bug 358 - calling listen on non-closed TCP sockets sends resets, should fail and do nothing
calling listen on non-closed TCP sockets sends resets, should fail and do not...
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: internet
ns-3-dev
All All
: P1 normal
Assigned To: Craig Dowell
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-19 14:18 EDT by Rajib Bhattacharjea
Modified: 2008-12-02 00:38 EST (History)
4 users (show)

See Also:


Attachments
align listen behavior with linux (534 bytes, patch)
2008-11-06 15:48 EST, Rajib Bhattacharjea
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rajib Bhattacharjea 2008-09-19 14:18:55 EDT
Linux's inet_listen returns EINVAL when you call listen on a socket in any state other than SS_UNCONNECTED.  The GTNetS port always succeeds on calling listen, and usually sends a reset, or does nothing in response in just a few cases.  It should fail with ns-3's ERROR_INVAL and NOT send resets.
Comment 1 Rajib Bhattacharjea 2008-11-06 15:48:22 EST
Created attachment 290 [details]
align listen behavior with linux
Comment 2 Mathieu Lacage 2008-11-26 04:33:41 EST
is there a reason why this patch is not applied yet ?
Comment 3 Rajib Bhattacharjea 2008-12-01 10:48:12 EST
This is ready to commit, reassigning to release manager for application.
Comment 4 Tom Henderson 2008-12-02 00:38:06 EST
changeset b2f4788d3db7