- msg = xasprintf("%s\n"IP_FMT"\n%d\n",
- dev->real_name,
- IP_ARGS(&dev->local_addr.sin_addr),
- dev->local_netmask);
- reply = (char*)xmalloc(reply_size);
- if (!msg || !reply) {
- VLOG_ERR("Out of memory\n");
- error = ENOMEM;
- goto cleanup;
- }
- error = vsys_transaction("vif_up", msg, reply, reply_size);
- if (error) {
- goto cleanup;
- }
- netdev_pltap_update_seq(dev);
-
-cleanup:
- free(msg);
- free(reply);
-
- return error;
+ return vsys_transaction("vif_up", NULL, "%s\n"IP_FMT"\n%d\n",
+ dev->real_name,
+ IP_ARGS(&dev->local_addr.sin_addr),
+ dev->local_netmask);