How I generate a ip_table

2014-01-28 Thread Rafael Ratacheski
1.4.22.1.2 net adress (ip) - .1.3.6.1.2.1.4.22.1.3 Thanks Rafael Ratacheski -- WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on ke

Re: Trouble in concatenate a value to a string

2013-10-31 Thread Rafael Ratacheski
The stringstream worked perfectly. thank you very much 2013/10/31 Schmoll Walter > … > > returned += static_cast (*bp++); > > … > returned += static_cast (*bp++); > > … > > > > I never used std::string, so I’m no expert. But according to > http://www.cplusp

Re: Trouble in concatenate a value to a string

2013-10-30 Thread Rafael Ratacheski
r*) buf; string returned("test:"); if (buflen > 0) { returned += static_cast (*bp++); for (size_t i = 1; i < buflen; ++i) { returned += '.'; returned += static_cast (*bp++); } } return returned; } What am I

RE: Trouble in concatenate a value to a string

2013-10-30 Thread Rafael Ratacheski
d, which is > part of net-snmp lib? > > I haven’t read your code in detail, so maybe I’m wrong. > > ** ** > > Walter > > ** ** > > *From:* Rafael Ratacheski [mailto:rafaelratache...@gmail.com] > *Sent:* Dienstag, 29. Oktober 2013 19:51 > *To:* net-sn

Trouble in concatenate a value to a string

2013-10-29 Thread Rafael Ratacheski
Hello, I'm having problem in concatenate the oid value in a string. I've tried several possible ways, but all unsuccessfully. Can you help me? My code is string print_ip(const void* buf, size_t buflen) { unsigned const char* bp = (unsigned const char*) buf; string returned("test:"); s

Re: Trouble in converting PhysAdress to OctetString

2013-10-04 Thread Rafael Ratacheski
It works very well. thank you 2013/10/4 Magnus Fromreide > On Fri, 2013-10-04 at 18:13 +0000, Rafael Ratacheski wrote: > > > > Your solution resolve my problem partially, I have success to print > > the value but my real objective is save the value in a buffer, and > &g

Re: Trouble in converting PhysAdress to OctetString

2013-10-04 Thread Rafael Ratacheski
On Thu, 2013-10-03 at 18:14 +, Rafael Ratacheski wrote: > > Hello, I'm having troubles in request and save the value of the > > ipNetToMediaPhysAddress OID. > > > > My routine get the MAC Adress, but only a half of the value. > > > > What I

Trouble in converting PhysAdress to OctetString

2013-10-03 Thread Rafael Ratacheski
Hello, I'm having troubles in request and save the value of the ipNetToMediaPhysAddress OID. My routine get the MAC Adress, but only a half of the value. What I'm doing wrong? Can you help me? if (vars->type == ASN_OCTET_STR) { u_long *sp = malloc(1+id_len); memcpy(sp, vars

HELP Net-SNMP with C++

2013-08-26 Thread Rafael Ratacheski
Hey guys, I need some help to develop a C++ Code to track a network, and i'm not have success to associate the net-snmp library with the netbeans. -- Introducing Performance Central, a new site from SourceForge and AppDyna