Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
5bba7216
Commit
5bba7216
authored
Aug 09, 2000
by
Andreas Gustafsson
Browse files
added isc_sockaddr_anyofpf()
parent
95e47f45
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
5bba7216
379. [func] New library function isc_sockaddr_anyofpf().
378. [func] named and lwresd will log the command line arguments
they were started with in the "starting ..." message.
...
...
lib/isc/include/isc/sockaddr.h
View file @
5bba7216
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: sockaddr.h,v 1.3
2
2000/08/0
1 01:30:45 tale
Exp $ */
/* $Id: sockaddr.h,v 1.3
3
2000/08/0
9 18:55:54 gson
Exp $ */
#ifndef ISC_SOCKADDR_H
#define ISC_SOCKADDR_H 1
...
...
@@ -57,6 +57,9 @@ isc_sockaddr_any(isc_sockaddr_t *sockaddr);
void
isc_sockaddr_any6
(
isc_sockaddr_t
*
sockaddr
);
void
isc_sockaddr_anyofpf
(
isc_sockaddr_t
*
sockaddr
,
int
family
);
void
isc_sockaddr_fromin
(
isc_sockaddr_t
*
sockaddr
,
const
struct
in_addr
*
ina
,
in_port_t
port
);
...
...
lib/isc/sockaddr.c
View file @
5bba7216
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: sockaddr.c,v 1.4
4
2000/08/0
1 01:29:48 tale
Exp $ */
/* $Id: sockaddr.c,v 1.4
5
2000/08/0
9 18:55:53 gson
Exp $ */
#include <config.h>
...
...
@@ -264,6 +264,20 @@ isc_sockaddr_fromin(isc_sockaddr_t *sockaddr, const struct in_addr *ina,
ISC_LINK_INIT
(
sockaddr
,
link
);
}
void
isc_sockaddr_anyofpf
(
isc_sockaddr_t
*
sockaddr
,
int
pf
)
{
switch
(
pf
)
{
case
AF_INET
:
isc_sockaddr_any
(
sockaddr
);
break
;
case
AF_INET6
:
isc_sockaddr_any6
(
sockaddr
);
break
;
default:
INSIST
(
0
);
}
}
void
isc_sockaddr_fromin6
(
isc_sockaddr_t
*
sockaddr
,
const
struct
in6_addr
*
ina6
,
in_port_t
port
)
...
...
Write
Preview
Supports
Markdown
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