You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: tun.rs
    path of file: ./repos/lora-mesh-rs/src/stack
    
    the code of the file until where you have to start completion: use log::*;
use std::process::Command;
use std::thread;
extern crate tun_tap;
use t
    
    pub fn new(iface: Arc<Iface>) -> Self {
        trace!("Iface: {:?}", iface);

        let tunname = String::from(iface.name().clone());

        // Configure the local kernel interface with a kernel
        // IP and we will route and capture traffic through it
        let iaddr = Ipv4Addr::new(10,107,1,3);
        ipassign(tunname.as_str(), &iaddr);
        ipcmd("ip", &["link", "set", "dev", tunname.as_str(), "up"]);
        info!("Created interface {} with IP addr {}", tunname, iaddr.to_string());

        // set up channels for sending and receiving packets
        let (inboundSender, inboundReceiver) = crossbeam_channel::unbounded();

        NetworkTunnel {
            tunname: tunname,
            interface: iface,
            tunip: Some(iaddr),
            inboundSender,
            inboundReceiver
        }
    }