add script
This commit is contained in:
parent
4591209759
commit
5ebc0c0b0d
|
@ -177,7 +177,7 @@ status_t sock_bind(sock_id id, c_sockaddr_t *addr)
|
|||
|
||||
if (bind(sock->fd, &addr->sa, addrlen) != 0)
|
||||
{
|
||||
d_error("socket bind(%s:%d) failed(%d:%s)",
|
||||
d_error("socket bind [%s]:%d failed(%d:%s)",
|
||||
CORE_ADDR(addr, buf), CORE_PORT(addr), errno, strerror(errno));
|
||||
return CORE_ERROR;
|
||||
}
|
||||
|
@ -203,7 +203,7 @@ status_t sock_connect(sock_id id, c_sockaddr_t *addr)
|
|||
|
||||
if (connect(sock->fd, &addr->sa, addrlen) != 0)
|
||||
{
|
||||
d_error("socket connect(%s:%d) failed(%d:%s)",
|
||||
d_error("socket connect[%s]:%d failed(%d:%s)",
|
||||
CORE_ADDR(addr, buf), CORE_PORT(addr), errno, strerror(errno));
|
||||
return CORE_ERROR;
|
||||
}
|
||||
|
|
|
@ -13,4 +13,8 @@ else
|
|||
ifconfig lo0 alias 127.0.0.3 netmask 255.255.255.255
|
||||
ifconfig lo0 alias 127.0.0.4 netmask 255.255.255.255
|
||||
ifconfig lo0 alias 127.0.0.5 netmask 255.255.255.255
|
||||
ifconfig lo0 inet6 alias fe80::2 prefixlen 64
|
||||
ifconfig lo0 inet6 alias fe80::3 prefixlen 64
|
||||
ifconfig lo0 inet6 alias fe80::4 prefixlen 64
|
||||
ifconfig lo0 inet6 alias fe80::5 prefixlen 64
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue