Skip to content
Snippets Groups Projects
Commit 93bbd08a authored by Michael Tüxen's avatar Michael Tüxen
Browse files
parent e77f1172
No related branches found
No related tags found
No related merge requests found
......@@ -403,10 +403,12 @@ struct netdev *local_netdev_new(struct config *config)
route_traffic_to_device(config, netdev);
netdev->psock = packet_socket_new(netdev->name);
#if !defined(linux)
/* Make sure we only see packets from the machine under test. */
packet_socket_set_filter(netdev->psock,
NULL,
&config->live_local_ip); /* client IP */
#endif /* !defined(linux) */
return (struct netdev *)netdev;
}
......
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