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

server: fix nic path update #404

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

outscale-toa
Copy link
Member

No description provided.

@@ -991,13 +991,11 @@ void Graph::LinkSniffer(const app::Nic &nic, Graph::BrickShrPtr n_sniffer) {

if (nic.bypass_filtering) {
unlink(g_nic->vhost);
g_nic->head = n_sniffer;
Copy link
Contributor

Choose a reason for hiding this comment

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

it was broken, it's still broken(because it's ignore the possibility of a switch), either fix this, or error out any use of that branch, thanks


found = update_path.find_last_of("/");
upath = update_path.substr(0,found);
if (nic.packet_trace_path == upath) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you need to evaluate the full path, I mean it's okay to change path from /tmp/bibi.pcap to /home/titi/bibi.pcap.
and your code ignore that case

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

Successfully merging this pull request may close these issues.

2 participants