1
0
mirror of https://github.com/bgp/bgpq4.git synced 2024-05-11 05:55:05 +00:00

handle socket() EAFNOSUPPORT as non-fatal error.

This commit is contained in:
Alexandre Snarskii
2017-02-08 12:18:08 +03:00
parent dfa5a41fe6
commit def51b4c17
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
untagged yet
- sync man-page with readme.md
- socket() EAFNOSUPPORT error handling
0.1.33 (2016-10-14)
- OpenBGPD support (-B). Submitted by Peter Hessler.

View File

@@ -725,7 +725,7 @@ bgpq_expand(struct bgpq_expander* b)
for(rp=res; rp; rp=rp->ai_next) {
fd=socket(rp->ai_family,rp->ai_socktype,0);
if(fd==-1) {
if(errno==EPROTONOSUPPORT) continue;
if(errno==EPROTONOSUPPORT || errno==EAFNOSUPPORT) continue;
sx_report(SX_ERROR,"Unable to create socket: %s\n",
strerror(errno));
exit(1);