+ e->options = options;
+ if(sockaddrcmp(&e->address, &address)) {
+ sockaddrfree(&e->address);
+ e->address = address;
+ }
+ if(e->weight != weight) {
+ avl_node_t *node = avl_unlink(edge_weight_tree, e);
+ e->weight = weight;
+ avl_insert_node(edge_weight_tree, node);
+ }
+
+ goto done;