Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
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
The Tor Project
Core
Tor
Commits
ff7229b3
Commit
ff7229b3
authored
6 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Document new helper functions in socketpair.c
parent
1b7b9c7e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/net/socketpair.c
+8
-0
8 additions, 0 deletions
src/lib/net/socketpair.c
with
8 additions
and
0 deletions
src/lib/net/socketpair.c
+
8
−
0
View file @
ff7229b3
...
...
@@ -32,6 +32,11 @@
// Avoid warning about call to memcmp.
#define raw_memcmp memcmp
/**
* Return a new socket that is bound and listening on the loopback interface
* of family <b>family</b> for a socket of type <b>type</b>. On failure return
* TOR_INVALID_SOCKET.
*/
static
tor_socket_t
get_local_listener
(
int
family
,
int
type
)
{
...
...
@@ -72,6 +77,9 @@ get_local_listener(int family, int type)
return
TOR_INVALID_SOCKET
;
}
/**
* Return true iff sa1 and sa2 are equivalent AF_INET or AF_INET6 addresses.
*/
static
int
sockaddr_eq
(
struct
sockaddr
*
sa1
,
struct
sockaddr
*
sa2
)
{
...
...
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