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

Libtins Sender does not send all packets from Sniffer #489

Open
annagrunow opened this issue Sep 14, 2022 · 0 comments
Open

Libtins Sender does not send all packets from Sniffer #489

annagrunow opened this issue Sep 14, 2022 · 0 comments

Comments

@annagrunow
Copy link

I'm using libtins and i want to create a sniffer, that sends every packet received on eth1 to eth2:

bool callback(PDU &pdu)
{
PacketSender sender("eth2");
sender.send(pdu);
return true;
}

int main()
{
SnifferConfiguration config;
config.set_immediate_mode(true);
config.set_promisc_mode(true);
config.set_direction(PCAP_D_IN);

Sniffer s1("eth1", config);
s1.sniff_loop(callback);
}
The Sniffer works, but it does not send all packets to eth2. I'm sending ipv6 UDP Packets and SOME/IP Packets. Some of them are sent to eth2, some are not. But no no pattern recognizable. Can you help me to fix this?

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

No branches or pull requests

1 participant