Modify

Opened 7 years ago

Closed 6 years ago

#7084 closed defect (fixed)

mini_snmpd: could not create UDP socket: Address family not supported by protocol

Reported by: anonymous Owned by: developers
Priority: high Milestone: Backfire 10.03.1
Component: packages Version: Backfire 10.03
Keywords: snmpd snmp Cc:

Description

# uci show mini_snmpd
mini_snmpd.@mini_snmpd[0]=mini_snmpd
mini_snmpd.@mini_snmpd[0].enabled=1
mini_snmpd.@mini_snmpd[0].community=public
mini_snmpd.@mini_snmpd[0].disks=/tmp,/jffs
mini_snmpd.@mini_snmpd[0].interfaces=lo,br-lan,eth0.1

# logread
Apr  5 11:50:47 OpenWrt daemon.info mini_snmpd[1003]: started, listening on port 161/udp and 161/tcp
Apr  5 11:50:47 OpenWrt daemon.err mini_snmpd[1003]: could not create UDP socket: Address family not supported by protocol

Attachments (0)

Change History (8)

comment:1 follow-up: Changed 7 years ago by nico

Confirmed on UML, mini_snmpd only works if kmod-ipv6 is installed

comment:2 Changed 7 years ago by nico

  • Version changed from Backfire 10.03 RC3 to Backfire 10.03

comment:3 in reply to: ↑ 1 Changed 7 years ago by tlm

Replying to nico:

Confirmed on UML, mini_snmpd only works if kmod-ipv6 is installed

The culprit is 104-ipv6-support.patch
(it uses an ipv6 socket)
Maybe there could be two versions, one for IPv6 and one for IPv4?
The new beta version ov mini_snmpd supports this with a compile-time flag.

comment:4 Changed 7 years ago by acoul

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r20889

comment:5 Changed 7 years ago by nx5

Is this really fixed on backfire 10.03? I just tried installing mini-snmpd without having kmod-ipv6 and i have the same error "could not create udp socket blabla"

comment:6 Changed 7 years ago by nx5

sorry i didn't notice this was a 10.03 bug...

comment:7 Changed 6 years ago by tran@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

this is still/again broken in 10.03.1-rc4

comment:8 Changed 6 years ago by jow

  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed with r26826 - mini_snmpd will now do v4 by default but can be switched to v6 by passing the "-6" or "--ipv6" flag. I also added a corresponding UCI option.

Note that the -4 and -6 options will be unrecognized if mini_snmpd is built without global ipv6 support.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.