Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support NET-SNMP 5.8 #33

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

lunkwill42
Copy link

NET-SNMP 5.8 made changes to the session and pdu structs. This caused binary incompatibilites with pynetsnmp's definitions of the same structs (and hence, segmentation faults in strange places).

These changes seem to be the minimum necessary to get simple usage of pynetsnmp with NET-SNMP 5.8 to work.

Because:
- This field was added to the struct in NET-SNMP 5.8, causing a binary
  incompatibility.

Reference:
net-snmp/net-snmp@f629d12
Because:
- This field was added to the netsnmp_session struct in NET-SNMP 5.8,
  causing a binary incompatibility.

Reference:
net-snmp/net-snmp@cd5174a
Because:
- These size constants used for struct sizes were doubled in NET-SNMP
  5.8, causing a binary incompatibility.

Reference:
net-snmp/net-snmp@09ac3f2
@zenossbot
Copy link
Collaborator

Jenkins cannot run this build automatically. Can one of the admins verify this patch? To kick off the pull verification add a comment with "ok to test".

@webhookbotuser
Copy link
Collaborator

Can one of the admins verify this patch?

The definition bbdfa5a was trying to
make was for `trap_stats`, not `msgMaxSize`. Looks like this was a
stupid copypasta error.
@yolanjoy
Copy link

yolanjoy commented May 6, 2022

Has someone tested the dev version 0.41.3 and know if net-snmp 5.8 works with it ?

Thanks

Deer-WarLord added a commit that referenced this pull request Jun 21, 2023
jpeacock-zenoss pushed a commit that referenced this pull request Jun 27, 2023
…tes (#34)

* ZEN-34420: Segfault error appears during modeling after net-snmp updates
* refactored in concern of #33 PR
* refactored comments
* fix types casting and tests import
* refactored in concern of struct params based on lib version
* refactored comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants