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:
1
CHANGES
1
CHANGES
@@ -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.
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user