aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/agent/snmpa_network_interface_filter.erl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2014-05-07 08:43:07 +0200
committerRaimo Niskanen <[email protected]>2014-07-25 12:15:14 +0200
commit382e91a930b3d20d4e4cce14ea6c3cbc7e4397d7 (patch)
tree5dfcd9909a5024315b8010d41e1b7309a50b5328 /lib/snmp/src/agent/snmpa_network_interface_filter.erl
parent89ca2960d421a43bced0a9f228a62b8ab3089663 (diff)
downloadotp-382e91a930b3d20d4e4cce14ea6c3cbc7e4397d7.tar.gz
otp-382e91a930b3d20d4e4cce14ea6c3cbc7e4397d7.tar.bz2
otp-382e91a930b3d20d4e4cce14ea6c3cbc7e4397d7.zip
Rewrite agent to use {Domain,Address} tuples as far as possible
Diffstat (limited to 'lib/snmp/src/agent/snmpa_network_interface_filter.erl')
-rw-r--r--lib/snmp/src/agent/snmpa_network_interface_filter.erl17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/snmp/src/agent/snmpa_network_interface_filter.erl b/lib/snmp/src/agent/snmpa_network_interface_filter.erl
index 6fa131beee..3fa83db874 100644
--- a/lib/snmp/src/agent/snmpa_network_interface_filter.erl
+++ b/lib/snmp/src/agent/snmpa_network_interface_filter.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2007-2009. All Rights Reserved.
+%% Copyright Ericsson AB 2007-2014. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -23,28 +23,29 @@
behaviour_info(callbacks) ->
- [{accept_recv, 2},
- {accept_send, 2},
- {accept_recv_pdu, 3},
+ [{accept_recv, 1},
+ {accept_send, 1},
+ {accept_recv_pdu, 2},
{accept_send_pdu, 2}];
behaviour_info(_) ->
undefined.
-%% accept_recv(address(), port()) -> boolean()
+%% accept_recv({domain(), address()}) -> boolean()
%% Called at the receiption of a message
%% (before *any* processing has been done).
%%
-%% accept_send(address(), port()) -> boolean()
+%% accept_send({domain(), address()}) -> boolean()
%% Called before the sending of a message
%% (after *all* processing has been done).
%%
-%% accept_recv_pdu(Addr, Port, pdu_type()) -> boolean()
+%% accept_recv_pdu({domain(), address()}, pdu_type()) -> boolean()
%% Called after the basic message processing (MPD) has been done,
%% but before the pdu is handed over to the master-agent for
%% primary processing.
%%
-%% accept_send_pdu(Targets, pdu_type()) -> boolean() | NewTargets
+%% accept_send_pdu([{domain(), address()}, ...] = Targets, pdu_type()) ->
+%% boolean() | NewTargets
%% Called before the basic message processing (MPD) is done,
%% when a pdu has been received from the master-agent.
%%