def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_dpo_proto(addr):
    if ip_address(addr).version == 6:
        return DpoProto.DPO_PROTO_IP6
    else:
        return DpoProto.DPO_PROTO_IP4