|
From: Bruce S. <bw...@re...> - 2010-02-26 02:47:37
|
Cool. ipcalc included the "BROADCAST=" part, hence the "eval". - BS On Thu, Feb 25, 2010 at 21:17, Serge Leschinsky <fi...@in...> wrote: > Bruce, > > thank you. > > BROADCAST=$(sipcalc $IP $NETMASK 2> /dev/null | grep Broadcast | cut -d'-' -f2 | > tr -d [:space:]) > > It works. I'm going to submit the patch > > Serge > > > On 02/25/2010 05:26 PM, Bruce Smith wrote: >> the ipcalc should return the broadcast address, so there appears to be >> something wrong with your setup fix. >> >> Try this instead (untested): >> >> BROADCAST=$(sipcalc $IP $NETMASK 2> /dev/null | grep Broadcast | cut -d'-' -f2) >> >> - BS >> >> On Thu, Feb 25, 2010 at 20:18, Serge Leschinsky <fi...@in...> wrote: >>> Bruce, >>> >>> sorry for my hasty decision. I need your help. I'm not sure that I've completely >>> understood how it works... >>> >>> Is it correct change? >>> - eval $(ipcalc -b $IP $NETMASK 2> /dev/null) >>> + eval $(sipcalc $IP $NETMASK 2> /dev/null | grep Broadcast | cut -d'-' -f2) >>> >>> If I configure NIC by setup I get the following config >>> ----------------------------- >>> DEVICE=eth0 >>> ONBOOT=yes >>> MODULE=autoselect >>> DHCP=no >>> IP="192.168.1.2" >>> NETMASK="255.255.255.224" >>> BROADCAST="" >>> ----------------------------- >>> >>> Broadcast is empty and I don't understand if it's improper sipcalc usage or not. >>> >>> Serge >>> >>> On 02/25/2010 05:00 AM, Bruce Smith wrote: >>>> Either way is fine with me. >>>> >>>> If you decide to delete ipcalc, please make the change to setup. >>>> >>>> - BS >>>> >>>> >>>> On Wed, Feb 24, 2010 at 23:07, Serge Leschinsky <fi...@in...> wrote: >>>>> Bruce, >>>>> >>>>> I see this line in setup >>>>> eval $(ipcalc -b $IP $NETMASK 2> /dev/null) >>>>> >>>>> Do we need to calculate broadcast? >>>>> >>>>> sipcalc 192.168.1.4 255.255.255.224 | grep Broadcast | cut -d'-' -f2 >>>>> >>>>> does the same. >>>>> >>>>> PS. We can have the both program of course if you prefer to use ipcalc >>>>> >>>>> Serge >>>>> >>>>> >>>>> On 02/24/2010 06:52 PM, Bruce Smith wrote: >>>>>> The main "setup" program uses ipcalc, so removing it will break setup. >>>>>> >>>>>> Is there any reason we can't have both programs? >>>>>> >>>>>> Or how much difference is there in the syntax (how much work to fix setup)? >>>>>> >>>>>> - BS >>>>>> >>>>>> >>>>>> On Wed, Feb 24, 2010 at 21:38, Heiko Zuerker <he...@zu...> wrote: >>>>>>>> -----Original Message----- >>>>>>>> From: Andrzej Odyniec [mailto:an...@ma...] >>>>>>>> Sent: Wednesday, February 24, 2010 8:37 PM >>>>>>>> To: dev...@li... >>>>>>>> Subject: Re: [Devil-linux-develop] sipcalc? >>>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> Serge Leschinsky wrote: >>>>>>>>> I'm very sorry for inconvenience with broken makefiles. >>>>>>>> Absolutely no problem. :) >>>>>>>> >>>>>>>>> So, if we are agree that sipcalc is better than ipcalc, I'll >>>>>>>> upload the package >>>>>>>>> and script (and remove ipcalc) >>>>>>>> >>>>>>>> As for me ipcalc is practically unusable. I found and I'm using >>>>>>>> perl script >>>>>>>> known as: >>>>>>>>> # IPv4 Calculator >>>>>>>>> # Copyright (C) Krischan Jodies 2000 - 2004 >>>>>>>>> # krischan()jodies.de, http://jodies.de/ipcalc >>>>>>>> >>>>>>>> But sipcalc has near this same functionality. This is nice. >>>>>>> >>>>>>> I'm good with it too. >>>>>>> >>>>>>> Heiko >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> Download Intel® Parallel Studio Eval >>>>>>> Try the new software tools for yourself. Speed compiling, find bugs >>>>>>> proactively, and fine-tune applications for parallel performance. >>>>>>> See why Intel Parallel Studio got high marks during beta. >>>>>>> http://p.sf.net/sfu/intel-sw-dev >>>>>>> _______________________________________________ >>>>>>> Devil-linux-develop mailing list >>>>>>> Dev...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/devil-linux-develop >>>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Download Intel® Parallel Studio Eval >>>>>> Try the new software tools for yourself. Speed compiling, find bugs >>>>>> proactively, and fine-tune applications for parallel performance. >>>>>> See why Intel Parallel Studio got high marks during beta. >>>>>> http://p.sf.net/sfu/intel-sw-dev >>>>>> _______________________________________________ >>>>>> Devil-linux-develop mailing list >>>>>> Dev...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/devil-linux-develop >>>>>> >>>>> >>>>> >>>> >>> >>> >> > > |