Differential D10292 Diff 27210 net-mgmt/net-snmp/files/patch-agent_mibgroup_udp-mib_data__access_udp__endpoint__freebsd4.c
Changeset View
Changeset View
Standalone View
Standalone View
net-mgmt/net-snmp/files/patch-agent_mibgroup_udp-mib_data__access_udp__endpoint__freebsd4.c
--- agent/mibgroup/udp-mib/data_access/udp_endpoint_freebsd4.c.orig 2017-03-15 18:18:33.000000000 +0000 | --- agent/mibgroup/udp-mib/data_access/udp_endpoint_freebsd4.c.orig 2017-03-15 18:18:33.000000000 +0000 | ||||
+++ agent/mibgroup/udp-mib/data_access/udp_endpoint_freebsd4.c 2017-03-15 18:18:33.000000000 +0000 | +++ agent/mibgroup/udp-mib/data_access/udp_endpoint_freebsd4.c 2017-03-15 18:18:33.000000000 +0000 | ||||
@@ -153,7 +153,7 @@ | |||||
#endif | |||||
#if !defined(NETSNMP_ENABLE_IPV6) | |||||
- if (pcb.xi_inp.inp_vflag & INP_IPV6) | |||||
+ if (pcb.inp_vflag & INP_IPV6) | |||||
continue; | |||||
#endif | |||||
@@ -164,9 +164,24 @@ | @@ -164,9 +164,24 @@ | ||||
} | } | ||||
/** oddly enough, these appear to already be in network order */ | /** oddly enough, these appear to already be in network order */ | ||||
+#if __FreeBSD_version >= 1200026 | +#if __FreeBSD_version >= 1200026 | ||||
+ entry->loc_port = htons(pcb.inp_lport); | + entry->loc_port = htons(pcb.inp_lport); | ||||
+ entry->rmt_port = htons(pcb.inp_fport); | + entry->rmt_port = htons(pcb.inp_fport); | ||||
+ | + | ||||
Show All 36 Lines |