Commit 373081ba authored by Kai Vehmanen's avatar Kai Vehmanen
Browse files

Print sofia-sip version in stunc usage.

darcs-hash:20060508091735-7659e-1a507ff70e56427aae6efdc19df3a284b41f2d6e.gz
parent c9e0b504
...@@ -13,7 +13,10 @@ AUTOMAKE_OPTIONS = foreign ...@@ -13,7 +13,10 @@ AUTOMAKE_OPTIONS = foreign
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Header paths # Header paths
INCLUDES = -I$(srcdir)/../su -I../su -I$(srcdir)/../sresolv INCLUDES = -I$(srcdir)/../su \
-I../su \
-I$(srcdir)/../sresolv \
-I$(srcdir)/../features
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Build targets # Build targets
......
...@@ -46,6 +46,7 @@ typedef struct stunc_s stunc_t; ...@@ -46,6 +46,7 @@ typedef struct stunc_s stunc_t;
#include "sofia-sip/stun.h" #include "sofia-sip/stun.h"
#include "sofia-sip/stun_tag.h" #include "sofia-sip/stun_tag.h"
#include "sofia-sip/sofia_features.h"
#include <sofia-sip/su.h> #include <sofia-sip/su.h>
enum { enum {
...@@ -72,13 +73,14 @@ static char const __func__[] = "stunc"; ...@@ -72,13 +73,14 @@ static char const __func__[] = "stunc";
void usage(char *name) void usage(char *name)
{ {
fprintf(stderr, fprintf(stderr,
"stunc (%s)\n"
"usage: %s <server> [-b] [-n] [-l] [-r] [-s]\n" "usage: %s <server> [-b] [-n] [-l] [-r] [-s]\n"
" -b\tmake a binding request\n" " -b\tmake a binding request\n"
" -l\tperform NAT lifetime check\n" " -l\tperform NAT lifetime check\n"
" -n\tperform NAT type check\n" " -n\tperform NAT type check\n"
" -s\trequest shared-secret over TLS (combined with -[bln])\n" " -s\trequest shared-secret over TLS (combined with -[bln])\n"
" -l\tperform NAT type check (combined with -[bln]\n", " -l\tperform NAT type check (combined with -[bln]\n",
name); SOFIA_SIP_NAME_VERSION, name);
exit(1); exit(1);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment