host = GetRxBindAddress();
}
for (i = 0; i < 10; i++) {
- if (rxBind) {
- code = rx_InitHost(host, htons(AFSCONF_NANNYPORT));
- } else {
- code = rx_Init(htons(AFSCONF_NANNYPORT));
- }
+ code = rx_InitHost(host, htons(AFSCONF_NANNYPORT));
if (code) {
bozo_Log("can't initialize rx: code=%d\n", code);
sleep(3);
}
if (ccode == 1) {
host = SHostAddrs[0];
- rx_InitHost(host, htons(AFSCONF_BUDBPORT));
}
}
+ code = rx_InitHost(host, htons(AFSCONF_BUDBPORT));
+ if (code) {
+ LogError(code, "rx init failed\n");
+ afs_com_err(whoami, code, "rx init failed");
+ ERROR(code);
+ }
+
/* Disable jumbograms */
rx_SetNoJumbo();
}
if (ccode == 1) {
host = SHostAddrs[0];
- rx_InitHost(host, htons(AFSCONF_KAUTHPORT));
}
}
+ code = rx_InitHost(host, htons(AFSCONF_KAUTHPORT));
+ if (code) {
+ afs_com_err(whoami, code, "rx init failed");
+ exit(2);
+ }
+
/* Disable jumbograms */
rx_SetNoJumbo();
}
if (ccode == 1) {
host = SHostAddrs[0];
- /* the following call is idempotent so if/when it gets called
- * again by the ubik init stuff, it doesn't really matter
- * -- klm
- */
- rx_InitHost(host, htons(AFSCONF_PROTPORT));
}
}
+ code = rx_InitHost(host, htons(AFSCONF_PROTPORT));
+ if (code < 0) {
+ ViceLog(0, ("ptserver: Rx init failed: %d\n", code));
+ PT_EXIT(1);
+ }
+
/* Disable jumbograms */
rx_SetNoJumbo();
}
if (ccode == 1) {
host = SHostAddrs[0];
- rx_InitHost(host, htons(AFSCONF_VLDBPORT));
}
}
}
}
- code = rx_Init(htons(AFSCONF_VLDBPORT));
+ code = rx_InitHost(host, htons(AFSCONF_VLDBPORT));
if (code < 0) {
VLog(0, ("vlserver: Rx init failed: %d\n", code));
exit(1);