Re: arbitrary TCP data packets

From: Renaud Deraison (deraisonat_private)
Date: Tue May 13 2003 - 08:08:12 PDT

  • Next message: John Lampe: "more biztalk shtuff"

    On Tue, May 13, 2003 at 03:57:03PM +0100, Jackson, Dennis wrote:
    > Doh!
    > 
    > I should have thought of this.
    > I just have to hope that the source port I chose is not in use.
    
    That's easy to do :
    	for(i=65535;i>65000;i--)
    	{
    	  	soc = open_priv_sock_tcp(sport:i, dport:port);
    		if(soc)break; # Success 
    	}
    
    	if(!soc)exit(0); # Failed - all port in used ?
    



    This archive was generated by hypermail 2b30 : Tue May 13 2003 - 08:08:26 PDT