Query on SET phases for table objects

2018-04-04 Thread Madhusudhana R
Hi Coders,

I have a query regarding the SET phases for table objects.

The phases of SET are as follows:
MODE_SET_RESERVE10
MODE_SET_RESERVE21
MODE_SET_ACTION2
MODE_SET_COMMIT  3
MODE_SET_FREE 4
MODE_SET_UNDO   5

SCALAR Objects:
When I do SET with multiple varbinds on scalar objects, say for below command.

snmpset -v2c -c private localhost  var1.0  i  123  var2.0 s "abcde"

the phases of SET are as follows called from handle_set_loop()

   var1 var2
 var1 var2  
   var1 var2
 var1 var2
MODE_SET_RESERVE1  ->  MODE_SET_RESERVE1 -> MODE_SET_RESERVE2 -> 
MODE_SET_RESERVE2 -> MODE_SET_ACTION -> MODE_SET_ACTION -> MODE_SET_COMMIT -> 
MODE_SET_COMMIT.



TABLE Objects:
When I do SET with multiple varbinds on Table objects, say for below command,

Snmpset -v2c -c private localhost  snmpvar1.1.4.5 i 123  snmpvar2.2.4.5 s 
"abcde"

the phases of SET are as follows called from handle_set_loop()

   Var1 var1
 var1 var1
MODE_SET_RESERVE1 -> MODE_SET_RESERVE2 -> MODE_SET_ACTION -> MODE_SET_COMMIT

   Var2 var2
 var2 var2
MODE_SET_RESERVE1 -> MODE_SET_RESERVE2 -> MODE_SET_ACTION -> MODE_SET_COMMIT
Here, the SET phases are completed for var1 first and then to var2. If there is 
any failure in setting var2, it won't affect the SET on var1.


The phases of SET are different for scalars and table objects. The phases for 
scalar objects is as per RFC 3416 but not table objects.

I need to understand whether netsnmp itself has a different SET phase for table 
objects and  scalar objects or have I done something wrong in coding ?

Appreciate any response.

Thanks in advance.

Regards,
Madhu

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: IRC chat to help our new guard get on board?

2018-04-04 Thread Eric S. Raymond
Keith Mendoza :
> So far, this is the time that may work for everyone if we do it the
> week of April 8 (UTC and US time zones): 5:30 AM PDT/6:30 AM MDT/7:30
> AM CDT/8:30 AM EDT/12:30 PM UTC--6:00 AM PDT/7:00 AM MDT/8:00 AM
> CDT/9:00 AM EDT/1:00 PM UTC.
> 
> Eric,
> How do you feel about having the meeting the week of April 16 to see
> if we can get better timing and more people to come?

I don't have a preference.  I think you're collecting better information
to base a decision on than I am.
-- 
http://www.catb.org/~esr/;>Eric S. Raymond

My work is funded by the Internet Civil Engineering Institute: https://icei.org
Please visit their site and donate: the civilization you save might be your own.



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Unstable tests

2018-04-04 Thread Bart Van Assche

On 04/04/18 09:30, Keith Mendoza wrote:

