slirp.c (68b459eaa660be17d3547aa581502fe2c572c84f) slirp.c (a30ecde6e795682d1473c45acae66a60a76fca2f)
1/*
2 * QEMU System Emulator
3 *
4 * Copyright (c) 2003-2008 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 723 unchanged lines hidden (view full) ---

732 ret[i++] = c->value->str;
733 c = c->next;
734 }
735 ret[i] = NULL;
736 return ret;
737}
738
739int net_init_slirp(const NetClientOptions *opts, const char *name,
1/*
2 * QEMU System Emulator
3 *
4 * Copyright (c) 2003-2008 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 723 unchanged lines hidden (view full) ---

732 ret[i++] = c->value->str;
733 c = c->next;
734 }
735 ret[i] = NULL;
736 return ret;
737}
738
739int net_init_slirp(const NetClientOptions *opts, const char *name,
740 NetClientState *peer)
740 NetClientState *peer, Error **errp)
741{
741{
742 /* FIXME error_setg(errp, ...) on failure */
742 struct slirp_config_str *config;
743 char *vnet;
744 int ret;
745 const NetdevUserOptions *user;
746 const char **dnssearch;
747
748 assert(opts->kind == NET_CLIENT_OPTIONS_KIND_USER);
749 user = opts->user;

--- 55 unchanged lines hidden ---
743 struct slirp_config_str *config;
744 char *vnet;
745 int ret;
746 const NetdevUserOptions *user;
747 const char **dnssearch;
748
749 assert(opts->kind == NET_CLIENT_OPTIONS_KIND_USER);
750 user = opts->user;

--- 55 unchanged lines hidden ---