Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --interface command line option #77

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

insomniacslk
Copy link
Owner

Passing --interface will force the packets through the specified
interface instead of the default one.

Signed-off-by: Andrea Barberio [email protected]

@insomniacslk
Copy link
Owner Author

This is currently not working, see #75 (comment)

Passing --interface will force the packets through the specified
interface instead of the default one.

Signed-off-by: Andrea Barberio <[email protected]>
@jbemmel
Copy link

jbemmel commented Oct 16, 2021

To pick an interface, use send_l2: https://github.com/mfontanini/libtins/blob/master/src/packet_sender.cpp#L359

send_l3 means you let the OS pick an interface based on its routing table

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants