Last active
August 29, 2015 14:00
-
-
Save JustinAzoff/cbc5fc296be916a3167e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Notice; | |
export { | |
redef enum Action += { | |
ACTION_TM_QUERY, | |
}; | |
const tm_query_types: set[Type] = {} &redef; | |
} | |
hook policy(n: Info) | |
{ | |
if ( n$note !in tm_query_types ) | |
return; | |
add n$actions[ACTION_TM_QUERY]; | |
TimeMachine::dump_conn(n$conn); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment