Show the suspended status when we start a packet capture on the link.

This commit is contained in:
Rajnikant 2022-03-25 11:34:55 +05:30
parent c2410f0933
commit 9558b2137f
2 changed files with 3 additions and 4 deletions

View File

@ -52,13 +52,13 @@ export class InterfaceStatusWidget implements Widget {
new LinkStatus(
start_point.x,
start_point.y,
!l.capturing && l.suspend ? 'suspended' : l.source.status,
(( !l.capturing && l.suspend) || ( l.capturing && l.suspend)) ? 'suspended' : l.source.status,
sourcePort
),
new LinkStatus(
end_point.x,
end_point.y,
!l.capturing && l.suspend ? 'suspended' : l.target.status,
(( !l.capturing && l.suspend) || ( l.capturing && l.suspend)) ? 'suspended' : l.target.status,
destinationPort
),
];

View File

@ -110,8 +110,7 @@ export class LinkWidget implements Widget {
link_body
.filter((l) => {
return (
!l.capturing &&
l.suspend &&
((!l.capturing && l.suspend)|| l.capturing && l.suspend) &&
!(l.filters.bpf || l.filters.corrupt || l.filters.delay || l.filters.frequency_drop || l.filters.packet_loss)
);
})