diff --git a/ifconfig.lua b/ifconfig.lua index 8cef47e..08f0831 100644 --- a/ifconfig.lua +++ b/ifconfig.lua @@ -1,4 +1,8 @@ -IPvCC = require "/IPvCC" +local myPath = shell.dir() +shell.setDir("/") +IPvCC = require "IPvCC" +shell.setDir(myPath) + IPvCC.checkInterfaces() for id, interface in pairs(IPvCC.interfaces) do print(id, "Link encap:", interface.layer.type, interface.infoString) diff --git a/testRecv.lua b/testRecv.lua index d175849..c8a1648 100644 --- a/testRecv.lua +++ b/testRecv.lua @@ -1,4 +1,8 @@ -IPvCC = require "/IPvCC" +local myPath = shell.dir() +shell.setDir("/") +IPvCC = require "IPvCC" +shell.setDir(myPath) + IPvCC.checkInterfaces() IPvCC.interfaces["back"]:open(10) diff --git a/testSend.lua b/testSend.lua index 3fd3ff1..785c80c 100644 --- a/testSend.lua +++ b/testSend.lua @@ -1,4 +1,8 @@ -IPvCC = require "/IPvCC" +local myPath = shell.dir() +shell.setDir("/") +IPvCC = require "IPvCC" +shell.setDir(myPath) + IPvCC.checkInterfaces() local mesage = IPvCC.types.Packet:new(10, 80, 0, {msg="Hello"}) IPvCC.interfaces["back"].layer:transmit(mesage) \ No newline at end of file