Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Mar 2017 16:40:59 +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:  <08d2ac771893cd01590e611c043d557b@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_08d2ac771893cd01590e611c043d557b
Content-Type: text/plain; charset = "utf-8"
Content-Transfer-Encoding: base64

a2N6ZWtpcmRhIHVwZGF0ZWQgdGhpcyByZXZpc2lvbiB0byBEaWZmIDI1OTM2LgprY3pla2lyZGEg
bWFya2VkIDIgaW5saW5lIGNvbW1lbnRzIGFzIGRvbmUuCgpDSEFOR0VTIFNJTkNFIExBU1QgVVBE
QVRFCiAgaHR0cHM6Ly9yZXZpZXdzLmZyZWVic2Qub3JnL0Q5ODQ3P3ZzPTI1OTMxJmlkPTI1OTM2
CgpSRVZJU0lPTiBERVRBSUwKICBodHRwczovL3Jldmlld3MuZnJlZWJzZC5vcmcvRDk4NDcKCkFG
RkVDVEVEIEZJTEVTCiAgL3Vzci9zcmMvbGliL2xpYnN0YW5kL2Jvb3RwLmMKICAvdXNyL3NyYy9s
aWIvbGlic3RhbmQvYm9vdHAuaAogIC91c3Ivc3JjL3N5cy9ib290L2kzODYvbGliaTM4Ni9weGUu
YwoKRU1BSUwgUFJFRkVSRU5DRVMKICBodHRwczovL3Jldmlld3MuZnJlZWJzZC5vcmcvc2V0dGlu
Z3MvcGFuZWwvZW1haWxwcmVmZXJlbmNlcy8KClRvOiBrY3pla2lyZGEsIHRzb29tZSwgZ2xlYml1
cywgZnJlZWJzZC1uZXQtbGlzdCwgI25ldHdvcmssIGdubiwgc21oLCBiYXB0LCBvc2hvZ2JvCkNj
OiBzbWgK

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

ZGlmZiAtLWdpdCBhLy91c3Ivc3JjL3N5cy9ib290L2kzODYvbGliaTM4Ni9weGUuYy5vbGQgYi8v
dXNyL3NyYy9zeXMvYm9vdC9pMzg2L2xpYmkzODYvcHhlLmMKLS0tIGEvL3Vzci9zcmMvc3lzL2Jv
b3QvaTM4Ni9saWJpMzg2L3B4ZS5jLm9sZAorKysgYi8vdXNyL3NyYy9zeXMvYm9vdC9pMzg2L2xp
YmkzODYvcHhlLmMKQEAgLTEwMSw2ICsxMDEsNyBAQAogZXh0ZXJuIHVfaW50MTZfdAkJX19weGVu
dnNlZzsKIGV4dGVybiB1X2ludDE2X3QJCV9fcHhlbnZvZmY7CiBleHRlcm4gdm9pZAkJCV9fcHhl
bnZlbnRyeSh2b2lkKTsKK2V4dGVybiBzdHJ1Y3QgaW5fYWRkcgkJc2VydmlwOwogCiBzdHJ1Y3Qg
bmV0aWZfZGlmIHB4ZV9pZnNbXSA9IHsKIC8qCWRpZl91bml0ICAgICAgICBkaWZfbnNlbCAgICAg
ICAgZGlmX3N0YXRzICAgICAgIGRpZl9wcml2YXRlICAgICAqLwpAQCAtMjc2LDE3ICsyNzcsMzgg
QEAKIAkJCX0KIAkJCWlmIChweGVfZGVidWcpCiAJCQkJcHJpbnRmKCJweGVfb3BlbjogbmV0aWZf
b3BlbigpIHN1Y2NlZWRlZFxuIik7CisKKwkJCWlmIChzb2NrdG9kZXNjKHB4ZV9zb2NrKSA9PSBO
VUxMKSB7CisJCQkJcHJpbnRmKCJweGVfb3BlbjogYmFkIHNvY2tldCAlZFxuIiwgcHhlX3NvY2sp
OworCQkJCXJldHVybiAoRU5YSU8pOworCQkJfQorCiAJCX0KIAkJaWYgKHJvb3RpcC5zX2FkZHIg
PT0gMCkgewogCQkJLyoKLQkJCSA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d557b--



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