Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

server: fix nic path update#404

Open
outscale-toa wants to merge 1 commit intooutscale:developfrom
outscale-toa:path_update
Open

server: fix nic path update#404
outscale-toa wants to merge 1 commit intooutscale:developfrom
outscale-toa:path_update

Conversation

@outscale-toa
Copy link
Contributor

No description provided.


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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants