Actually use the default port by default

Signed-off-by: Lon Hohberger <lhh@redhat.com>
This commit is contained in:
Lon Hohberger 2009-08-21 14:21:14 -04:00
parent ab2917fa71
commit f05920b01c
3 changed files with 3 additions and 2 deletions

View File

@ -454,7 +454,7 @@ args_init(fence_virt_args_t *args)
args->net.hash = DEFAULT_HASH;
args->net.auth = DEFAULT_AUTH;
args->net.addr = NULL;
args->net.port = 1229;
args->net.port = DEFAULT_MCAST_PORT;
args->net.ifindex = 0;
args->net.family = PF_INET;
args->serial.device = strdup(DEFAULT_SERIAL_DEVICE);

View File

@ -75,6 +75,7 @@ typedef struct __attribute__ ((packed)) _fence_req {
#define RF_UUID 0x1 /* Flag specifying UUID */
uint8_t domain[MAX_DOMAINNAME_LENGTH]; /* Domain to fence*/
uint8_t address[MAX_ADDR_LEN]; /* We're this IP */
#define DEFAULT_MCAST_PORT 1229
uint16_t port; /* Port we bound to */
uint8_t random[10]; /* Random Data */
uint32_t family; /* Address family */

View File

@ -361,7 +361,7 @@ mcast_config(config_object_t *config, mcast_options *args)
return -1;
}
args->auth = DEFAULT_AUTH;
args->port = DEFAULT_MCAST_PORT;
if (sc_get(config, "listeners/multicast/@port",
value, sizeof(value)-1) == 0) {
dbg_printf(1, "Got %s for port\n", value);