This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to make lwip SNMP work


If you apply the patch in [ Bugzilla 1001789], remove the htonl like this:

addr.addr = snmp_message->ADDRESS.addr;


> 
> 		snmp_message = (SNMP_MESSAGE_PTR) cyg_mbox_get(snmp_mailbox_handle);
> 		if (snmp_message->COMMAND == SNMP_SEND_TRAP)
> 		{
> 			struct ip_addr addr;
> 			// Reverse the bytes because snmp_trap_dst_ip_set reverses them again.
> 			addr.addr = htonl(snmp_message->ADDRESS.addr);
> 			snmp_trap_dst_ip_set(0,&addr);
> 			snmp_trap_dst_enable(0,snmp_message->TRAP);
> 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]