lck_mtx_unlock(ip_mutex);
ipf_ref();
+
+ /* 4135317 - always pass network byte order to filter */
+ HTONS(ip->ip_len);
+ HTONS(ip->ip_off);
+
TAILQ_FOREACH(filter, &ipv4_filters, ipf_link) {
if (seen == 0) {
if ((struct ipfilter *)inject_filter_ref == filter)
}
}
}
+
+ /* set back to host byte order */
+ NTOHS(ip->ip_len);
+ NTOHS(ip->ip_off);
+
lck_mtx_lock(ip_mutex);
ipf_unref();
didfilter = 1;
lck_mtx_unlock(ip_mutex);
ipf_ref();
+
+ /* 4135317 - always pass network byte order to filter */
+ HTONS(ip->ip_len);
+ HTONS(ip->ip_off);
+
TAILQ_FOREACH(filter, &ipv4_filters, ipf_link) {
if (seen == 0) {
if ((struct ipfilter *)inject_filter_ref == filter)
}
}
}
+
+ /* set back to host byte order */
+ NTOHS(ip->ip_len);
+ NTOHS(ip->ip_off);
+
ipf_unref();
lck_mtx_lock(ip_mutex);
}
lck_mtx_unlock(ip_mutex);
ipf_ref();
+
+ /* 4135317 - always pass network byte order to filter */
+ HTONS(ip->ip_len);
+ HTONS(ip->ip_off);
+
TAILQ_FOREACH(filter, &ipv4_filters, ipf_link) {
if (filter->ipf_filter.ipf_output) {
errno_t result;
}
}
}
+
+ /* set back to host byte order */
+ NTOHS(ip->ip_len);
+ NTOHS(ip->ip_off);
+
ipf_unref();
lck_mtx_lock(ip_mutex);
}