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]>
@insomniacslk insomniacslk force-pushed the interface_cli_option branch from 0c0775a to 33c99a1 Compare April 5, 2020 19:20
@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