The following example illustrates how to get or set custom field values by using the SetCustomField and GetCustomField API.
|
function Flow_CustomMetaData (dpiMsg, ruleEngine) require 'LOG' local customName1 = "VPNData" local customValue1 = "Tunnel" local customValue2 = "SkypeTraffic" local customName2 = "Voice" SetCustomField(dpiMsg, customName1, customValue1); SetCustomField(dpiMsg, customName1, customValue2);
|