slirp: rename exec_list

This list is not only used to handle command to execute on guest
connection, it can also redirect to an arbitrary object, such as a
chardev. Let's rename the struct and the field to "guestfwd".

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
This commit is contained in:
Marc-André Lureau 2018-11-22 02:06:22 +04:00 committed by Samuel Thibault
parent df2ad332da
commit 5d300fc922
6 changed files with 21 additions and 21 deletions

View file

@ -36,10 +36,10 @@ remque(void *a)
element->qh_rlink = NULL;
}
int add_exec(struct ex_list **ex_ptr, void *chardev, const char *cmdline,
int add_exec(struct gfwd_list **ex_ptr, void *chardev, const char *cmdline,
struct in_addr addr, int port)
{
struct ex_list *tmp_ptr;
struct gfwd_list *tmp_ptr;
/* First, check if the port is "bound" */
for (tmp_ptr = *ex_ptr; tmp_ptr; tmp_ptr = tmp_ptr->ex_next) {
@ -49,7 +49,7 @@ int add_exec(struct ex_list **ex_ptr, void *chardev, const char *cmdline,
}
tmp_ptr = *ex_ptr;
*ex_ptr = g_new0(struct ex_list, 1);
*ex_ptr = g_new0(struct gfwd_list, 1);
(*ex_ptr)->ex_fport = port;
(*ex_ptr)->ex_addr = addr;
if (chardev) {