Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
external
sofia-sip
Commits
66a97b1e
Commit
66a97b1e
authored
Jan 04, 2006
by
Martti Mela
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed errors after syncing.
darcs-hash:20060104153147-34f17-40ee6ee526aca9ca95ec1b5793995bc4b13782e8.gz
parent
231b860f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
36 deletions
+11
-36
libsofia-sip-ua/stun/stun.c
libsofia-sip-ua/stun/stun.c
+11
-36
No files found.
libsofia-sip-ua/stun/stun.c
View file @
66a97b1e
...
@@ -112,9 +112,6 @@ struct stun_request_s {
...
@@ -112,9 +112,6 @@ struct stun_request_s {
su_localinfo_t
sr_localinfo
;
/**< local addrinfo */
su_localinfo_t
sr_localinfo
;
/**< local addrinfo */
su_sockaddr_t
sr_local_addr
[
1
];
/**< local address */
su_sockaddr_t
sr_local_addr
[
1
];
/**< local address */
#if 0
int sr_root_index; /**< Index from su_root_register */
#endif
int
sr_state
;
/**< Progress states */
int
sr_state
;
/**< Progress states */
int
sr_retry_count
;
/**< current retry number */
int
sr_retry_count
;
/**< current retry number */
long
sr_timeout
;
/**< timeout for next sendto() */
long
sr_timeout
;
/**< timeout for next sendto() */
...
@@ -123,26 +120,6 @@ struct stun_request_s {
...
@@ -123,26 +120,6 @@ struct stun_request_s {
};
};
#define x_insert(l, n, x) \
((l) ? (l)->x##_prev = &(n)->x##_next : 0, \
(n)->x##_next = (l), (n)->x##_prev = &(l), (l) = (n))
#define x_remove(n, x) \
((*(n)->x##_prev = (n)->x##_next) ? \
(n)->x##_next->x##_prev = (n)->x##_prev : 0)
#define x_is_inserted(n, x) ((n)->x##_prev != NULL)
struct
stun_request_s
{
stun_request_t
*
sr_next
,
**
sr_prev
;
stun_msg_t
*
sr_msg
;
stun_handle_t
*
sr_handle
;
int
sr_root_index
;
int
sr_state
;
/**< Progress states */
int
sr_retry_count
;
/**< current retry number */
long
sr_timeout
;
/**< timeout for next sendto() */
};
struct
stun_handle_s
struct
stun_handle_s
{
{
su_home_t
sh_home
[
1
];
su_home_t
sh_home
[
1
];
...
@@ -230,20 +207,19 @@ typedef enum stun_nattype_t {
...
@@ -230,20 +207,19 @@ typedef enum stun_nattype_t {
}
stun_nattype_e
;
}
stun_nattype_e
;
char
const
*
stun_nattype_str
[]
=
{
"NAT type undetermined"
,
"Open Internet"
,
"UDP traffic is blocked or server unreachable"
,
"Symmetric UDP Firewall"
,
"Full-Cone NAT"
,
"Symmetric NAT"
,
"Restricted Cone NAT"
,
"Port Restricted Cone NAT"
,
};
char
const
*
stun_nattype
(
stun_handle_t
*
sh
)
char
const
*
stun_nattype
(
stun_handle_t
*
sh
)
{
{
char
const
*
stun_nattype_str
[]
=
{
"NAT type undetermined"
,
"Open Internet"
,
"UDP traffic is blocked or server unreachable"
,
"Symmetric UDP Firewall"
,
"Full-Cone NAT"
,
"Symmetric NAT"
,
"Restricted Cone NAT"
,
"Port Restricted Cone NAT"
,
};
return
stun_nattype_str
[
sh
->
sh_nattype
];
return
stun_nattype_str
[
sh
->
sh_nattype
];
}
}
...
@@ -275,7 +251,6 @@ static
...
@@ -275,7 +251,6 @@ static
void
stun_tls_connect_timer_cb
(
su_root_magic_t
*
magic
,
void
stun_tls_connect_timer_cb
(
su_root_magic_t
*
magic
,
su_timer_t
*
t
,
su_timer_t
*
t
,
su_timer_arg_t
*
arg
);
su_timer_arg_t
*
arg
);
stun_handle_t
*
se
);
/**
/**
* Return the socket associated with the stun_socket_t structure
* Return the socket associated with the stun_socket_t structure
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment