lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Compiling RFC1213-MIB with LwIP MIB Compiler


From: pat
Subject: Re: [lwip-users] Compiling RFC1213-MIB with LwIP MIB Compiler
Date: Mon, 20 Apr 2020 17:43:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

I found a solution by using other MIB files.

On 20.04.20 12:48, pat wrote:
> Hey LwIP!
> 
> I'm successfully implementing an SNMP agent with your library - thanks
> for all your work!
> 
> But currently I'm stuck when compiling RFC-1213-MIB with the C# MIB
> Compiler.
> 
> First issue I found was:
> 
> SnmpNode.cs:41:
> 
>       public static readonly Regex NameValidationRegex
>       = new Regex(@"^\w+$");
> 
> Because RFC1213-MIB includes a line:
> 
>       --  MIB-II (same prefix as MIB-I)
> 
>       mib-2      OBJECT IDENTIFIER ::= { mgmt 1 }
> 
> ...the regex should rather look like:
> 
>       public static readonly Regex NameValidationRegex
>       = new Regex(@"^[\w-]+$");
> 
> which includes the "-" in "mib-2".
> 
> But after fixing this I still stuck at some "atTable". Currently I'm
> debugging this but maybe someone has an idea or can tell mit that this
> MIB is not supported or something els which could help me.
> 
> thx!
> 

-- 
regards, pat.

address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]