snmp 0.1.0.3 → 0.2.0.0
raw patch · 3 files changed
+5/−5 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- Network.Protocol.Snmp: Gaude32 :: Word32 -> Value
- Network.Snmp.Client: Gaude32 :: Word32 -> Value
+ Network.Protocol.Snmp: Gauge32 :: Word32 -> Value
+ Network.Snmp.Client: Gauge32 :: Word32 -> Value
Files
- snmp.cabal +1/−1
- src/Network/Protocol/Snmp.hs +3/−3
- src/Network/Snmp/Client.hs +1/−1
snmp.cabal view
@@ -1,5 +1,5 @@ name: snmp-version: 0.1.0.3+version: 0.2.0.0 synopsis: API for write snmp client. description: API for write snmp client. license: BSD3
src/Network/Protocol/Snmp.hs view
@@ -231,7 +231,7 @@ | String ByteString | IpAddress Word8 Word8 Word8 Word8 | Counter32 Word32- | Gaude32 Word32+ | Gauge32 Word32 | TimeTicks Word32 | Opaque ByteString | Counter64 Word64@@ -683,7 +683,7 @@ toASN1 (String x) xs = OctetString x : xs toASN1 (IpAddress a1 a2 a3 a4) xs = Other Application 0 (B.pack [a1, a2, a3, a4]) : xs toASN1 (Counter32 x) xs = Other Application 1 (packInteger (fI x)) : xs- toASN1 (Gaude32 x) xs = Other Application 2 (packInteger (fI x)) : xs+ toASN1 (Gauge32 x) xs = Other Application 2 (packInteger (fI x)) : xs toASN1 (TimeTicks x) xs = Other Application 3 (packInteger (fI x)) : xs toASN1 (Opaque x) xs = Other Application 4 x : xs toASN1 (Counter64 x) xs = Other Application 6 (packInteger (fI x)) : xs@@ -702,7 +702,7 @@ Right z -> return $ Counter32 (fI z) Left _ -> throw $ ServerException 9 unp (Other Application 2 y) = case unpackInteger y of- Right z -> return $ Gaude32 (fI z)+ Right z -> return $ Gauge32 (fI z) Left _ -> throw $ ServerException 9 unp (Other Application 3 y) = case unpackInteger y of Right z -> return $ TimeTicks (fI z)
src/Network/Snmp/Client.hs view
@@ -15,7 +15,7 @@ , Suite(..) , PrivAuth(..) , AuthType(..)-, Value(String, Integer, IpAddress, Counter32, Gaude32, TimeTicks, Opaque, Counter64, ZeroDotZero, Zero, OI)+, Value(String, Integer, IpAddress, Counter32, Gauge32, TimeTicks, Opaque, Counter64, ZeroDotZero, Zero, OI) -- * client , client -- ** client methods