aya icon indicating copy to clipboard operation
aya copied to clipboard

replace lo interface with dummy interface

Open murex971 opened this issue 2 years ago • 4 comments

Fixes: #422

murex971 avatar Mar 29 '23 22:03 murex971

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Mar 29 '23 22:03 netlify[bot]

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.

Tuetuopay avatar Mar 30 '23 08:03 Tuetuopay

@murex971, this pull request is now in conflict and requires a rebase.

mergify[bot] avatar Sep 14 '23 23:09 mergify[bot]

@murex971, this pull request is now in conflict and requires a rebase.

mergify[bot] avatar Feb 06 '24 12:02 mergify[bot]