1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/net-mgmt/net-snmp/files/patch-interface_ioctl.c
Jun Kuriyama 658182202d - 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
2004-12-08 11:11:27 +00:00

14 lines
359 B
C

--- ./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 */
}