1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

resolve: export sendmsg_loop()

So we can use it in tests.
This commit is contained in:
Frantisek Sumsal 2024-01-08 19:23:06 +01:00 committed by Yu Watanabe
parent a068e06da6
commit ed6c51781f
2 changed files with 2 additions and 1 deletions

View File

@ -894,7 +894,7 @@ int manager_recv(Manager *m, int fd, DnsProtocol protocol, DnsPacket **ret) {
return 1;
}
static int sendmsg_loop(int fd, struct msghdr *mh, int flags) {
int sendmsg_loop(int fd, struct msghdr *mh, int flags) {
usec_t end;
int r;

View File

@ -178,6 +178,7 @@ uint32_t manager_find_mtu(Manager *m);
int manager_monitor_send(Manager *m, DnsQuery *q);
int sendmsg_loop(int fd, struct msghdr *mh, int flags);
int manager_write(Manager *m, int fd, DnsPacket *p);
int manager_send(Manager *m, int fd, int ifindex, int family, const union in_addr_union *destination, uint16_t port, const union in_addr_union *source, DnsPacket *p);
int manager_recv(Manager *m, int fd, DnsProtocol protocol, DnsPacket **ret);