Merge pull request #487 from pic4xiu/master
Some checks failed
Debug build / build (push) Has been cancelled
Validate Gradle Wrapper / Validation (push) Has been cancelled
Test native code / test (push) Has been cancelled
Windows build / build (push) Has been cancelled

Fix -q parameter not being parsed in pcapd
This commit is contained in:
Emanuele Faranda 2025-02-14 11:08:50 +01:00 committed by GitHub
commit e3eef2cbf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1033,7 +1033,7 @@ static void parse_args(pcapd_conf_t *conf, int argc, char **argv) {
init_conf(conf);
opterr = 0;
while ((c = getopt (argc, argv, "hdtni:u:b:l:L:")) != -1) {
while ((c = getopt (argc, argv, "hdtnqi:u:b:l:L:")) != -1) {
switch(c) {
case 'i':
if(conf->num_interfaces >= PCAPD_MAX_INTERFACES) {