mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-05 16:41:53 +00:00
Socktest: Minor change
This commit is contained in:
parent
2ce8589753
commit
6b8d11556e
@ -47,7 +47,10 @@ void
|
|||||||
skt_open(sock *s)
|
skt_open(sock *s)
|
||||||
{
|
{
|
||||||
if (sk_open(s) < 0)
|
if (sk_open(s) < 0)
|
||||||
SKT_ERR(s->err);
|
{
|
||||||
|
perror(s->err);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
if (cf_mcast)
|
if (cf_mcast)
|
||||||
{
|
{
|
||||||
|
@ -52,8 +52,6 @@ uint counter; /* global counter of send/recv packets */
|
|||||||
uint cf_value; /* a value in packet */
|
uint cf_value; /* a value in packet */
|
||||||
uint cf_ttl;
|
uint cf_ttl;
|
||||||
|
|
||||||
#define SKT_ERR(x) do { perror(x); exit(-1); } while(0)
|
|
||||||
|
|
||||||
sock *skt_parse_args(int argc, char **argv, int is_send);
|
sock *skt_parse_args(int argc, char **argv, int is_send);
|
||||||
void bird_init(void);
|
void bird_init(void);
|
||||||
void skt_open(sock *s);
|
void skt_open(sock *s);
|
||||||
|
Loading…
Reference in New Issue
Block a user