mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Exporting fill_in_sockaddr() for use by other unix-dependent code.
This commit is contained in:
parent
36f2caf147
commit
4cf45766ba
@ -281,7 +281,7 @@ set_inaddr(struct in_addr *ia, ip_addr a)
|
|||||||
memcpy(&ia->s_addr, &a, sizeof(a));
|
memcpy(&ia->s_addr, &a, sizeof(a));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
fill_in_sockaddr(struct sockaddr_in *sa, ip_addr a, unsigned port)
|
fill_in_sockaddr(struct sockaddr_in *sa, ip_addr a, unsigned port)
|
||||||
{
|
{
|
||||||
sa->sin_family = AF_INET;
|
sa->sin_family = AF_INET;
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
void io_init(void);
|
void io_init(void);
|
||||||
void io_loop(void);
|
void io_loop(void);
|
||||||
|
void fill_in_sockaddr(struct sockaddr_in *sa, ip_addr a, unsigned port);
|
||||||
void get_sockaddr(struct sockaddr_in *sa, ip_addr *a, unsigned *port);
|
void get_sockaddr(struct sockaddr_in *sa, ip_addr *a, unsigned *port);
|
||||||
|
|
||||||
/* sync-if.c */
|
/* sync-if.c */
|
||||||
|
Loading…
Reference in New Issue
Block a user