Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
16f78518
Commit
16f78518
authored
8 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'teor/bug18720'
parents
6720628c
6a2b4db4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/compat.h
+1
-1
1 addition, 1 deletion
src/common/compat.h
src/or/or.h
+13
-8
13 additions, 8 deletions
src/or/or.h
with
14 additions
and
9 deletions
src/common/compat.h
+
1
−
1
View file @
16f78518
...
...
@@ -430,7 +430,7 @@ typedef int socklen_t;
#ifdef _WIN32
/* XXX Actually, this should arguably be SOCKET; we use intptr_t here so that
* any inadvert
a
nt checks for the socket being <= 0 or > 0 will probably
* any inadvert
e
nt checks for the socket being <= 0 or > 0 will probably
* still work. */
#define tor_socket_t intptr_t
#define TOR_SOCKET_T_FORMAT INTPTR_T_FORMAT
...
...
This diff is collapsed.
Click to expand it.
src/or/or.h
+
13
−
8
View file @
16f78518
...
...
@@ -1294,21 +1294,26 @@ typedef struct connection_t {
time_t
timestamp_created
;
/**< When was this connection_t created? */
/* XXXX_IP6 make this IPv6-capable */
int
socket_family
;
/**< Address family of this connection's socket. Usually
* AF_INET, but it can also be AF_UNIX, or in the future
* AF_INET6 */
tor_addr_t
addr
;
/**< IP of the other side of the connection; used to
* identify routers, along with port. */
uint16_t
port
;
/**< If non-zero, port on the other end
* of the connection. */
* AF_INET, but it can also be AF_UNIX, or AF_INET6 */
tor_addr_t
addr
;
/**< IP that socket "s" is directly connected to;
* may be the IP address for a proxy or pluggable transport,
* see "address" for the address of the final destination.
*/
uint16_t
port
;
/**< If non-zero, port that socket "s" is directly connected
* to; may be the port for a proxy or pluggable transport,
* see "address" for the port at the final destination. */
uint16_t
marked_for_close
;
/**< Should we close this conn on the next
* iteration of the main loop? (If true, holds
* the line number where this connection was
* marked.) */
const
char
*
marked_for_close_file
;
/**< For debugging: in which file were
* we marked for close? */
char
*
address
;
/**< FQDN (or IP) of the other end.
char
*
address
;
/**< FQDN (or IP) and port of the final destination for this
* connection; this is always the remote address, it is
* passed to a proxy or pluggable transport if one in use.
* See "addr" and "port" for the address that socket "s" is
* directly connected to.
* strdup into this, because free_connection() frees it. */
/** Another connection that's connected to this one in lieu of a socket. */
struct
connection_t
*
linked_conn
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment