Commit 77004ab0 authored by Federico Sismondi's avatar Federico Sismondi

added onem2m pcap example

parent 0b357ab0
......@@ -34,7 +34,6 @@ def get_from_environment(variable, default):
if __name__ == '__main__':
# example of use for save_pcap_from_base64 function
#base_64_pcap_value = '1MOyoQIABAAAAAAAAAAAAMgAAABlAAAASJQxWTqkAwA5AAAAOQAAAGAOcR8AERFAu7sAAAAAAAAAAAAAAAAAAbu7AAAAAAAAAAAAAAAAAALk2RYzABGuhFAEANS0dGVzdA=='
from examples_pcap_base64 import PCAP_COAP_TC4_OVER_TUN_INTERFACE_base64
base_64_pcap_value = PCAP_COAP_TC4_OVER_TUN_INTERFACE_base64
from examples_pcap_base64 import PCAP_COAP_TC4_OVER_TUN_INTERFACE_base64,PCAP_ONEM2M_TD_M2M_NH_06
base_64_pcap_value = PCAP_ONEM2M_TD_M2M_NH_06
save_pcap_from_base64('test.pcap', base_64_pcap_value)
......@@ -79,3 +79,6 @@ PCAP_COAP_TC4_OVER_TUN_INTERFACE_base64 = "1MOyoQIABAAAAAAAAAAAAMgAAAAAAAAA+pK2W
"dWU+AZO2Wc7qCgA4AAAAOAAAAAAAAB5gB/WBAAwRQLu7AAAAAAAAAAAAAAAAAAK7uwAAAAAAAA" \
"AAAAAAAAABFjOPSwAMfvlghANgApO2Wf6ZAQA9AAAAPQAAAAAAAB5gDDiOABERQLu7AAAAAAAA" \
"AAAAAAAAAAG7uwAAAAAAAAAAAAAAAAACwtcWMwAR3stAAQKStHRlc3Q="
PCAP_ONEM2M_TD_M2M_NH_01_FAIL = "1MOyoQIABAAAAAAAAAAAAMgAAABlAAAA/jUkWqGgAABSAAAAUgAAAGAKN4UAKhFAu7sAAAAAAAAAAAAAAAAAAru7AAAAAAAAAAAAAAAAAAHMoRYzACpJckQB9YsBNhTVsX4GaW4tY3NlETJRMtviYWRtaW46YWRtaW7+NSRaxwsCAMgAAACTAQAAYAwxYAFrEUC7uwAAAAAAAAAAAAAAAAABu7sAAAAAAAAAAAAAAAAAAhYzzKEBa94yZEX1iwE2FNXBMtLwB9D/ewogICAibTJtOmNiIiA6IHsKICAgICAgInJuIiA6ICJpbi1uYW1lIiwKICAgICAgInR5IiA6IDUsCiAgICAgICJyaSIgOiAiL2luLWNzZSIsCiAgICAgICJjdCIgOiAiMjAxNzEyMDNUMTczNTA0IiwKICAgICAgImx0IiA6ICIyMDE3MTIwM1Q="
PCAP_ONEM2M_TD_M2M_NH_01_PASS = "1MOyoQIABAAAAAAAAAAAAMgAAABlAAAA1VskWu05BABZAAAAWQAAAGANsjEAMRFAu7sAAAAAAAAAAAAAAAAAAbu7AAAAAAAAAAAAAAAAAAKiSBYzADGFs0QBTnZKvq7SsX4GaW4tY3NlETJRMtviYWRtaW46YWRtaW4WMTAwNjg11VskWgYbBQDIAAAAmgEAAGACBPsBchFAu7sAAAAAAAAAAAAAAAAAAru7AAAAAAAAAAAAAAAAAAEWM6JIAXLWT2RFTnZKvq7SwTLW6DEwMDY4NYIH0P97CiAgICJtMm06Y2IiIDogewogICAgICAicm4iIDogImluLW5hbWUiLAogICAgICAidHkiIDogNSwKICAgICAgInJpIiA6ICIvaW4tY3NlIiwKICAgICAgImN0IiA6ICIyMDE3MTIwM1QxNzM1MDQiLAogICAgICAibHQiIDogIjIw"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment