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

Soft mac filtering #349

Closed
wants to merge 5 commits into from
Closed

Conversation

olbjo
Copy link
Collaborator

@olbjo olbjo commented Feb 17, 2021

In promiscuous mode, ignore unicast packets that are not for this device.
Based on top of #333 and #348

Copy link
Collaborator

@pyhys pyhys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with ART tester, and it works fine

@pyhys pyhys marked this pull request as ready for review February 18, 2021 06:09
@@ -122,6 +149,18 @@ int pf_eth_recv (pnal_eth_handle_t * eth_handle, void * arg, pnal_buf_t * p_buf)
uint16_t ix = 0;
pnet_t * net = (pnet_t *)arg;

#ifndef UNIT_TEST
/* Reject unicast packets with destination not matching
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better if unicast filtering was done at a lower level (ie pnal)? Documentation could be added to pnal_eth_init() to require that incoming frames with unknown unicast destination MAC address should be dropped.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, we will start with only stop using promiscuous mode and retest to verify that this solves the original problem.

Moved initialization of mac addresses and lldp port name to stack.
Do not store alias name for each LLDP peer. Instead build
and check alias when alias is part of id request received.

Exclude alias name from DCP response as it shall only be used
for filtering requests.
@olbjo olbjo force-pushed the soft_mac_filtering branch from 94dfe7c to d864b4f Compare February 18, 2021 08:33
@olbjo olbjo closed this Feb 18, 2021
@olbjo olbjo deleted the soft_mac_filtering branch May 19, 2021 06:33
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.

3 participants