Dave,
Slight modification to the proposed solution:
232: one edge case here is that, were the port passed in equal to zero
and the service port had a value that strtol() couldn't convert, you'd
end up saying 0 is in use because 0 + setting EINVAL is how strtol
handles error cases.
It needs to continue instead of returning B_FALSE. This is what is done
when the txt_record does not have a ':' in it as there might be another
service that is using the port.
errno = 0;
service_port = strtol(str, (char **)NULL, 10);
if (errno != 0) {
pg = pg->next;
continue;
}
Thanks,
John
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss