Merge pull request #1099 from dlrobertson/add_bridge

Allow specifying a bridge for qemu to use
This commit is contained in:
Jeremy Soller 2017-11-12 06:50:06 -07:00 committed by GitHub
commit f9865f49d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,11 @@ endif
ifeq ($(net),no)
QEMUFLAGS+=-net none
else
QEMUFLAGS+=-net nic,model=e1000 -net user -net dump,file=build/network.pcap
ifneq ($(bridge),)
QEMUFLAGS+=-netdev bridge,br=$(bridge),id=net0 -device e1000,netdev=net0,id=nic0
else
QEMUFLAGS+=-net nic,model=e1000 -net user -net dump,file=build/network.pcap
endif
ifeq ($(net),redir)
QEMUFLAGS+=-redir tcp:8023::8023 -redir tcp:8080::8080
endif