replace lo interface with dummy interface
Fixes: #422
Deploy Preview for aya-rs-docs ready!
Built without sensitive environment variables
| Name | Link |
|---|---|
| Latest commit | 20391f2689e08dc0a3bcbfa30c1fae985c20fc7e |
| Latest deploy log | https://app.netlify.com/sites/aya-rs-docs/deploys/6424c37de90a480008436fee |
| Deploy Preview | https://deploy-preview-561--aya-rs-docs.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
Hi!
Just to let you know, #527 contains another fix fo #422. It still keeps using loopbacks, but runs tests in dedicated namespaces. (See https://github.com/aya-rs/aya/pull/527/commits/9da1dfecd977ed86199fca5d80ac6d35dbce443f)
Using loopbacks has advantages compared to dummy interfaces: they loop back the traffic. In other words, any packet transmitted on the loopback is recieved on the same loopback. This is very useful for testing, especially XDP which only works in rx.
To get the same feature level, you’d need veth pairs. However that’s another can of worms, as IP configuration is required, and configuration that does not conflicts with the host machine. You could use vrfs or netns, but it’s gonna be complicated.
So yeah, for the current tests where we don’t test at all by sending packets it’s fine. But as soon as tests start to do it, dummy won’t cut it.
@murex971, this pull request is now in conflict and requires a rebase.
@murex971, this pull request is now in conflict and requires a rebase.