GithubHelp home page GithubHelp logo

Comments (10)

soniah avatar soniah commented on May 28, 2024

Thanks! Have I missed the pull request? Or would you mind making one? :-)

from gosnmp.

MrSpock avatar MrSpock commented on May 28, 2024

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.

soniah avatar soniah commented on May 28, 2024

Great thanks

from gosnmp.

soniah avatar soniah commented on May 28, 2024

16 bit integer committed with dea03ab - thanks.

Next step - ipaddress.

from gosnmp.

soniah avatar soniah commented on May 28, 2024

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.

soniah avatar soniah commented on May 28, 2024

See also #26

from gosnmp.

MrSpock avatar MrSpock commented on May 28, 2024

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.

soniah avatar soniah commented on May 28, 2024

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.

MrSpock avatar MrSpock commented on May 28, 2024

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.

soniah avatar soniah commented on May 28, 2024

Tests written, tidied, merged. Thanks very much!

from gosnmp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.