summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp/files/patch-interface_ioctl.c
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2004-12-08 11:11:27 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2004-12-08 11:11:27 +0000
commit658182202de493a0721e61bb1bc601d4bf5ec7b2 (patch)
tree2a920f7fbf5cb6156a127e2bac9deb2c75854c4c /net-mgmt/net-snmp/files/patch-interface_ioctl.c
parentUpdate to 0.26.06 (diff)
- Add missing patch files in previos commit
(patch-interface_ioctl.c, patch-ucd_snmp.h). - Add missing backward compatibility simbols for usmAES{192,256}PrivProtocol (patch-snmpusm.c, patch-transform_oids.h). PR: ports/74810
Diffstat (limited to 'net-mgmt/net-snmp/files/patch-interface_ioctl.c')
-rw-r--r--net-mgmt/net-snmp/files/patch-interface_ioctl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/net-mgmt/net-snmp/files/patch-interface_ioctl.c b/net-mgmt/net-snmp/files/patch-interface_ioctl.c
new file mode 100644
index 000000000000..4939166949be
--- /dev/null
+++ b/net-mgmt/net-snmp/files/patch-interface_ioctl.c
@@ -0,0 +1,13 @@
+--- ./agent/mibgroup/if-mib/data_access/interface_ioctl.c.orig Mon Oct 25 12:57:23 2004
++++ ./agent/mibgroup/if-mib/data_access/interface_ioctl.c Mon Oct 25 12:56:33 2004
+@@ -385,6 +385,10 @@
+ if (rc < 0)
+ return 0;
+
++#if defined(__FreeBSD__)
++ return ifrq.ifr_index;
++#else
+ return ifrq.ifr_ifindex;
++#endif
+ #endif /* SIOCGIFINDEX */
+ }