From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) by mx.groups.io with SMTP id smtpd.web12.364.1585615680095690210 for ; Mon, 30 Mar 2020 17:48:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KE3t1/pk; spf=pass (domain: redhat.com, ip: 63.128.21.74, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585615679; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=thMGOPhQAUuoFbIYoA7Vca/jhpufWUJIPrgLyR4YcPo=; b=KE3t1/pki6CBbp1hHvPopt4IcDiGZzSAe3rbohssnwFEtw8YmvSYB29LUZWfIP+KjWVrdR wZpEn3W8JZRNedA0moWbAcKtZ+5GzVHmwhztvsEbdJkIGafa3qLkAdpmA9yteMpnmtU1pO m6OlTrRmxzgofSaMzsaEWHDdJV2OIws= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-76-n0QyHsMrOm-3lZ8xb5oU6g-1; Mon, 30 Mar 2020 20:47:54 -0400 X-MC-Unique: n0QyHsMrOm-3lZ8xb5oU6g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AE5948017CC; Tue, 31 Mar 2020 00:47:52 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-112-191.ams2.redhat.com [10.36.112.191]) by smtp.corp.redhat.com (Postfix) with ESMTP id 604005C1C5; Tue, 31 Mar 2020 00:47:51 +0000 (UTC) From: "Laszlo Ersek" To: edk2-devel-groups-io Cc: Jiaxin Wu , Maciej Rabeda , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Siyuan Fu Subject: [PATCH] NetworkPkg/UefiPxeBcDxe: handle competing DHCP servers (more) gracefully Date: Tue, 31 Mar 2020 02:47:49 +0200 Message-Id: <20200331004749.16128-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 V2hlbiBESENQIGlzIG1pc2NvbmZpZ3VyZWQgb24gYSBuZXR3b3JrIHNlZ21lbnQsIHN1Y2ggdGhh dCB0d28gREhDUApzZXJ2ZXJzIGF0dGVtcHQgdG8gcmVwbHkgdG8gcmVxdWVzdHMgKGFuZCB0aGVy ZWZvcmUgcmFjZSB3aXRoIGVhY2ggb3RoZXIpLAp0aGUgZWRrMiBQWEUgY2xpZW50IGNhbiBjb25m dXNlIGl0c2VsZi4KCkluIFB4ZUJjRGhjcDRCb290SW5mbygpIC8gUHhlQmNEaGNwNkJvb3RJbmZv KCksIHRoZSBjbGllbnQgbWF5IHJlZmVyIHRvIGEKREhDUCByZXBseSBwYWNrZXQgYXMgYW4gImVh cmxpZXIiIHBhY2tldCBmcm9tIHRoZSAic2FtZSIgREhDUCBzZXJ2ZXIsIHdoZW4KaW4gcmVhbGl0 eSBib3RoIHBhY2tldHMgYXJlIHVucmVsYXRlZCwgYW5kIGFycml2ZSBmcm9tIGRpZmZlcmVudCBE SENQCnNlcnZlcnMuCgpXaGlsZSB0aGUgZWRrMiBQWEUgY2xpZW50IGNhbiBkbyBub3RoaW5nIHRv IGZpeCB0aGlzLCBpdCBzaG91bGQgYXQgbGVhc3QKbm90IEFTU0VSVCgpIC0tIEFTU0VSVCgpIGlz IGZvciBjYXRjaGluZyBwcm9ncmFtbWluZyBlcnJvcnMgKHZpb2xhdGlvbnMgb2YK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