Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Mar 2017 10:26:10 +0000
From:      "kczekirda (Kamil Czekirda)" <phabric-noreply@FreeBSD.org>
To:        freebsd-net@freebsd.org
Subject:   [Differential] D9847: Try to extract the RFC1048 data from PXE
Message-ID:  <974007be139d0b93ba4243bb370c91ff@localhost.localdomain>
In-Reply-To: <differential-rev-PHID-DREV-ml6ban3epmjn5plj7t5q-req@FreeBSD.org>
References:  <differential-rev-PHID-DREV-ml6ban3epmjn5plj7t5q-req@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--b1_974007be139d0b93ba4243bb370c91ff
Content-Type: text/plain; charset = "utf-8"
Content-Transfer-Encoding: base64

a2N6ZWtpcmRhIHVwZGF0ZWQgdGhpcyByZXZpc2lvbiB0byBEaWZmIDI1OTMxLgoKQ0hBTkdFUyBT
SU5DRSBMQVNUIFVQREFURQogIGh0dHBzOi8vcmV2aWV3cy5mcmVlYnNkLm9yZy9EOTg0Nz92cz0y
NTkxNyZpZD0yNTkzMQoKUkVWSVNJT04gREVUQUlMCiAgaHR0cHM6Ly9yZXZpZXdzLmZyZWVic2Qu
b3JnL0Q5ODQ3CgpBRkZFQ1RFRCBGSUxFUwogIC91c3Ivc3JjL2xpYi9saWJzdGFuZC9ib290cC5j
CiAgL3Vzci9zcmMvbGliL2xpYnN0YW5kL2Jvb3RwLmgKICAvdXNyL3NyYy9zeXMvYm9vdC9pMzg2
L2xpYmkzODYvcHhlLmMKCkVNQUlMIFBSRUZFUkVOQ0VTCiAgaHR0cHM6Ly9yZXZpZXdzLmZyZWVi
c2Qub3JnL3NldHRpbmdzL3BhbmVsL2VtYWlscHJlZmVyZW5jZXMvCgpUbzoga2N6ZWtpcmRhLCBv
c2hvZ2JvLCBiYXB0LCB0c29vbWUsIGdsZWJpdXMsIGZyZWVic2QtbmV0LWxpc3QsICNuZXR3b3Jr
LCBnbm4sIHNtaApDYzogc21oCg==

--b1_974007be139d0b93ba4243bb370c91ff
Content-Type: text/x-patch; charset=utf-8; name="D9847.25931.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="D9847.25931.patch"

ZGlmZiAtLWdpdCBhLy91c3Ivc3JjL3N5cy9ib290L2kzODYvbGliaTM4Ni9weGUuYy5vbGQgYi8v
dXNyL3NyYy9zeXMvYm9vdC9pMzg2L2xpYmkzODYvcHhlLmMKLS0tIGEvL3Vzci9zcmMvc3lzL2Jv
b3QvaTM4Ni9saWJpMzg2L3B4ZS5jLm9sZAorKysgYi8vdXNyL3NyYy9zeXMvYm9vdC9pMzg2L2xp
YmkzODYvcHhlLmMKQEAgLTEwMSw2ICsxMDEsNyBAQAogZXh0ZXJuIHVfaW50MTZfdAkJX19weGVu
dnNlZzsKIGV4dGVybiB1X2ludDE2X3QJCV9fcHhlbnZvZmY7CiBleHRlcm4gdm9pZAkJCV9fcHhl
bnZlbnRyeSh2b2lkKTsKK2V4dGVybiBzdHJ1Y3QgaW5fYWRkcgkJc2VydmlwOwogCiBzdHJ1Y3Qg
bmV0aWZfZGlmIHB4ZV9pZnNbXSA9IHsKIC8qCWRpZl91bml0ICAgICAgICBkaWZfbnNlbCAgICAg
ICAgZGlmX3N0YXRzICAgICAgIGRpZl9wcml2YXRlICAgICAqLwpAQCAtMjc2LDE3ICsyNzcsMzgg
QEAKIAkJCX0KIAkJCWlmIChweGVfZGVidWcpCiAJCQkJcHJpbnRmKCJweGVfb3BlbjogbmV0aWZf
b3BlbigpIHN1Y2NlZWRlZFxuIik7CisKKwkJCWlmIChzb2NrdG9kZXNjKHB4ZV9zb2NrKSA9PSBO
VUxMKSB7CisJCQkJcHJpbnRmKCJweGVfb3BlbjogYmFkIHNvY2tldCAlZFxuIiwgcHhlX3NvY2sp
OworCQkJCXJldHVybiAoRU5YSU8pOworCQkJfQorCiAJCX0KIAkJaWYgKHJvb3RpcC5zX2FkZHIg
PT0gMCkgewogCQkJLyoKLQkJCSAqIERvIGEgYm9vdHAvZGhjcCByZXF1ZXN0IHRvIG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VuKQoreworCisJZXhwZWN0ZWRfZGhjcG1zZ3R5cGUgPSBESENQQUNL
OworCWlmIChiY21wKHZtX3JmYzEwNDgsIGNwLCBzaXplb2Yodm1fcmZjMTA0OCkpID09IDApIHsK
KwkJcmV0dXJuICh2ZW5kX3JmYzEwNDgoY3AsIGxlbikpOworCX0KKwlyZXR1cm4gKC0xKTsKK30K
Kwogc3RhdGljIGludAogdmVuZF9yZmMxMDQ4KGNwLCBsZW4pCiAJdV9jaGFyICpjcDsKZGlmZiAt
LWdpdCBhLy91c3Ivc3JjL2xpYi9saWJzdGFuZC9ib290cC5oLm9sZCBiLy91c3Ivc3JjL2xpYi9s
aWJzdGFuZC9ib290cC5oCi0tLSBhLy91c3Ivc3JjL2xpYi9saWJzdGFuZC9ib290cC5oLm9sZAor
KysgYi8vdXNyL3NyYy9saWIvbGlic3RhbmQvYm9vdHAuaApAQCAtMjIsNiArMjIsOCBAQAogICog
JEZyZWVCU0Q6IGhlYWQvbGliL2xpYnN0YW5kL2Jvb3RwLmggMzA1MTI1IDIwMTYtMDgtMzEgMTM6
MTY6NDBaIGJhcHQgJAogICovCiAKKyNpZm5kZWYgX0JPT1RQX0hfCisjZGVmaW5lIF9CT09UUF9I
XwogCiBzdHJ1Y3QgYm9vdHAgewogCXVuc2lnbmVkIGNoYXIJYnBfb3A7CQkvKiBwYWNrZXQgb3Bj
b2RlIHR5cGUgKi8KQEAgLTE0NSwzICsxNDcsNyBAQAogCiAvKiB2X2ZsYWdzIHZhbHVlcyAqLwog
I2RlZmluZSBWRl9TTUFTSwkxCS8qIFN1Ym5ldCBtYXNrIGZpZWxkIGNvbnRhaW5zIHZhbGlkIGRh
dGEgKi8KKworaW50CWRoY3BfdHJ5X3JmYzEwNDgodV9jaGFyICpjcCwgdV9pbnQgbGVuKTsKKwor
I2VuZGlmIC8qIF9CT09UUF9IXyAqLwoK


--b1_974007be139d0b93ba4243bb370c91ff--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?974007be139d0b93ba4243bb370c91ff>