public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* VFR validation of IP address and iSCSI IQN
@ 2018-01-11  6:51 Atul Gupta
  2018-01-11  7:31 ` Bi, Dandan
  0 siblings, 1 reply; 3+ messages in thread
From: Atul Gupta @ 2018-01-11  6:51 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Hi,

I want to validate IP address and iSCSI IQN within the vfr form. Want to avoid callback hence removed the INTERACTIVE flags, tried few things but none seems to work except for input length check, how to validate the input buffer.

Eg:

string  name    = iqn,
            varid   = UD_CONFIG_IFR_NVDATA.InitiatorName,
            prompt  = STRING_TOKEN(STR_ISCSI_CONFIG_INIT_NAME),
            help    = STRING_TOKEN(STR_ISCSI_CONFIG_INIT_NAME_HELP),
            flags   = 0,
            key     = KEY_INITIATOR_NAME2,
            minsize = 8,
            maxsize = ISCSI_NAME_IFR_MAX_SIZE,
                                             inconsistentif prompt = STRING_TOKEN(STR_INVALID_IQN),
                                             NOT
                                             pushthis != stringref(STRING_TOKEN(STR_STRING_CHECK))
                                             endif
    endstring;

also tried
span (flags = LAST_NON_MATCH, pushthis, stringref(STRING_TOKEN(STR_STRING_CHECK)), 0) != 0, but did not help.

Any reference to validate the input buffer?

Thanks
Atul


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-11  7:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-11  6:51 VFR validation of IP address and iSCSI IQN Atul Gupta
2018-01-11  7:31 ` Bi, Dandan
2018-01-11  7:57   ` Atul Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox