Comments (10)
Thanks! Have I missed the pull request? Or would you mind making one? :-)
from gosnmp.
Sonia,
Somehow it merged with my previous pull-request regarding SnmpSET OctetString.
At least I see in this pull-req diff new code for IPAddress type support I made and fix for Integer handling with additional helper function.
Please let me know if you see that too .
from gosnmp.
Great thanks
from gosnmp.
16 bit integer committed with dea03ab - thanks.
Next step - ipaddress.
from gosnmp.
Hi Marcin. I've setup two branches 'soniah/set_octetstring' and 'soniah/set_ipaddress'. I'm trying to tidy up your code :-) and work out what's happening.
I've downloaded your pcap from https://dl.dropboxusercontent.com/u/7660386/github/snmpset_native.pcap for two integers and two OctetStrings. Would you be able to put up a pcap for ipaddresses?
Sorry if I sound a little confused - I had surgery 8 days ago and I'm a bit tired... :-/
But I appreciate your contributions! :-)
from gosnmp.
See also #26
from gosnmp.
Sonia,
I made slightly wrong in boundary check in code you commited.
Line:
if value > 0xff && value < 0xffff
Should be:
if value > 0xff && value <= 0xffff
Second comparision should cover 0xffff also :)
With current code you can't set 0xffff (65535) value.
from gosnmp.
Thanks, fixed :-) I've rebased 'soniah/set_octetstring' and 'soniah/set_ipaddress', so you'll need to pull again if you pulled in the last 15 mins.
from gosnmp.
Sonia,
Not a problem.
Difference between OctetString and IPAddres is only one byte (packet type
in varbind). Maybe it is worth to separate some common code.
I will provide you with pcap files.
6 wrz 2014 14:56 "Sonia Hamilton" [email protected] napisaล(a):
Hi Marcin. I've setup two branches 'soniah/set_octetstring' and
'soniah/set_ipaddress'. I'm trying to tidy up your code :-) and work out
what's happening.I've downloaded your pcap from
https://dl.dropboxusercontent.com/u/7660386/github/snmpset_native.pcap
for two integers and two OctetStrings. Would you be able to put up a pcap
for ipaddresses?Sorry if I sound a little confused - I had surgery 8 days ago and I'm a
bit tired... :-/โ
Reply to this email directly or view it on GitHub
#30 (comment).
from gosnmp.
Tests written, tidied, merged. Thanks very much!
from gosnmp.
Related Issues (20)
- multiple device concurrent polling fails unless you create your own snmp object HOT 2
- Question: Use on Windows HOT 1
- VULNERABILITY [CWE-347] CVE-2020-9283] golang.org/x/crypto Improper Signature Verification HOT 1
- Sometimes a previous privacy passphrase is reused instead of the specified one
- usmStatsUnknownUserNames as terminating error? HOT 3
- Chinese coding is garbled HOT 2
- How to configure read/write community? HOT 1
- marshal: marshalPDU: unable to marshal varbind list: unable to marshal OID: Value out of range HOT 2
- Should cancelling a context interrupt an ongoing operation?
- out of bounds error when parsing AuthNoPriv packet HOT 4
- msgMaxSize to be supported in SNMP v3 bulkwalk requests
- V3 feat needed: Load keys manually if the passphrases are not allowed be saved locally HOT 1
- Connect function in gosnmp always returns nil even if the credentials are not valid HOT 1
- Panic in unmarshalV3Header
- Compatibility with GoSNMPServer HOT 7
- `net-snmp` based validation testing HOT 5
- Request ID size too large
- Not handling `0` values correctly for `OpaqueDouble` or `OpaqueFloat`
- Using SnmpDecodePacket for Encrypted/Authenticated Packets in GoSNMP HOT 5
- Retry netConnect() on resolution failure HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gosnmp.