mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-04 05:39:53 +00:00
snmp_trap_dst_ip_set: ip_addr_t pointer can be const
This commit is contained in:
parent
a9b6b5b704
commit
180ed573a5
@ -100,7 +100,7 @@ snmp_trap_dst_enable(u8_t dst_idx, u8_t enable)
|
|||||||
* @param dst IPv4 address in host order.
|
* @param dst IPv4 address in host order.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
snmp_trap_dst_ip_set(u8_t dst_idx, ip_addr_t *dst)
|
snmp_trap_dst_ip_set(u8_t dst_idx, const ip_addr_t *dst)
|
||||||
{
|
{
|
||||||
if (dst_idx < SNMP_TRAP_DESTINATIONS)
|
if (dst_idx < SNMP_TRAP_DESTINATIONS)
|
||||||
{
|
{
|
||||||
|
@ -55,7 +55,7 @@ struct snmp_obj_id
|
|||||||
/** Agent setup, start listening to port 161. */
|
/** Agent setup, start listening to port 161. */
|
||||||
void snmp_init(void);
|
void snmp_init(void);
|
||||||
void snmp_trap_dst_enable(u8_t dst_idx, u8_t enable);
|
void snmp_trap_dst_enable(u8_t dst_idx, u8_t enable);
|
||||||
void snmp_trap_dst_ip_set(u8_t dst_idx, ip_addr_t *dst);
|
void snmp_trap_dst_ip_set(u8_t dst_idx, const ip_addr_t *dst);
|
||||||
|
|
||||||
const char * snmp_get_community(void);
|
const char * snmp_get_community(void);
|
||||||
void snmp_set_community(const char * const community);
|
void snmp_set_community(const char * const community);
|
||||||
|
Loading…
Reference in New Issue
Block a user