Lines Matching defs:publisher
28 #include "omr-publisher.h"
170 nat64_infra_prefix_publisher_t *publisher = calloc(1, sizeof(*publisher));
171 if (publisher == NULL) {
172 return publisher;
174 RETAIN_HERE(publisher, nat64_infra_prefix_publisher);
175 publisher->nat64 = nat64;
176 RETAIN_HERE(publisher->nat64, nat64);
177 return publisher;
181 nat64_infra_prefix_publisher_finalize(nat64_infra_prefix_publisher_t *publisher)
183 free(publisher);
187 nat64_infra_prefix_publisher_cancel(nat64_infra_prefix_publisher_t *publisher)
189 if (publisher != NULL) {
190 if (publisher->state == nat64_infra_prefix_publisher_state_publishing) {
191 SEGMENTED_IPv6_ADDR_GEN_SRP(publisher->proposed_prefix->prefix.s6_addr, nat64_prefix_buf);
193 SEGMENTED_IPv6_ADDR_PARAM_SRP(publisher->proposed_prefix->prefix.s6_addr, nat64_prefix_buf));
194 nat64_add_prefix_to_update_queue(publisher->nat64, publisher->proposed_prefix, nat64_prefix_action_remove);
196 if (publisher->proposed_prefix != NULL) {
197 RELEASE_HERE(publisher->proposed_prefix, nat64_prefix);
198 publisher->proposed_prefix = NULL;
200 if (publisher->nat64 != NULL) {
201 RELEASE_HERE(publisher->nat64, nat64);
202 publisher->nat64 = NULL;
210 nat64_br_prefix_publisher_t *publisher = calloc(1, sizeof(*publisher));
211 if (publisher == NULL) {
212 return publisher;
214 RETAIN_HERE(publisher, nat64_br_prefix_publisher);
215 publisher->nat64 = nat64;
216 RETAIN_HERE(publisher->nat64, nat64);
217 return publisher;
221 nat64_br_prefix_publisher_finalize(nat64_br_prefix_publisher_t *publisher)
223 free(publisher);
227 nat64_br_prefix_publisher_cancel(nat64_br_prefix_publisher_t *publisher)
229 if (publisher != NULL) {
230 if (publisher->state == nat64_br_prefix_publisher_state_publishing) {
231 SEGMENTED_IPv6_ADDR_GEN_SRP(publisher->br_prefix->prefix.s6_addr, nat64_prefix_buf);
233 SEGMENTED_IPv6_ADDR_PARAM_SRP(publisher->br_prefix->prefix.s6_addr, nat64_prefix_buf));
234 nat64_add_prefix_to_update_queue(publisher->nat64, publisher->br_prefix, nat64_prefix_action_remove);
236 if (publisher->br_prefix != NULL) {
237 RELEASE_HERE(publisher->br_prefix, nat64_prefix);
238 publisher->br_prefix = NULL;
240 if (publisher->timer != NULL) {
241 ioloop_cancel_wake_event(publisher->timer);
242 ioloop_wakeup_release(publisher->timer);
243 publisher->timer = NULL;
245 if (publisher->nat64 != NULL) {
246 RELEASE_HERE(publisher->nat64, nat64);
247 publisher->nat64 = NULL;
274 INFO("discontinuing nat64 infra prefix publisher");
280 INFO("discontinuing nat64 br prefix publisher");
519 // Deliver out_event to BR prefix publisher
729 // Deliver this event to infra prefix publisher.
735 // Deliver this event to BR prefix publisher.
947 // Deliver this event to infra prefix publisher.
953 // Deliver this event to BR prefix publisher.
993 // Infrastructure nat64 prefix publisher state machine start
1229 // Infra prefix publisher event functions
1268 // Infrastructure nat64 prefix publisher state machine end
1271 // BR nat64 prefix publisher state machine start
1459 // BR prefix publisher event functions
1480 // BR nat64 prefix publisher state machine end