Bug 254056

Summary: net-mgmt/net-snmp Error 2 (No such file or directory) could not get the assoclist
Product: Ports & Packages Reporter: Christos Chatzaras <chris>
Component: Individual Port(s)Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: zi
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
sctp-mib disabled by default patch none

Description Christos Chatzaras 2021-03-06 07:24:42 UTC
After upgrading from 12.2 to 13.0-RC1 when I restart/start snmpd runs correctly but it shows:

"Error 2 (No such file or directory) could not get the assoclist"

As there is no "sysctl net.inet.sctp" in my system after the upgrade I believe it's the same issue reported here:

https://sourceforge.net/p/net-snmp/bugs/2311/
Comment 1 Christos Chatzaras 2021-03-06 07:48:55 UTC
This commit removes SCTP from kernel configuration:

https://cgit.freebsd.org/src/commit/?id=e64080e79c53f2952c5a77c6402cd2473cd45d8c

SCTP can be enabled by loading the module:

kldload sctp

As the default 13.0 setting is to not load SCTP I think many people will notice this message after 13.0 is released.
Comment 2 Ryan Steinmetz freebsd_committer freebsd_triage 2021-03-06 13:52:51 UTC
Created attachment 223024 [details]
sctp-mib disabled by default patch

Would you mind testing the attached patch?  It should convert SCTP support to an OPTION and make it off by default.
Comment 3 Christos Chatzaras 2021-03-06 16:40:46 UTC
Yes the patch works. Thank you.
Comment 4 commit-hook freebsd_committer freebsd_triage 2021-03-08 13:55:57 UTC
A commit references this bug:

Author: zi
Date: Mon Mar  8 13:55:18 UTC 2021
New revision: 567846
URL: https://svnweb.freebsd.org/changeset/ports/567846

Log:
  - Move SCTP support to an OPTION, off by default, to reflect 13.x changes
  - Bump PORTREVISION

  PR:		254056

Changes:
  head/net-mgmt/net-snmp/Makefile