NetworkPkg/IScsiDxe: Fix the incorrect max length of IP_ADDRESS.

When creating the ISCSI string OpCode for IP_ADDRESS, the max length
should be IP(4)_STR_MAX_SIZE instead of IP(4)_MAX_SIZE.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
This commit is contained in:
Jiaxin Wu 2017-08-30 14:57:14 +08:00
parent 5dfba97c4d
commit 8b134dfdad
1 changed files with 4 additions and 4 deletions

View File

@ -1009,7 +1009,7 @@ IScsiCreateKeywords (
0,
0,
IP4_MIN_SIZE,
IP4_MAX_SIZE,
IP4_STR_MAX_SIZE,
NULL
);
@ -1035,7 +1035,7 @@ IScsiCreateKeywords (
0,
0,
IP4_MIN_SIZE,
IP4_MAX_SIZE,
IP4_STR_MAX_SIZE,
NULL
);
@ -1061,7 +1061,7 @@ IScsiCreateKeywords (
0,
0,
IP4_MIN_SIZE,
IP4_MAX_SIZE,
IP4_STR_MAX_SIZE,
NULL
);
@ -1167,7 +1167,7 @@ IScsiCreateKeywords (
0,
0,
IP_MIN_SIZE,
IP_MAX_SIZE,
IP_STR_MAX_SIZE,
NULL
);