|
@@ -177,7 +177,7 @@ class Controller:
|
|
print()
|
|
print()
|
|
elif param == "least_used":
|
|
elif param == "least_used":
|
|
print("least_used can be used as a selector for the following attributes:")
|
|
print("least_used can be used as a selector for the following attributes:")
|
|
- print("ipAddress | macAddress | portNumber | protocolName | ttlValue")
|
|
|
|
|
|
+ print("ipAddress | macAddress | portNumber | protocolName | ttlValue | mssValue | winSize | ipClass")
|
|
print()
|
|
print()
|
|
elif param == "avg":
|
|
elif param == "avg":
|
|
print("avg can be used as a selector for the following attributes:")
|
|
print("avg can be used as a selector for the following attributes:")
|
|
@@ -185,7 +185,7 @@ class Controller:
|
|
print()
|
|
print()
|
|
elif param == "all":
|
|
elif param == "all":
|
|
print("all can be used as a selector for the following attributes:")
|
|
print("all can be used as a selector for the following attributes:")
|
|
- print("ipAddress | ttlValue | mss | macAddress | portNumber | protocolName")
|
|
|
|
|
|
+ print("ipAddress | ttlValue | mss | macAddress | portNumber | protocolName | winSize | ipClass")
|
|
print()
|
|
print()
|
|
elif param in ["random", "first", "last"]:
|
|
elif param in ["random", "first", "last"]:
|
|
print("No additional info available for this keyword.")
|
|
print("No additional info available for this keyword.")
|
|
@@ -198,6 +198,14 @@ class Controller:
|
|
"macAddress | ttlValue | ttlCount | portDirection | portNumber | portCount | protocolCount\n"
|
|
"macAddress | ttlValue | ttlCount | portDirection | portNumber | portCount | protocolCount\n"
|
|
"protocolName")
|
|
"protocolName")
|
|
print()
|
|
print()
|
|
|
|
+ print("The following operators can be used:")
|
|
|
|
+ print("<= | < | = | >= | > | in")
|
|
|
|
+ print()
|
|
|
|
+ print("A value can either be a simple values, a list of simple values separated by commas and enclosed "
|
|
|
|
+ "in [] brackets, or another query.")
|
|
|
|
+ print()
|
|
|
|
+ print("When VALUE is a list (or a query returning a list), the usage of the 'in' operator is mandatory!")
|
|
|
|
+ print()
|
|
print("See 'help examples;' for usage examples.")
|
|
print("See 'help examples;' for usage examples.")
|
|
print()
|
|
print()
|
|
elif param == "macaddress":
|
|
elif param == "macaddress":
|
|
@@ -206,6 +214,8 @@ class Controller:
|
|
print("The following parameters can be specified:")
|
|
print("The following parameters can be specified:")
|
|
print("ipAddress")
|
|
print("ipAddress")
|
|
print()
|
|
print()
|
|
|
|
+ print("See 'help ipAddress' for information on valid operators and values.")
|
|
|
|
+ print()
|
|
print("See 'help examples;' for usage examples.")
|
|
print("See 'help examples;' for usage examples.")
|
|
print()
|
|
print()
|
|
elif param == "examples":
|
|
elif param == "examples":
|
|
@@ -219,6 +229,8 @@ class Controller:
|
|
print("\tSELECT avg(ttlValue) from ip_ttl;")
|
|
print("\tSELECT avg(ttlValue) from ip_ttl;")
|
|
print("Get a random IP address from all addresses that sent and received at least 10 packets:")
|
|
print("Get a random IP address from all addresses that sent and received at least 10 packets:")
|
|
print("\trandom(ipAddress(pktsSent > 10, pktsReceived > 10));")
|
|
print("\trandom(ipAddress(pktsSent > 10, pktsReceived > 10));")
|
|
|
|
+ print("Get the IP addresses used with one of the MAC addresses in a list:")
|
|
|
|
+ print("\tipAddress(macAddress in [08:00:27:a3:83:43, 52:54:00:12:35:02]);")
|
|
print()
|
|
print()
|
|
else:
|
|
else:
|
|
print("Unknown keyword '" + param + "', try 'help;' to get a list of allowed keywords'")
|
|
print("Unknown keyword '" + param + "', try 'help;' to get a list of allowed keywords'")
|