dp_dyndns.h revision e45b81abe0aafa8a04bd64ac31a2fac63ce675b7
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainen Jakub Hrozek <jhrozek@redhat.com>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen Copyright (C) 2013 Red Hat
e54512a5189192fe72d1e2c53927c98c5ac920b4Timo Sirainen This program is free software; you can redistribute it and/or modify
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainen it under the terms of the GNU General Public License as published by
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainen the Free Software Foundation; either version 3 of the License, or
645f258ea29afaf09b673fc65d1bd788dfec8db8Timo Sirainen (at your option) any later version.
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainen This program is distributed in the hope that it will be useful,
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainen but WITHOUT ANY WARRANTY; without even the implied warranty of
043c8a96a035379bcba04f487d58457beefdfcaaTimo Sirainen MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
043c8a96a035379bcba04f487d58457beefdfcaaTimo Sirainen GNU General Public License for more details.
043c8a96a035379bcba04f487d58457beefdfcaaTimo Sirainen You should have received a copy of the GNU General Public License
043c8a96a035379bcba04f487d58457beefdfcaaTimo Sirainen along with this program. If not, see <http://www.gnu.org/licenses/>.
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainen/* dynamic dns helpers */
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainentypedef void (*nsupdate_timer_fn_t)(void *pvt);
c04f9a724a7b3cc649485a61b0a540868d25d71bTimo Sirainenbe_nsupdate_init(TALLOC_CTX *mem_ctx, struct be_ctx *be_ctx,
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainenvoid be_nsupdate_timer_schedule(struct tevent_context *ev,
87460b08cb97b31cde640d4975a6aa2c1d0e7226Timo Sirainensss_iface_addr_list_get(TALLOC_CTX *mem_ctx, const char *ifname,
87460b08cb97b31cde640d4975a6aa2c1d0e7226Timo Sirainensss_iface_addr_add(TALLOC_CTX *mem_ctx, struct sss_iface_addr **list,
c04f9a724a7b3cc649485a61b0a540868d25d71bTimo Sirainensss_iface_addr_list_as_str_list(TALLOC_CTX *mem_ctx,
8b12e7b44abca3bd51a1c46e19ca504f3b55e723Timo Sirainenbe_nsupdate_create_fwd_msg(TALLOC_CTX *mem_ctx, const char *realm,
872b8fd8a8db97dc54067b7ab25bda96ec0aac0dTimo Sirainen uint8_t remove_af, struct sss_iface_addr *addresses,
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainenbe_nsupdate_create_ptr_msg(TALLOC_CTX *mem_ctx, const char *realm,
1bdda5c0c30463160c47151537e6bb2c6c994841Timo Sirainen * * ERR_OK - on success
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainen * * ERR_DYNDNS_FAILED - if nsupdate fails for any reason
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainen * * ERR_DYNDNS_TIMEOUT - if the update times out. child_status
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainen * is ETIMEDOUT in this case
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainenstruct tevent_req *be_nsupdate_send(TALLOC_CTX *mem_ctx,
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainenerrno_t be_nsupdate_recv(struct tevent_req *req, int *child_status);
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainenstruct tevent_req * nsupdate_get_addrs_send(TALLOC_CTX *mem_ctx,
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainennsupdate_get_addrs_recv(struct tevent_req *req,
b88c43d09a288e99d439c78de4cc613212ea924cTimo Sirainen#endif /* DP_DYNDNS_H_ */