[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-coders
Subject:    Re: a problem of setting string in oid
From:       Yi ZHOU <zoe615 () gmail ! com>
Date:       2010-06-22 8:44:14
Message-ID: AANLkTiny0wOg1uSUYxt0Z6L_Edphhi3dTJfpC1On_SoN () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/related)]

[Attachment #4 (multipart/alternative)]


great, it works proprely.[?]

On Mon, Jun 21, 2010 at 11:45 PM, Yi ZHOU <zoe615@gmail.com> wrote:

> oh, yes, you're right magnus, i'll try this in the machine tomorrow morning
> to see if it works, tks a lot.
>
>
> On Mon, Jun 21, 2010 at 10:42 PM, Magnus Fromreide <magfr@lysator.liu.se>wrote:
>
>> On Mon, Jun 21, 2010 at 09:50:54PM +0200, Yi ZHOU wrote:
>> > thanks magnus, but i did set my xxxNetInterfaceName_len,
>>
>> Where?
>>
>> I do not see any location where entry->xxxNetInterfaceName_len get set
>> in neither your original code nor in the code fragment you have pasted
>> in below.
>>
>> >     char* strName = "Ethernet";
>> >     size_t len = strlen("Ethernet");
>> >
>> >     entry = xxxNetInterfaceTable_createEntry(0);
>> >     memcpy(entry->xxxNetInterfaceName, strName, len);
>> >     entry->xxxNetInterfaceStatus = 0;
>> >
>> >  please ignore the second part(i mean for RTC interface)
>>
>> Sure, that is not relevant for your question.
>>
>> /MF
>>
>
>

[Attachment #7 (text/html)]

great, it works proprely.<img style="MARGIN: 0px 0.2ex; VERTICAL-ALIGN: middle" \
src="cid:338@goomoji.gmail" width="12" height="12" goomoji="338"><br><br> <div \
class="gmail_quote">On Mon, Jun 21, 2010 at 11:45 PM, Yi ZHOU <span dir="ltr">&lt;<a \
href="mailto:zoe615@gmail.com">zoe615@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" \
class="gmail_quote">oh, yes, you&#39;re right magnus, i&#39;ll try this in the \
machine tomorrow morning to see if it works, tks a lot.   <div>
<div></div>
<div class="h5"><br><br>
<div class="gmail_quote">On Mon, Jun 21, 2010 at 10:42 PM, Magnus Fromreide <span \
dir="ltr">&lt;<a href="mailto:magfr@lysator.liu.se" \
target="_blank">magfr@lysator.liu.se</a>&gt;</span> wrote:<br> <blockquote \
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" \
class="gmail_quote"> <div>On Mon, Jun 21, 2010 at 09:50:54PM +0200, Yi ZHOU \
wrote:<br>&gt; thanks magnus, but i did set my \
xxxNetInterfaceName_len,<br><br></div>Where?<br><br>I do not see any location where \
entry-&gt;xxxNetInterfaceName_len get set<br> in neither your original code nor in \
the code fragment you have pasted<br>in below.<br> <div><br>&gt;     char* strName = \
&quot;Ethernet&quot;;<br>&gt;     size_t len = \
strlen(&quot;Ethernet&quot;);<br>&gt;<br>&gt;     entry = \
xxxNetInterfaceTable_createEntry(0);<br>&gt;     \
memcpy(entry-&gt;xxxNetInterfaceName, strName, len);<br> &gt;     \
entry-&gt;xxxNetInterfaceStatus = 0;<br>&gt;<br>&gt;  please ignore the second part(i \
mean for RTC interface)<br><br></div>Sure, that is not relevant for your \
question.<br><font color="#888888"><br>/MF<br></font></blockquote> \
</div><br></div></div></blockquote></div><br>

--0016364175110e7fc504899a6dcb--


["338.gif" (image/gif)]

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic