diff options
author | Micael Karlberg <[email protected]> | 2011-03-07 19:22:30 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-03-07 19:22:30 +0100 |
commit | 0c14ab3979bb1eba4b4398c92d176e56eba8286b (patch) | |
tree | c21e60501bb4fc6446d9ba2b1091886c623b0120 /lib/snmp/src/agent/snmpa_agent.erl | |
parent | e91ecef78904be02bb785fdff0dcaf6d38176ba7 (diff) | |
download | otp-0c14ab3979bb1eba4b4398c92d176e56eba8286b.tar.gz otp-0c14ab3979bb1eba4b4398c92d176e56eba8286b.tar.bz2 otp-0c14ab3979bb1eba4b4398c92d176e56eba8286b.zip |
Basically backup commit (time to go home).
Implemented handling of domains in the mpd module.
Still some errors left though (3 test cases fail).
Diffstat (limited to 'lib/snmp/src/agent/snmpa_agent.erl')
-rw-r--r-- | lib/snmp/src/agent/snmpa_agent.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/snmp/src/agent/snmpa_agent.erl b/lib/snmp/src/agent/snmpa_agent.erl index f70885b2ec..c6a45c9f25 100644 --- a/lib/snmp/src/agent/snmpa_agent.erl +++ b/lib/snmp/src/agent/snmpa_agent.erl @@ -1470,7 +1470,10 @@ handle_backup_res([{Who, Crap}|Results], Acc) -> %% because we (for some reason) support the function %% snmpa:current_community(). %%----------------------------------------------------------------- -cheat({community, _SecModel, Community, _IpUdp}, Address, ContextName) -> +cheat({community, SecModel, Community, _TAddress}, Address, ContextName) -> + {Community, Address, ContextName}; +cheat({community, _SecModel, Community, _TDomain, _TAddress}, + Address, ContextName) -> {Community, Address, ContextName}; cheat(_, Address, ContextName) -> {"", Address, ContextName}. |