projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Preparation for IPv6 support
[umurmur.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index b169597a760b913ccc49c025b64f6a854782f136..ebff0e523163b91fe99ae6594cbcf8bb2014f0d8 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-54,10
+54,13
@@
#include "client.h"
#include "conf.h"
#include "version.h"
#include "client.h"
#include "conf.h"
#include "version.h"
+#include "config.h"
char system_string[64], version_string[64];
int bindport;
char system_string[64], version_string[64];
int bindport;
+int bindport6;
char *bindaddr;
char *bindaddr;
+char *bindaddr6;
void lockfile(const char *pidfile)
{
void lockfile(const char *pidfile)
{
@@
-248,9
+251,9
@@
int main(int argc, char **argv)
/* Arguments */
#ifdef POSIX_PRIORITY_SCHEDULING
/* Arguments */
#ifdef POSIX_PRIORITY_SCHEDULING
- while ((c = getopt(argc, argv, "drp:c:a:
b
:ht")) != EOF) {
+ while ((c = getopt(argc, argv, "drp:c:a:
A:b:B
:ht")) != EOF) {
#else
#else
- while ((c = getopt(argc, argv, "dp:c:a:
b
:ht")) != EOF) {
+ while ((c = getopt(argc, argv, "dp:c:a:
A:b:B
:ht")) != EOF) {
#endif
switch(c) {
case 'c':
#endif
switch(c) {
case 'c':
@@
-262,9
+265,15
@@
int main(int argc, char **argv)
case 'a':
bindaddr = optarg;
break;
case 'a':
bindaddr = optarg;
break;
+ case 'A':
+ bindaddr6 = optarg;
+ break;
case 'b':
bindport = atoi(optarg);
break;
case 'b':
bindport = atoi(optarg);
break;
+ case 'B':
+ bindport6 = atoi(optarg);
+ break;
case 'd':
nodaemon = true;
break;
case 'd':
nodaemon = true;
break;