#from programs.mynet import hike_drop, hike_pass, monitor, show_pkt_info
from programs.hike_default import hike_drop, hike_pass, monitor
from programs.info import show_pkt_info
from loaders.hike_default import ip6_simple_classifier
IPOTESI A : il nome della mappa nei due programmi e' lo stesso
hike_pass.pin(map_name, hike_drop)
IPOTESI B : il programma che usa una mappa puo' usare un nome diverso
hike_pass.pin(my_map, map_name, hike_drop)
# send all IPv6 packets to our chain
ip6_simple_classifier[ipv6_simple_classifier_map] = { (0): (basic_example) }
ip6_simple_classifier.attach('DEVNAME', 'xdp')
def basic_example():
return 0