Lines 18-30
Link Here
|
18 |
switch (op) { |
18 |
switch (op) { |
19 |
|
19 |
|
20 |
case 'd': |
20 |
case 'd': |
21 |
@@ -202,6 +204,13 @@ main(int argc, char **argv) |
21 |
@@ -202,6 +204,16 @@ main(int argc, char **argv) |
22 |
rfilename = optarg; |
22 |
rfilename = optarg; |
23 |
break; |
23 |
break; |
24 |
|
24 |
|
25 |
+ case 'm': |
25 |
+ case 'm': |
26 |
+ Watcher = optarg; |
26 |
+ Watcher = optarg; |
27 |
+ break; |
27 |
+ break; |
|
|
28 |
+ case 'v': |
29 |
+ vrrpflag = 1; |
30 |
+ break; |
28 |
+ case 'z': |
31 |
+ case 'z': |
29 |
+ zeroflag = 1; |
32 |
+ zeroflag = 1; |
30 |
+ break; |
33 |
+ break; |
Lines 32-38
Link Here
|
32 |
default: |
35 |
default: |
33 |
usage(); |
36 |
usage(); |
34 |
} |
37 |
} |
35 |
@@ -321,7 +330,6 @@ main(int argc, char **argv) |
38 |
@@ -321,7 +333,6 @@ main(int argc, char **argv) |
36 |
|
39 |
|
37 |
(void)setsignal(SIGINT, die); |
40 |
(void)setsignal(SIGINT, die); |
38 |
(void)setsignal(SIGTERM, die); |
41 |
(void)setsignal(SIGTERM, die); |
Lines 40-46
Link Here
|
40 |
if (rfilename == NULL) { |
43 |
if (rfilename == NULL) { |
41 |
(void)setsignal(SIGQUIT, checkpoint); |
44 |
(void)setsignal(SIGQUIT, checkpoint); |
42 |
(void)setsignal(SIGALRM, checkpoint); |
45 |
(void)setsignal(SIGALRM, checkpoint); |
43 |
@@ -751,6 +759,6 @@ usage(void) |
46 |
@@ -391,6 +402,12 @@ process_ether(register u_char *u, regist |
|
|
47 |
return; |
48 |
} |
49 |
|
50 |
+ /* Check for CARP-generated ARP replies and ignore them */ |
51 |
+ if (vrrpflag == 1 && MEMCMP(sha, vrrp_prefix, 5) == 0) { |
52 |
+ /* do nothing */ |
53 |
+ return; |
54 |
+ } |
55 |
+ |
56 |
/* Double check ethernet addresses */ |
57 |
if (MEMCMP(sea, sha, 6) != 0) { |
58 |
dosyslog(LOG_INFO, "ethernet mismatch", sia, sea, sha); |
59 |
@@ -751,6 +768,6 @@ usage(void) |
44 |
|
60 |
|
45 |
(void)fprintf(stderr, "Version %s\n", version); |
61 |
(void)fprintf(stderr, "Version %s\n", version); |
46 |
(void)fprintf(stderr, "usage: %s [-dN] [-f datafile] [-i interface]" |
62 |
(void)fprintf(stderr, "usage: %s [-dN] [-f datafile] [-i interface]" |