From: Ian Jackson Date: Mon, 22 Sep 2014 01:07:47 +0000 (+0100) Subject: comm: Make udp_make_socket be able to tolerate failures X-Git-Tag: base.ipv6-polypath-fixes-2.v1~63 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/secnet/commitdiff_plain/53f4e66603bcc2d21c70ad7a69db5fda6da5d645?hp=53f4e66603bcc2d21c70ad7a69db5fda6da5d645 comm: Make udp_make_socket be able to tolerate failures Previously, it would log errors with fatal or fatal_perror. Now it takes a message class and uses lg_perror, and also returns a boolean to let the caller know whether it worked. The repetitive calls to fatal_perror in udp_make_socket have been replaced with a couple of macros. The one existing call site passes M_FATAL. So no substantial functional change in this patch. Signed-off-by: Ian Jackson ---