<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div style="font-family:lucida console, sans-serif;font-size:13px;"><div style="font-family:lucida console, sans-serif;font-size:13px;"><div><div>Isn't jnos available as source code? I recall once compiling a version of it myself. It wasn't anything terribly difficult. A rather basic:<br><br>gcc -O3 -o jnos jnos.c<br><br>or something similar to that and it compiled without a fuss.<br><br><a href="https://www.juniper.net/support/downloads/opensource/junos/17.4X48/D10os.html" rel="nofollow" target="_blank" class="enhancr_card_2692144860">Open Source 17.4X48-D10 - Support - Juniper Networks</a><br></div><div><br></div><div id="ydpad274ad7enhancr_card_2692144860" class="ydpad274ad7yahoo-link-enhancr-card ydpad274ad7yahoo-link-enhancr-not-allow-cover ydpad274ad7ymail-preserve-class ydpad274ad7ymail-preserve-style" style="max-width:400px;font-family:"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif" data-url="https://www.juniper.net/support/downloads/opensource/junos/17.4X48/D10os.html" data-type="YENHANCER" data-size="MEDIUM" contenteditable="false"><a href="https://www.juniper.net/support/downloads/opensource/junos/17.4X48/D10os.html" style="text-decoration:none !important;color:#000 !important" class="ydpad274ad7yahoo-enhancr-cardlink" rel="nofollow" target="_blank"><table border="0" class="ydpad274ad7card-wrapper ydpad274ad7yahoo-ignore-table" cellpadding="0" cellspacing="0" style="max-width:400px"><tbody><tr><td width="400"><table border="0" class="ydpad274ad7card ydpad274ad7yahoo-ignore-table" cellpadding="0" cellspacing="0" width="100%" style="max-width:400px;border-width:1px;border-style:solid;border-color:rgb(224, 228, 233);border-radius:2px"><tbody><tr><td><table border="0" class="ydpad274ad7card-info ydpad274ad7yahoo-ignore-table" cellpadding="0" cellspacing="0" style="background:#fff;position:relative;z-index:2;width:100%;max-width:400px;border-radius:0 0 2px 2px;border-top:1px solid rgb(224, 228, 233)"><tbody><tr><td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;border-radius:0 0 0 2px"></td><td style="vertical-align:middle;padding:12px 24px 16px 12px;width:99%;font-family:"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;border-radius:0 0 2px 0"><h2 class="ydpad274ad7card-title" style="font-size: 14px; line-height: 19px; margin: 0px 0px 6px; font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; color: rgb(38, 40, 42);">Open Source 17.4X48-D10 - Support - Juniper Networks</h2><p class="ydpad274ad7card-description" style="font-size: 12px; line-height: 16px; margin: 0px; color: rgb(151, 155, 167);">Juniper Networks, Support</p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></a></div><div><br></div><div><br></div><div><br></div><div class="ydpdf999818signature">---- Barack-O-phobia: The fear of politicians who think (more) government is the solution to every problem.</div></div>
<div><br></div><div><br></div>
</div><div id="yahoo_quoted_2272455554" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Friday, July 20, 2018, 11:45:04 AM EDT, Rick Green <rtg@aapsc.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">Does Debian have a package for JNOS? It's probably old source that you want to <br clear="none">mess with, but if there is a jnos package, then there will be a jnos-dev meta-package <br clear="none">which will pull in all the dependencies necessary for compilation.<br clear="none"><br clear="none"> I used to know a version of the apt or dpkg command that would search the <br clear="none">repository for packages 'which provide' a given filename, but I can't pull it <br clear="none">out of the memory banks at the moment. 'apt search foo' only searches the <br clear="none">packages already installed, not the repository of available packages.<br clear="none"><br clear="none">On my ubuntu system, tun.c appears to have come from the JNOS tarball itself, <br clear="none">and tun.h and if_tun.h are part of the current kernel headers package, which I <br clear="none">believe is pulled in by build-essential. Have you<br clear="none"> apt-get install build-essential<br clear="none"><br clear="none"> The tunnel interface is part of the standard kernel, but it is implemented as <br clear="none">a module, which is not loaded by default at boot, so before you can configure a <br clear="none">tun interface you have to `modprobe tun`.<br clear="none">Google found me this:<br clear="none"> <a shape="rect" href="https://www.techonia.com/1400/create-tunnel-interface-linux" target="_blank">https://www.techonia.com/1400/create-tunnel-interface-linux</a><br clear="none"><br clear="none">...but you don't need to do that to compile, just before you want to run jnos.<br clear="none"><br clear="none">Rick Green<br clear="none"><br clear="none"><br clear="none"><br clear="none"><div class="yqt6894132924" id="yqtfd45364"><br clear="none">On Fri, 20 Jul 2018, Jay Nugent wrote:<br clear="none"><br clear="none">> Greetings fellow LUG folk,<br clear="none">> It has been 10 years since I have mucked around compiling C code, and as <br clear="none">> is usually the case, roadblocks and hurdles pop up that stretch my limits.<br clear="none">><br clear="none">> I am trying to compile the latest version of JNOS (Packet Radio software) <br clear="none">> on a 64-bit machine running Debian Stretch 4.13.0-45-generic.<br clear="none">><br clear="none">> I have tried to find what package contains the TUN device, and simply APT <br clear="none">> INSTALL it, but it has been no joy. I am leary to just make a node (mknod) <br clear="none">> and I'm not entiry sure that is what is needed. Searching Google has just <br clear="none">> added 100 more doubts into which is the correct way to go?<br clear="none">><br clear="none">> Once JNOS is compiled, I will need to set up a Point-to-Point Tunnel <br clear="none">> between the Linux kernel and the JNOS application. This is typically done <br clear="none">> with the commands:<br clear="none">><br clear="none">> (within JNOS)<br clear="none">> attach tun tun0 1500 0<br clear="none">> ifconfig tun0 ipaddress 192.168.2.1<br clear="none">> ifconfig tun0 mtu 1500<br clear="none">><br clear="none">> (then within Linux)<br clear="none">> ifconfig tun0 192.168.2.2 pointtopoint 192.168.2.1 mtu 1500 up<br clear="none">><br clear="none">><br clear="none">> But there is no TUN device on Linux so the ifconfig fails. And I belive <br clear="none">> since the TUN device doesn't exist on the Linux box, that is why the compile <br clear="none">> of JNOS is failing. At least the ERROR messages during the compile seem to <br clear="none">> indicate so...<br clear="none">><br clear="none">> The compile goes along well until it needs to work with the TUN interface <br clear="none">> (tun.c). Then it spews some errors, and exits without creating the <br clear="none">> executable:<br clear="none">><br clear="none">> ....<br clear="none">> ....<br clear="none">> gcc -DUNIX -g3 -DDEBUG -Wall -c -o devparam.o devparam.c<br clear="none">> gcc -DUNIX -g3 -DDEBUG -Wall -c -o md5.o md5.c<br clear="none">> gcc -DUNIX -g3 -DDEBUG -Wall -c -o tun.o tun.c<br clear="none">> In file included from netuser.h:38:0,<br clear="none">> from tcp.h:26,<br clear="none">> from iface.h:25,<br clear="none">> from tun.c:26:<br clear="none">> socket.h:85:21: error: expected identifier before numeric constant<br clear="none">> #define SOCK_STREAM 0<br clear="none">> ^<br clear="none">> In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:33:0,<br clear="none">> from /usr/include/linux/if.h:27,<br clear="none">> from tun.c:41:<br clear="none">> /usr/include/x86_64-linux-gnu/bits/socket.h:174:8: error: redefinition of <br clear="none">> ‘struct sockaddr’<br clear="none">> struct sockaddr<br clear="none">> ^~~~~~~~<br clear="none">> In file included from socket.h:22:0,<br clear="none">> from netuser.h:38,<br clear="none">> from tcp.h:26,<br clear="none">> from iface.h:25,<br clear="none">> from tun.c:26:<br clear="none">> sockaddr.h:13:8: note: originally defined here<br clear="none">> struct sockaddr {<br clear="none">> ^~~~~~~~<br clear="none">> <builtin>: recipe for target 'tun.o' failed<br clear="none">> make: *** [tun.o] Error 1<br clear="none">> <a shape="rect" ymailto="mailto:root@SkyLake2" href="mailto:root@SkyLake2">root@SkyLake2</a>:~/jnos-source#<br clear="none">><br clear="none">><br clear="none">> Any compile savy folk have any suggestions? I think if I can determine <br clear="none">> how to install the package that contains the /dev/tun it *may* get me over <br clear="none">> this hurdle.<br clear="none">><br clear="none">><br clear="none">> Thanks!<br clear="none">> --- Jay</div><br clear="none">><br clear="none"><br clear="none">-- <br clear="none">Rick Green<br clear="none"><br clear="none">We, the People of the United States of America, reject the U.S. Supreme Court's<br clear="none"> Citizens United ruling, and move to amend our Constitution to firmly establish<br clear="none"> that money is not speech, and that human beings, not corporations, are persons<br clear="none"> entitled to constitutional rights.<br clear="none"><br clear="none"> <a shape="rect" href="http://www.MoveToAmend.org" target="_blank">http://www.MoveToAmend.org</a><div class="yqt6894132924" id="yqtfd39337"><br clear="none"><br clear="none"></div></div><div class="yqt6894132924" id="yqtfd28248">______________________________________________________<br clear="none">washlug mailing list washlug web site<br clear="none"><a shape="rect" ymailto="mailto:washlug@washlug.org" href="mailto:washlug@washlug.org">washlug@washlug.org</a> www.washlug.org<br clear="none"><a shape="rect" href="http://linux.marcdatabase.com/mailman/listinfo/washlug" target="_blank">http://linux.marcdatabase.com/mailman/listinfo/washlug</a><br clear="none"></div></div>
</div>
</div></div></body></html>