Date: Mon, 03 Mar 2008 12:06:38 -0200 From: Fernando Gont <fernando@gont.com.ar> To: Mike Silbersack <silby@silby.com> Cc: Rui Paulo <rpaulo@fnop.net>, freebsd-net@freebsd.org Subject: Re: Ephemeral ports patch (fixed) Message-ID: <200803031412.m23EC4WB031100@venus.xmundo.net> In-Reply-To: <20080303001004.R37933@odysseus.silby.com> References: <200803030435.m234Z7As026508@venus.xmundo.net> <20080303001004.R37933@odysseus.silby.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=====================_1673812953==_ Content-Type: text/plain; charset="us-ascii"; format=flowed At 04:11 a.m. 03/03/2008, Mike Silbersack wrote: >>Here's the same patch, but with the first ephemeral port changed >>from 1024 to 10000. > >Now that I've actually gone to try to apply the patch (so I can view >the two codepaths side by side, rather than in diff form), I'm >finding that I can't apply it. I think all the whitespace got >stomped, either by your mail program or my mail program. Can you >please resent this as an attachment? Sure. Please let me know if this one is okay. Kind regards, -- Fernando Gont e-mail: fernando@gont.com.ar || fgont@acm.org PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1 --=====================_1673812953==_ Content-Type: text/plain; name="patch-port-range.txt"; x-mac-type="42494E41"; x-mac-creator="74747874" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch-port-range.txt" SW5kZXg6IGluLmgKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2hvbWUvbmN2cy9zcmMvc3lzL25ldGlu ZXQvaW4uaCx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4xMDAKZGlmZiAtdSAtcjEuMTAwIGluLmgK LS0tIGluLmgJMTIgSnVuIDIwMDcgMTY6MjQ6NTMgLTAwMDAJMS4xMDAKKysrIGluLmgJMSBNYXIg MjAwOCAwOTowMDoxMCAtMDAwMApAQCAtMjkzLDggKzI5Myw3IEBACiAgKgogICogVGhlIHZhbHVl IElQX1BPUlR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pZiAoKmxhc3Rwb3J0IDwgZmlyc3QgfHwg Kmxhc3Rwb3J0ID4gbGFzdCkKKwkJCQkqbGFzdHBvcnQgPSBmaXJzdDsKKwkJCWxwb3J0ID0gaHRv bnMoKmxhc3Rwb3J0KTsKKwkJfSB3aGlsZSAoaW5fcGNibG9va3VwX2xvY2FsKHBjYmluZm8sIGxh ZGRyLCBscG9ydCwKKwkJICAgIHdpbGQpKTsKIAl9CiAJaWYgKHByaXNvbl9pcChjcmVkLCAwLCAm bGFkZHIuc19hZGRyKSkKIAkJcmV0dXJuIChFSU5WQUwpOwo= --=====================_1673812953==_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803031412.m23EC4WB031100>