Date: Sat, 31 Mar 2018 17:28:48 +0000 From: Phabricator <phabric-noreply@FreeBSD.org> To: freebsd-net@freebsd.org Subject: [Differential] D4090: mbuf(9): unbreak m_fragment() Message-ID: <f07de0dd928626a6400f951a70c9fa87@localhost.localdomain> In-Reply-To: <differential-rev-PHID-DREV-ox23emfuvv73okywt65z-req@FreeBSD.org> References: <differential-rev-PHID-DREV-ox23emfuvv73okywt65z-req@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--b1_f07de0dd928626a6400f951a70c9fa87 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: base64 VGhpcyByZXZpc2lvbiB3YXMgYXV0b21hdGljYWxseSB1cGRhdGVkIHRvIHJlZmxlY3QgdGhlIGNv bW1pdHRlZCBjaGFuZ2VzLgpDbG9zZWQgYnkgY29tbWl0IHJTMzMxODQ3OiBNRkMgcjMyNDY3Mzog KGF1dGhvcmVkIGJ5IGF2b3MpLgoKQ0hBTkdFRCBQUklPUiBUTyBDT01NSVQKICBodHRwczovL3Jl dmlld3MzLmZyZWVic2Qub3JnL0Q0MDkwP3ZzPTk5NzMmaWQ9MjU4NDcjdG9jCgpSRVBPU0lUT1JZ CiAgclMgRnJlZUJTRCBzcmMgcmVwb3NpdG9yeQoKQ0hBTkdFUyBTSU5DRSBMQVNUIFVQREFURQog IGh0dHBzOi8vcmV2aWV3czMuZnJlZWJzZC5vcmcvRDQwOTA/dnM9OTk3MyZpZD0yNTg0NwoKUkVW SVNJT04gREVUQUlMCiAgaHR0cHM6Ly9yZXZpZXdzMy5mcmVlYnNkLm9yZy9ENDA5MAoKQUZGRUNU RUQgRklMRVMKICBzdGFibGUvMTEKICBzdGFibGUvMTEvc3lzL2tlcm4vdWlwY19tYnVmLmMKCkVN QUlMIFBSRUZFUkVOQ0VTCiAgaHR0cHM6Ly9yZXZpZXdzMy5mcmVlYnNkLm9yZy9zZXR0aW5ncy9w YW5lbC9lbWFpbHByZWZlcmVuY2VzLwoKVG86IHMzZXJpb3NfZ21haWwuY29tLCBhZHJpYW4sIGds ZWJpdXMsIGZyZWVic2QtbmV0LWxpc3QKQ2M6IGltcAo= --b1_f07de0dd928626a6400f951a70c9fa87 Content-Type: text/x-patch; charset=utf-8; name="D4090.25847.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D4090.25847.patch" ZGlmZiAtLWdpdCBhL3N0YWJsZS8xMSBiL3N0YWJsZS8xMQpkaWZmIC0tZ2l0IGEvc3RhYmxlLzEx L3N5cy9rZXJuL3VpcGNfbWJ1Zi5jIGIvc3RhYmxlLzExL3N5cy9rZXJuL3VpcGNfbWJ1Zi5jCi0t LSBhL3N0YWJsZS8xMS9zeXMva2Vybi91aXBjX21idWYuYworKysgYi9zdGFibGUvMTEvc3lzL2tl cm4vdWlwY19tYnVmLmMKQEAgLTE0MzksNjIgKzE0MzksNTkgQEAKIHN0cnVjdCBtYnVmICoKIG1f ZnJhZ21lbnQoc3RydWN0IG1idWYgKm0wLCBpbnQgaG93LCBpbnQgbGVuZ3RoKQogewotCXN0cnVj dCBtYnVmICptX25ldyA9IE5VTEwsICptX2ZpbmFsID0gTlVMTDsKLQlpbnQgcHJvZ3Jlc3MgPSAw OworCXN0cnVjdCBtYnVmICptX2ZpcnN0LCAqbV9sYXN0OworCWludCBkaXZpc29yID0gMjU1LCBw cm9ncmVzcyA9IDAsIGZyYWdsZW47CiAKIAlpZiAoIShtMC0+bV9mbGFncyAmIE1fUEtUSERSKSkK IAkJcmV0dXJuIChtMCk7CiAKLQlpZiAoKGxlbmd0aCA9PSAwKSB8fCAobGVuZ3RoIDwgLTIpKQor CWlmIChsZW5ndGggPT0gMCB8fCBsZW5ndGggPCAtMikKIAkJcmV0dXJuIChtMCk7CisJaWYgKGxl bmd0aCA+IE1DTEJZVEVTKQorCQlsZW5ndGggPSBNQ0xCWVRFUzsKKwlpZiAobGVuZ3RoIDwgMCAm JiBkaXZpc29yID4gTUNMQllURVMpCisJCWRpdmlzb3IgPSBNQ0xCWVR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to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f07de0dd928626a6400f951a70c9fa87>