/** @file\r
\r
(C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
\r
if (!UdpConfigData->UseDefaultAddress &&\r
- (!IP4_IS_VALID_NETMASK (SubnetMask) ||\r
- !((StationAddress == 0) || NetIp4IsUnicast (StationAddress, SubnetMask)) ||\r
- !((RemoteAddress == 0) || NetIp4IsUnicast (RemoteAddress, 0)))) {\r
+ (!IP4_IS_VALID_NETMASK (SubnetMask) ||\r
+ !((StationAddress == 0) || NetIp4IsUnicast (StationAddress, SubnetMask)) ||\r
+ IP4_IS_LOCAL_BROADCAST (RemoteAddress))) {\r
//\r
// Don't use default address, and subnet mask is invalid or StationAddress is not\r
// a valid unicast IPv4 address or RemoteAddress is not a valid unicast IPv4 address\r