aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/slirp_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers/slirp_user.c')
-rw-r--r--arch/um/drivers/slirp_user.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/um/drivers/slirp_user.c b/arch/um/drivers/slirp_user.c
index a4755bc33e1e..1865089ff41a 100644
--- a/arch/um/drivers/slirp_user.c
+++ b/arch/um/drivers/slirp_user.c
@@ -124,18 +124,13 @@ int slirp_user_write(int fd, void *buf, int len, struct slirp_data *pri)
124 return slip_proto_write(fd, buf, len, &pri->slip); 124 return slip_proto_write(fd, buf, len, &pri->slip);
125} 125}
126 126
127static int slirp_set_mtu(int mtu, void *data)
128{
129 return mtu;
130}
131
132const struct net_user_info slirp_user_info = { 127const struct net_user_info slirp_user_info = {
133 .init = slirp_user_init, 128 .init = slirp_user_init,
134 .open = slirp_open, 129 .open = slirp_open,
135 .close = slirp_close, 130 .close = slirp_close,
136 .remove = NULL, 131 .remove = NULL,
137 .set_mtu = slirp_set_mtu,
138 .add_address = NULL, 132 .add_address = NULL,
139 .delete_address = NULL, 133 .delete_address = NULL,
140 .max_packet = BUF_SIZE 134 .mtu = BUF_SIZE,
135 .max_packet = BUF_SIZE,
141}; 136};