Browse Source

tpws,nfqws : fix checkpcap

pull/53/head
bol-van 5 years ago
parent
commit
12c6c90d47
  1. 2
      nfq/sec.c
  2. 2
      tpws/sec.c

2
nfq/sec.c

@ -12,7 +12,7 @@ bool checkpcap(uint64_t caps)
uint32_t c0 = (uint32_t)caps;
uint32_t c1 = (uint32_t)(caps>>32);
return !capget(&ch,cd) && (cd[0].effective & c0)==c0 && (cd[0].effective & c1)==c1;
return !capget(&ch,cd) && (cd[0].effective & c0)==c0 && (cd[1].effective & c1)==c1;
}
bool setpcap(uint64_t caps)
{

2
tpws/sec.c

@ -12,7 +12,7 @@ bool checkpcap(uint64_t caps)
uint32_t c0 = (uint32_t)caps;
uint32_t c1 = (uint32_t)(caps>>32);
return !capget(&ch,cd) && (cd[0].effective & c0)==c0 && (cd[0].effective & c1)==c1;
return !capget(&ch,cd) && (cd[0].effective & c0)==c0 && (cd[1].effective & c1)==c1;
}
bool setpcap(uint64_t caps)
{

Loading…
Cancel
Save