<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:&quot;Helvetica Neue&quot;, &quot;Segoe UI&quot;, 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:&quot;Helvetica Neue&quot;, &quot;Segoe UI&quot;, 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: &quot;Helvetica Neue&quot;, &quot;Segoe UI&quot;, 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 &lt;rtg@aapsc.com&gt; wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">Does Debian have a package for JNOS?&nbsp; 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">&nbsp;  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.&nbsp; '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.&nbsp; Have you<br clear="none">&nbsp; &nbsp; apt-get install build-essential<br clear="none"><br clear="none">&nbsp;  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">&nbsp; &nbsp;  <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">&gt; Greetings fellow LUG folk,<br clear="none">&gt;&nbsp;  It has been 10 years since I have mucked around compiling C code, and as <br clear="none">&gt; is usually the case, roadblocks and hurdles pop up that stretch my limits.<br clear="none">&gt;<br clear="none">&gt;&nbsp;  I am trying to compile the latest version of JNOS (Packet Radio software) <br clear="none">&gt; on a 64-bit machine running Debian Stretch 4.13.0-45-generic.<br clear="none">&gt;<br clear="none">&gt;&nbsp;  I have tried to find what package contains the TUN device, and simply APT <br clear="none">&gt; INSTALL it, but it has been no joy.&nbsp; I am leary to just make a node (mknod) <br clear="none">&gt; and I'm not entiry sure that is what is needed.&nbsp; Searching Google has just <br clear="none">&gt; added 100 more doubts into which is the correct way to go?<br clear="none">&gt;<br clear="none">&gt;&nbsp;  Once JNOS is compiled, I will need to set up a Point-to-Point Tunnel <br clear="none">&gt; between the Linux kernel and the JNOS application.&nbsp; This is typically done <br clear="none">&gt; with the commands:<br clear="none">&gt;<br clear="none">&gt; (within JNOS)<br clear="none">&gt;&nbsp;  attach tun tun0 1500 0<br clear="none">&gt;&nbsp;  ifconfig tun0 ipaddress 192.168.2.1<br clear="none">&gt;&nbsp;  ifconfig tun0 mtu 1500<br clear="none">&gt;<br clear="none">&gt; (then within Linux)<br clear="none">&gt;&nbsp;  ifconfig tun0 192.168.2.2 pointtopoint 192.168.2.1 mtu 1500 up<br clear="none">&gt;<br clear="none">&gt;<br clear="none">&gt;&nbsp;  But there is no TUN device on Linux so the ifconfig fails.&nbsp; And I belive <br clear="none">&gt; since the TUN device doesn't exist on the Linux box, that is why the compile <br clear="none">&gt; of JNOS is failing.&nbsp; At least the ERROR messages during the compile seem to <br clear="none">&gt; indicate so...<br clear="none">&gt;<br clear="none">&gt;&nbsp;  The compile goes along well until it needs to work with the TUN interface <br clear="none">&gt; (tun.c).&nbsp; Then it spews some errors, and exits without creating the <br clear="none">&gt; executable:<br clear="none">&gt;<br clear="none">&gt; ....<br clear="none">&gt; ....<br clear="none">&gt; gcc -DUNIX -g3&nbsp;  -DDEBUG -Wall&nbsp;  -c -o devparam.o devparam.c<br clear="none">&gt; gcc -DUNIX -g3&nbsp;  -DDEBUG -Wall&nbsp;  -c -o md5.o md5.c<br clear="none">&gt; gcc -DUNIX -g3&nbsp;  -DDEBUG -Wall&nbsp;  -c -o tun.o tun.c<br clear="none">&gt; In file included from netuser.h:38:0,<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  from tcp.h:26,<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  from iface.h:25,<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  from tun.c:26:<br clear="none">&gt; socket.h:85:21: error: expected identifier before numeric constant<br clear="none">&gt; #define SOCK_STREAM 0<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ^<br clear="none">&gt; In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:33:0,<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  from /usr/include/linux/if.h:27,<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  from tun.c:41:<br clear="none">&gt; /usr/include/x86_64-linux-gnu/bits/socket.h:174:8: error: redefinition of <br clear="none">&gt; â€˜struct sockaddr’<br clear="none">&gt; struct sockaddr<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~<br clear="none">&gt; In file included from socket.h:22:0,<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  from netuser.h:38,<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  from tcp.h:26,<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  from iface.h:25,<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  from tun.c:26:<br clear="none">&gt; sockaddr.h:13:8: note: originally defined here<br clear="none">&gt; struct sockaddr {<br clear="none">&gt;&nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~<br clear="none">&gt; &lt;builtin&gt;: recipe for target 'tun.o' failed<br clear="none">&gt; make: *** [tun.o] Error 1<br clear="none">&gt; <a shape="rect" ymailto="mailto:root@SkyLake2" href="mailto:root@SkyLake2">root@SkyLake2</a>:~/jnos-source#<br clear="none">&gt;<br clear="none">&gt;<br clear="none">&gt;&nbsp;  Any compile savy folk have any suggestions?&nbsp; I think if I can determine <br clear="none">&gt; how to install the package that contains the /dev/tun it *may* get me over <br clear="none">&gt; this hurdle.<br clear="none">&gt;<br clear="none">&gt;<br clear="none">&gt;&nbsp;  Thanks!<br clear="none">&gt;&nbsp; &nbsp; &nbsp; --- Jay</div><br clear="none">&gt;<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">&nbsp; Citizens United ruling, and move to amend our Constitution to firmly establish<br clear="none">&nbsp; that money is not speech, and that human beings, not corporations, are persons<br clear="none">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; entitled to constitutional rights.<br clear="none"><br clear="none"> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <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&nbsp; &nbsp; washlug web site<br clear="none"><a shape="rect" ymailto="mailto:washlug@washlug.org" href="mailto:washlug@washlug.org">washlug@washlug.org</a>&nbsp; &nbsp;  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>