Skip to contentSkip to conversation

[5581] Move network redirection code out of vl.c and into net.c

Qemu-devel Anthony Liguori 1 participant 1 message Oct 31, 2008 Kbuild

lore
Share & tools
lore
#0 lore raw

Revision: 5581

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5581
Author:   aliguori
Date:     2008-10-31 19:10:00 +0000 (Fri, 31 Oct 2008)

Log Message:
-----------
Move network redirection code out of vl.c and into net.c

Mostly code motion.

Modified Paths:
--------------
trunk/Makefile.target
trunk/net.h
trunk/sysemu.h
trunk/vl.c

Added Paths:
-----------
trunk/net.c

Modified: trunk/Makefile.target
===================================================================

Makefile.target +1 -0
@@ -580,6 +580,7 @@
 
 OBJS=vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o machine.o net-checksum.o
 OBJS+=fw_cfg.o aio.o buffered_file.o migration.o migration-tcp.o qemu-char.o
+OBJS+=net.o
 ifdef CONFIG_WIN32
 OBJS+=block-raw-win32.o
 else

Added: trunk/net.c
===================================================================

net.c +1605 -0

1,605 lines not on this page · raw message

Modified: trunk/net.h
===================================================================

net.h +9 -0
@@ -69,4 +69,13 @@
                              uint8_t *addrs, uint8_t *buf);
 void net_checksum_calculate(uint8_t *data, int length);
 
+/* from net.c */
+int net_client_init(const char *device, const char *p);
+int net_client_parse(const char *str);
+void net_slirp_smb(const char *exported_dir);
+void net_slirp_redir(const char *redir_str);
+void net_cleanup(void);
+int slirp_is_inited(void);
+void net_client_check(void);
+
 #endif

Modified: trunk/sysemu.h
===================================================================

sysemu.h +7 -0
@@ -193,4 +193,11 @@
 void do_usb_del(const char *devname);
 void usb_info(void);
 
+const char *get_opt_name(char *buf, int buf_size, const char *p);
+const char *get_opt_value(char *buf, int buf_size, const char *p);
+int get_param_value(char *buf, int buf_size,
+                    const char *tag, const char *str);
+int check_params(char *buf, int buf_size,
+                 const char * const *params, const char *str);
+
 #endif

Modified: trunk/vl.c
===================================================================

vl.c +10 -1462

1,364 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.