aboutsummaryrefslogtreecommitdiff
path: root/src/slirp.h
diff options
context:
space:
mode:
authorAkihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>2019-07-10 15:07:37 +0900
committerMarc-André Lureau <marcandre.lureau@redhat.com>2019-08-01 10:57:57 +0400
commit09d410adbff5422b7ba7596bce0ca71f9f807ea9 (patch)
tree65e4ad7ec659bdb091acd65382f58851d7cdd9de /src/slirp.h
parentac916a56bedf449e481c4dc1cda192ca386ff939 (diff)
downloadslirp-09d410adbff5422b7ba7596bce0ca71f9f807ea9.zip
slirp-09d410adbff5422b7ba7596bce0ca71f9f807ea9.tar.gz
slirp-09d410adbff5422b7ba7596bce0ca71f9f807ea9.tar.bz2
allow custom MTU
From https://github.com/rootless-containers/slirp4netns/blob/4889f5299f407d7d7566c76a3b8b5f71c99b6db5/qemu_patches/0002-slirp-allow-custom-MTU.patch Original commits: * https://github.com/rootless-containers/slirp4netns/commit/ea630a7e945cf538184ff1b1b4bd7b8ddc01993e * https://github.com/rootless-containers/slirp4netns/commit/1508a66c93c223555f08651592dde3d2d708b166 * https://github.com/rootless-containers/slirp4netns/commit/19f3f41df4066d6103e6f882500e24db7ea7d9e1 * https://github.com/rootless-containers/slirp4netns/commit/a11abedafcc627ef0657999e63b211b0f26d4c02 * https://github.com/rootless-containers/slirp4netns/commit/2adbd7c449944d3b837164c86eedd3dcabbba1a6 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Diffstat (limited to 'src/slirp.h')
-rw-r--r--src/slirp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slirp.h b/src/slirp.h
index 37ba6ed..5fbee5c 100644
--- a/src/slirp.h
+++ b/src/slirp.h
@@ -144,6 +144,9 @@ struct Slirp {
int restricted;
struct gfwd_list *guestfwd_list;
+ int if_mtu;
+ int if_mru;
+
/* mbuf states */
struct quehead m_freelist;
struct quehead m_usedlist;