Skip to content

Instantly share code, notes, and snippets.

@JustinAzoff
Created August 1, 2014 15:04
Show Gist options
  • Save JustinAzoff/446d0abba2c6dd8ff242 to your computer and use it in GitHub Desktop.
Save JustinAzoff/446d0abba2c6dd8ff242 to your computer and use it in GitHub Desktop.
##! Add the peer to the connection logs.
module Conn;
export {
redef record Conn::Info += {
peer: string &optional &log;
};
}
event connection_state_remove(c: connection) {
c$conn$peer = peer_description;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment