Skip to content
Snippets Groups Projects
Commit daede98b authored by Hoelscher's avatar Hoelscher
Browse files

fix for bsd for run_packet.c

parent 616e47b3
No related branches found
No related tags found
No related merge requests found
...@@ -2698,7 +2698,12 @@ static int do_inbound_script_packet( ...@@ -2698,7 +2698,12 @@ static int do_inbound_script_packet(
if (live_packet->ipv6 != NULL) { if (live_packet->ipv6 != NULL) {
uint32_t null_ip[4] = {0x00, 0x00, 0x00, 0x00}; uint32_t null_ip[4] = {0x00, 0x00, 0x00, 0x00};
#if defined(linux)
if (memcmp(&(live_packet->ipv6->src_ip.__in6_u.__u6_addr32), &null_ip, sizeof(uint32_t) * 4) == 0) { if (memcmp(&(live_packet->ipv6->src_ip.__in6_u.__u6_addr32), &null_ip, sizeof(uint32_t) * 4) == 0) {
#elif defined(__FreeBSD__) || defined(OpenBSD) || defined(NetBSD)
if (memcmp(&(live_packet->ipv6->src_ip.__u6_addr.__u6_addr32), &null_ip, sizeof(uint32_t) * 4) == 0) {
#endif
state->socket_under_test = setup_new_child_socket(state, packet); state->socket_under_test = setup_new_child_socket(state, packet);
struct tuple live_inbound; struct tuple live_inbound;
socket_get_inbound(&state->socket_under_test->live, &live_inbound); socket_get_inbound(&state->socket_under_test->live, &live_inbound);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment