Page MenuHomeSolus

Update slirp4netns to 0.4.4
ClosedPublic

Authored by chax on Mar 26 2020, 4:21 AM.

Details

Summary

Update slirp4netns to 0.4.4

Changelog:

  • libslirp: update to v4.2.0
  • minor fixes and improvements
Test Plan

built and installed, tried to setup slirp network

Terminal 1:
user@host$ unshare --user --map-root-user --net --mount
unshared@host$ echo $$ > /tmp/pid 

Terminal 2:
user@host$ slirp4netns --configure --mtu=65520 --disable-host-loopback $(cat /tmp/pid) tap0
Starting slirp
* MTU:             65520
...

Terminal 1:
unshared@host$ ip a
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
3: tap0: <BROADCAST,UP,LOWER_UP> mtu 65520 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether c2:28:0c:0e:29:06 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.100/24 brd 10.0.2.255 scope global tap0
       valid_lft forever preferred_lft forever
    inet6 fe80::c028:cff:fe0e:2906/64 scope link 
       valid_lft forever preferred_lft forever
unshared@host$ echo "nameserver 10.0.2.3" > /tmp/resolv.conf
unshared@host$ mount --bind /tmp/resolv.conf /etc/resolv.conf
unshared@host$ curl https://example.com

Diff Detail

Repository
R4785 slirp4netns
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

chax created this revision.Mar 26 2020, 4:21 AM
chax requested review of this revision.Mar 26 2020, 4:21 AM
JoshStrobl added inline comments.
abi_used_libs
5

Where is this getting linked from? Not seeing any obvious provider of this.

chax added inline comments.Mar 26 2020, 9:55 AM
abi_used_libs
5

Aaah sorry this is leftover from my tests, it got committed by mistake. I will fix this

chax updated this revision to Diff 20452.Mar 26 2020, 9:57 AM

Fixed abi report

JoshStrobl accepted this revision.Mar 26 2020, 11:21 AM

LGTM, thanks!

This revision is now accepted and ready to land.Mar 26 2020, 11:21 AM
This revision was automatically updated to reflect the committed changes.