I actually found no.such.address in line 79 of T070com2sec_simple.
That host has been hijacked by barefruit.co.uk who "generates highly
targeted traffic for ISPs by replacing DNS and HTTP errors with
relevant advertising"; which is now causing the test case to fail.
Attempting to talk HTTP to the IP gave the the impression that either
my ISP is cahoots with this company; or they're intercepting the IP
back to their advertisement page. On the upside, Google's and
cloudflare's DNS are not resolving; but, that still means point your
network to use those nameservers :(


That means that your ISP is doing something dubious. Anyway, we could 
add a workaround for broken ISP DNS configurations using the same 
approach as for the domain names onea.net-snmp.org and twoa.net-snmp.org.


Bart.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: IRC chat to help our new guard get on board?

2018-04-04 Thread Keith Mendoza
So far, this is the time that may work for everyone if we do it the
week of April 8 (UTC and US time zones): 5:30 AM PDT/6:30 AM MDT/7:30
AM CDT/8:30 AM EDT/12:30 PM UTC--6:00 AM PDT/7:00 AM MDT/8:00 AM
CDT/9:00 AM EDT/1:00 PM UTC.

Eric,
How do you feel about having the meeting the week of April 16 to see
if we can get better timing and more people to come?

Thanks,
Keith
Thanks,
Keith


On Wed, Apr 4, 2018 at 10:20 AM, Ashutosh Kumar  wrote:
> Hi Eric, Keith and All,
>
> I am Ashutosh, and I work as a junior software developer. I got to know
> about net-snmp thanks to my previous project.
> I have just covered the basic source code as of now, (like snmpget.c,
> snmpset.c, snmptable.c, etc.)  but would like to get involved and contribute
> to the project to best of my abilities.
>
> I'm willing to attend and any time between 1:30 AM to 3:30 AM UTC and 12:30
> PM to 17:30 PM UTC would be fine by me, if that works for other developers.
>
> Thanks,
> Ashutosh
>
> On Wed, Apr 4, 2018 at 6:24 AM, Eric S. Raymond  wrote:
>>
>> ICEI has a #newguard channel on freenode where its "new guard" -
>> programmers who want to get involved in infrastructure work - hang
>> out.
>>
>> Some of them are interested in contributing to net-snmp. Joining Ian
>> on the bug triage would be an obvious way to on-board them, but that
>> will work better if they have more sense of the scope and direction of
>> the project and feel like they know its key people.
>>
>> We'd like to set up a time for a short IRC conference for them to get
>> to know your project's senior devs and vice-versa. Ian and Keith and I
>> will be there, of course. We can talk about what needs to be done and
>> recruit you some more help.
>>
>> We'd like to especially invite your project owner and release manager
>> and tech lead (understanding that those might be the same person) but
>> any net-snmp dev would be welcome and the more the better
>>
>> If you're willing to attend, please respond with your name, your
>> project role, and some indication of when you could be free for a
>> 45-minute IRC chat within the next ten days.
>> --
>> http://www.catb.org/~esr/;>Eric S. Raymond
>>
>> It would be thought a hard government that should tax its people one tenth
>> part.   -- Benjamin Franklin
>>
>>
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Net-snmp-coders mailing list
>> Net-snmp-coders@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: IRC chat to help our new guard get on board?

2018-04-04 Thread Ashutosh Kumar
Hi Eric, Keith and All,

I am Ashutosh, and I work as a junior software developer. I got to know
about net-snmp thanks to my previous project.
I have just covered the basic source code as of now, (like snmpget.c,
snmpset.c, snmptable.c, etc.)  but would like to get involved and
contribute to the project to best of my abilities.

I'm willing to attend and any time between 1:30 AM to 3:30 AM UTC and 12:30
PM to 17:30 PM UTC would be fine by me, if that works for other developers.

Thanks,
Ashutosh

On Wed, Apr 4, 2018 at 6:24 AM, Eric S. Raymond  wrote:

> ICEI has a #newguard channel on freenode where its "new guard" -
> programmers who want to get involved in infrastructure work - hang
> out.
>
> Some of them are interested in contributing to net-snmp. Joining Ian
> on the bug triage would be an obvious way to on-board them, but that
> will work better if they have more sense of the scope and direction of
> the project and feel like they know its key people.
>
> We'd like to set up a time for a short IRC conference for them to get
> to know your project's senior devs and vice-versa. Ian and Keith and I
> will be there, of course. We can talk about what needs to be done and
> recruit you some more help.
>
> We'd like to especially invite your project owner and release manager
> and tech lead (understanding that those might be the same person) but
> any net-snmp dev would be welcome and the more the better
>
> If you're willing to attend, please respond with your name, your
> project role, and some indication of when you could be free for a
> 45-minute IRC chat within the next ten days.
> --
> http://www.catb.org/~esr/;>Eric S. Raymond
>
> It would be thought a hard government that should tax its people one tenth
> part.   -- Benjamin Franklin
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Unstable tests

2018-04-04 Thread Keith Mendoza
Bart,


On Sun, Apr 1, 2018 at 8:26 AM, Bart Van Assche  wrote:
> On 03/31/18 22:19, Keith Mendoza wrote:
>>
>> I personally feel that whoever is running the automated tests should
>> make the necessary changes to their environment to resolve any
>> hostname that is needed to run the tests.
>
>
> I don't have root access to the BSD and AIX systems that I use for testing
> Net-SNMP. So modifying /etc/resolv.conf or equivalent on these systems is
> not an option.

I'm wiling to take on testing BSD if you can give me the spec for the
you're using. Unfortunately, I don't  have access to an AIX hardware.

>
>> From a software development and testing point-of-view I feel that we
>> will eventually get caught in expanding the number of hostnames that
>> will have to be handled by all the hostname resolution utility
>> functions in snmplib/system.c. I haven't had a chance to do a complete
>> analysis of how many each of the *gethostbyname* function variants are
>> used through the net-snmp code base; so, I'm not going to speak as to
>> whether these changes is limited to netsnmp_gethostbyname_v4(), or
>> should be applied elsewhere.
>
>
> That's not correct. onea.net-snmp.org and twoa.net-snmp.org are the only two
> that need special handling. If more functions than
> netsnmp_gethostbyname_v4() would have to recognize these hostnames, we can
> refactor the host name resolution functions such that only one function
> needs to know about these special hostnames.

I actually found no.such.address in line 79 of T070com2sec_simple.
That host has been hijacked by barefruit.co.uk who "generates highly
targeted traffic for ISPs by replacing DNS and HTTP errors with
relevant advertising"; which is now causing the test case to fail.
Attempting to talk HTTP to the IP gave the the impression that either
my ISP is cahoots with this company; or they're intercepting the IP
back to their advertisement page. On the upside, Google's and
cloudflare's DNS are not resolving; but, that still means point your
network to use those nameservers :(

>
> Bart.
>
>
>

Thanks,
Keith

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: IRC chat to help our new guard get on board?

2018-04-04 Thread Bart Van Assche

On 04/03/18 20:16, Keith Mendoza wrote:

Thank you for your interest. Please let us know when you're free; we
will schedule the meeting based on what works best for the net-snmp
devs who would like to join us.


Hello Keith,

This week 6 PM - 9 PM PDT works for me. Next week 6 AM - 7 AM MDT will 
work for me since I will travel to Colorado. Does this work for the 
others who are interested?


Bart.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Query on SET phases for table objects

2018-04-04 Thread Madhusudhana R
Hi Coders,

I have a query regarding the SET phases for table objects.

The phases of SET are as follows:
MODE_SET_RESERVE10
MODE_SET_RESERVE21
MODE_SET_ACTION2
MODE_SET_COMMIT  3
MODE_SET_FREE 4
MODE_SET_UNDO   5

SCALAR Objects:
When I do SET with multiple varbinds on scalar objects, say for below command.

snmpset -v2c -c private localhost  var1.0  i  123  var2.0 s "abcde"

the phases of SET are as follows called from handle_set_loop()

   var1 var2
 var1 var2  
   var1 var2
 var1 var2
MODE_SET_RESERVE1  ->  MODE_SET_RESERVE1 -> MODE_SET_RESERVE2 -> 
MODE_SET_RESERVE2 -> MODE_SET_ACTION -> MODE_SET_ACTION -> MODE_SET_COMMIT -> 
MODE_SET_COMMIT.



TABLE Objects:
When I do SET with multiple varbinds on Table objects, say for below command,

Snmpset -v2c -c private localhost  snmpvar1.1.4.5 i 123  snmpvar2.2.4.5 s 
"abcde"

the phases of SET are as follows called from handle_set_loop()

   Var1 var1
 var1 var1
MODE_SET_RESERVE1 -> MODE_SET_RESERVE2 -> MODE_SET_ACTION -> MODE_SET_COMMIT

   Var2 var2
 var2 var2
MODE_SET_RESERVE1 -> MODE_SET_RESERVE2 -> MODE_SET_ACTION -> MODE_SET_COMMIT
Here, the SET phases are completed for var1 first and then to var2. If there is 
any failure in setting var2, it won't affect the SET on var1.


The phases of SET are different for scalars and table objects. The phases for 
scalar objects is as per RFC 3416 but not table objects.

I need to understand whether netsnmp itself has a different SET phase for table 
objects and  scalar objects or have I done something wrong in coding ?

Appreciate any response.

Thanks in advance.

Regards,
Madhu

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders