Bug 358

Summary: calling listen on non-closed TCP sockets sends resets, should fail and do nothing
Product: ns-3 Reporter: Rajib Bhattacharjea <raj.b>
Component: internetAssignee: Craig Dowell <craigdo>
Status: RESOLVED FIXED    
Severity: normal CC: craigdo, mathieu.lacage, ns-bugs, tomh
Priority: P1    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: align listen behavior with linux

Description Rajib Bhattacharjea 2008-09-19 14:18:55 UTC
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 UTC
Created attachment 290 [details]
align listen behavior with linux
Comment 2 Mathieu Lacage 2008-11-26 04:33:41 UTC
is there a reason why this patch is not applied yet ?
Comment 3 Rajib Bhattacharjea 2008-12-01 10:48:12 UTC
This is ready to commit, reassigning to release manager for application.
Comment 4 Tom Henderson 2008-12-02 00:38:06 UTC
changeset b2f4788d3db7