Linux-Development-Sys Digest #4, Volume #8        Sat, 8 Jul 00 15:13:16 EDT

Contents:
  Re: Weird behaviour of "route" (Ken Johnson)
  Re: choosing network interfaces (L Stewart)
  Re: Implementing timers in none Windows applications (Aurel Balmosan)
  Re: Lint for Redhat 6.1: (Nic)
  Sys call for Available Memory? (MeekGeek)
  Re: HowDoI get info out of ./.config? (Myint)
  Re: choosing network interfaces ([EMAIL PROTECTED])
  Re: Sys call for Available Memory? ([EMAIL PROTECTED])
  Re: changing skbuff (rushi)
  Warning! -- SONY SUBSTANDARD SERVICE ([EMAIL PROTECTED])
  Re: is there a port to windows media player? (C.J.)
  Re: is there a port to windows media player? (Mike Frisch)

----------------------------------------------------------------------------

From: Ken Johnson <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.development.apps,linux.redhat.development,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.setup
Subject: Re: Weird behaviour of "route"
Date: Sat, 08 Jul 2000 00:09:25 GMT

"Robichaud, Jean-Philippe [BAN:6S33:EXCH]" wrote:
> 
>         Hi, I have a Redhat 6.1 Linux distribution installed.  My computer have
> 2 ethernet cards : eth0, eth1.  Normally, my default gateway is defined
> for eth0.  I do an ifconfig eth0 down and "route del default".  When I
> do "route", it report the correct routes.  If I do "route add default gw
> XX.XXX.XX.XX eth1", no error are reported.

You should probably use "ifup ethx" or "ifdown ethx" instead of
ifconfig...  this will issue the proper route commands for you.

>         Then, If I try to ping inside the subnet address, or outside, I get
> unreachable host...  If I try "route" it report the correct route except
> that the default gateway never apear (it just wait for ever without
> doing anything).

It's trying to look up the hostname of the gateway;  if you do "route
-n" that hanging will stop.

>  If I do a cat /proc/net/route, I see the correct
> entries : a default gateway is correctly configure for eth1.  What is
> that ???
> 
> I have try doing this in every order, leaving time between commands so
> the system have time to get "in sync" (if it needs to).  Still, it just
> look like I can't use my second interface...

This is beginning to sound like a configuration problem.   Post back to
c.o.l.n. with some diagnostics.

K.

------------------------------

From: L Stewart <[EMAIL PROTECTED]>
Subject: Re: choosing network interfaces
Date: 8 Jul 2000 00:10:40 GMT

[EMAIL PROTECTED] wrote:
> Which interface the traffic goes out depends in the routing.  If you have
> two paths to the same address, it's going to choose the best one.  The
> route can change even while the source address binding is the same, and
> it still works as long as the return route works one way or the other.
> If you need to do stuff like testing both paths, you need to identify
> each path by means of a different destination address for each.

Ok. We're using static routing on the Linux boxes with 'route add -net
...', the typical stuff, so there isn't any route discovery or
differentiation. There's EIGRP doing routing within a cluster of routers
that are attached to the boxes, but that's transparent to the linux
endpoints.

All that needs to be done is to get traffic out a user specified
interface. ie something like

$ trafgen -I eth1 10.2.1.2
$ trafgen -I eth2 10.2.1.2

would send traffic to the same destination, but through two interfaces on
the same box.

Would specifying the source address work? I've thought a bit about how to
do that, but it isn't clear to me..something to do with MSG_DONTROUTE...

> It would be nice if Linux had an integrated network policy system which
> allowed making all network decisions (firewall, routing, bridging, etc)
> based on any criteria of any packet or frame.  But such a thing is not
> in any kernel I've seen.

Or give programmers an easy way of making decisions arbitrarily.

> -- 
> | Phil Howard - KA9WGN | My current websites: linuxhomepage.com, ham.org
> | phil  (at)  ipal.net +----------------------------------------------------
> | Dallas - Texas - USA | [EMAIL PROTECTED]

Liam

-- 
Liam Stewart
E-Mail: [EMAIL PROTECTED]

"It is not enough to be busy, so are the ants. The question is: what are
we busy about?"
-Henry David Thoreau

------------------------------

Crossposted-To: comp.os.linux.development
From: Aurel Balmosan <[EMAIL PROTECTED]>
Subject: Re: Implementing timers in none Windows applications
Date: Sat, 8 Jul 2000 01:29:21 GMT

In comp.os.linux.development.system Kaz Kylheku <[EMAIL PROTECTED]> wrote:
> glibc 2.2 is alread in its first test release and has the functions
> timer_create, timer_delete and timer_settime. These functions are
> documented by the POSIX draft and The Single UNIX Specification:
> http://www.unix-systems.org/single_unix_specification_v2/

> With timer_create you can create many timers (currently, the 2.1.91 test
> release has a limit of 256 timers, but that will likely go up before 2.2 is
> released). These new timers can be configured to deliver a signal, or to
> execute a handler in the context of a new thread. You can configure the
> properties of that thread, such as its priority and scheduling class.

Well,

or your write your own timer using gettimeofday() and poll() or select(). With
threads you will always have a general problem with the synchronisation of
critical sections. It is no problem to have 65000+ timers in such a library
without a performance problem. (Only the oldest timer is checked.)

e-mail me if you want the code.

Bye,

        Aurel.
-- 
================================================================
Aurel Balmosan                |  [EMAIL PROTECTED], [EMAIL PROTECTED] 
http://gaia.owl.de/~aurel/    |                                 
================================================================

------------------------------

From: Nic <[EMAIL PROTECTED]>
Subject: Re: Lint for Redhat 6.1:
Date: Sat, 08 Jul 2000 15:07:12 +1200

Richard Bonomo wrote:
> 
> If it did, could someone tell me where to find it?
> If it did not, could someone tell me where I might
> find a download on the net?

See if there's an lclint package, or failing that, check freshmeat.net
for it.

Regards,
        Nic.

-- 
J. Random Coder < sky at wibble dot net >

------------------------------

From: MeekGeek <[EMAIL PROTECTED]>
Subject: Sys call for Available Memory?
Date: Sat, 08 Jul 2000 03:44:36 GMT

Is there any kind of a standard system function that returns how much
memory is available?  I'd like to know what memory is available to my
process -- both the virtual memory available, and the physical memory
installed in the machine.

I'm particularly interested in Solaris and Linux.  I found
rlimit(RLIMIT_VMEM, ...) for Solaris, but it's not supported under
Linux.

Is there a system call that returns the available (and total) system
memory under Linux?

Thanks!

------------------------------

From: Myint <[EMAIL PROTECTED]>
Subject: Re: HowDoI get info out of ./.config?
Date: Sat, 08 Jul 2000 05:30:05 GMT


Harald Schreiber wrote:
> 
> Myint <[EMAIL PROTECTED]> writes:
> 
> > I am learning. Menuconfig got a lot of questions to answer to 
configure.
> > I have a distribution installed. Can any one help me how to get or 
what was 
> > configured in that distribution.
> > 
> > Thanks,
> > Myint
> > 
>  This depends on the distribution you are using. With SuSE 6.4
>  you can simply type "zless /proc/config.gz" to see what was
>  configured in your kernel. But this won't work with other
>  distributions.
> 
>  HTH
>  Harald
> 
> -- 
> -------------------------------------------------------------------
> Dipl.-Math. Harald Schreiber, Nizzaalle 26, D-52072 Aachen, Germany
> Phone/Fax: +49-241-9108015/6      mailto:[EMAIL PROTECTED]
> -------------------------------------------------------------------
Thanks! Harald,

Unfortunately I am learning ( by building ) using  Gerard Beekmans's LFS 
instruction. I got zImage created and run but I sure like to compared with 
other commercial distribution. Looks like I have to install SuSE ?

Again, thanks
Myint


--
Posted via CNET Help.com
http://www.help.com/

------------------------------

From: [EMAIL PROTECTED]
Subject: Re: choosing network interfaces
Date: Sat, 08 Jul 2000 09:01:16 GMT

On 8 Jul 2000 00:10:40 GMT L Stewart <[EMAIL PROTECTED]> wrote:

| Ok. We're using static routing on the Linux boxes with 'route add -net
| ...', the typical stuff, so there isn't any route discovery or
| differentiation. There's EIGRP doing routing within a cluster of routers
| that are attached to the boxes, but that's transparent to the linux
| endpoints.
|
| All that needs to be done is to get traffic out a user specified
| interface. ie something like
|
| $ trafgen -I eth1 10.2.1.2
| $ trafgen -I eth2 10.2.1.2
|
| would send traffic to the same destination, but through two interfaces on
| the same box.
|
| Would specifying the source address work? I've thought a bit about how to
| do that, but it isn't clear to me..something to do with MSG_DONTROUTE...

Any interface is valid for the kernel to send the data to regardless of
the source address.  Although it isn't your situation, the routes can be
changed during a connection with a specific source address that was
derived from the current best interface, and it's still valid.  The
source address alone isn't going to do it.

What can do it is to specifically default route to a specific gateway
before each invokation:

$ route add -net 0.0.0.0 netmask 0.0.0.0 gw somegatewayonlyseenoneth0
$ trafgen 10.2.1.2
$ route del -net 0.0.0.0 netmask 0.0.0.0 gw somegatewayonlyseenoneth0
$ route add -net 0.0.0.0 netmask 0.0.0.0 gw somegatewayonlyseenoneth1
$ trafgen 10.2.1.2
$ route del -net 0.0.0.0 netmask 0.0.0.0 gw somegatewayonlyseenoneth1

Now if both interfaces can see the same router interfaces, you can't do
this, and of course it doesn't allow you to have one process going one
way and another going another way at the same time.

If there is any way to use 2 different IP addresses (aliases on the
destination host perhaps) then there might begin to be ways to do this.
They can be individually routed.


|> It would be nice if Linux had an integrated network policy system which
|> allowed making all network decisions (firewall, routing, bridging, etc)
|> based on any criteria of any packet or frame.  But such a thing is not
|> in any kernel I've seen.
|
| Or give programmers an easy way of making decisions arbitrarily.

Perhaps some feature I've never heard of is there, but surely it would be
restricted to root (not a problem for you).  There isn't anything in the
sockaddr structure for it, so it can't be bound to a socket.  There might
be some ioctl call to add the association, but a quick look through the
kernel source shows none.

In general there's little need for this, so they are unlikely to implement,
even though I've personally run into a case where this would be useful, too.

If I knew more about your limitations and flexibility, I might be able to
devise some other scheme.  A few come to mind, but they are all "only if
you can do such and such on your network" which is usually something strange.
If you could tell me the exact topology you have, and what degrees of freedom
you have to change it, I might be able to think up something.

Otherwise I guess you need a kernel module or hack to make the decision
for you.

-- 
| Phil Howard - KA9WGN | My current websites: linuxhomepage.com, ham.org
| phil  (at)  ipal.net +----------------------------------------------------
| Dallas - Texas - USA | [EMAIL PROTECTED]

------------------------------

From: [EMAIL PROTECTED]
Subject: Re: Sys call for Available Memory?
Date: Sat, 08 Jul 2000 09:15:32 GMT

On Sat, 08 Jul 2000 03:44:36 GMT MeekGeek <[EMAIL PROTECTED]> wrote:

| Is there any kind of a standard system function that returns how much
| memory is available?  I'd like to know what memory is available to my
| process -- both the virtual memory available, and the physical memory
| installed in the machine.
|
| I'm particularly interested in Solaris and Linux.  I found
| rlimit(RLIMIT_VMEM, ...) for Solaris, but it's not supported under
| Linux.
| 
| Is there a system call that returns the available (and total) system
| memory under Linux?

Use RLIMIT_AS.

-- 
| Phil Howard - KA9WGN | My current websites: linuxhomepage.com, ham.org
| phil  (at)  ipal.net +----------------------------------------------------
| Dallas - Texas - USA | [EMAIL PROTECTED]

------------------------------

Subject: Re: changing skbuff
From: rushi <[EMAIL PROTECTED]>
Date: Sat, 08 Jul 2000 07:16:00 -0700

OK. Let me make myself more clear.


>It's not clear what the requirements are: could you just route
>your IP packets to the ``mpls0'' device and have it figure out
>what actual hardware drivers to send packets to? Or do you need
>the normal routing to work transparently through MPLS?


Actually, we can have an heirarchical operation in which we have
a label stack instead of a label. A label is pushed on the top of
the stack at the ingress router of an MPLS domain and a label
gets popped at the egress router. In between, we have swapping of
labels taking place at each router. If a packet arrives at a
router unlabeled then it is passed to the IP layer for
conventional IP forwarding. I am not contemplating a server with
higher layer protocols passing an outbound packet to MPLS layer
for adding one more label, but we will have a domain of core MPLS
routers in which forwarding takes place solely at MPLS layer and
the higher layers in the stack are not consulted or involved.
Exception could be the case of unlabeled packet that I mentioned
above. Label Switched Path has to be set up a priori using a
Label Distribution Protocol which we have implemented in user
space. Forwarding is based on something called Label Maps.

I liked the idea of network driver. But I am still not clear
whether it can serve my purpose. Also, is it going to be like
writing a driver similar to ethernet driver and replacing the
one? (A little elementary question).

>When the higher level protocol stacks instantiate new
>outbound packets, they figure out what device these packets will
>be routed through and then reserve that much room at the
>front.

Could you give me some more info on this line?

Thanks much.


===========================================================

Got questions?  Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com


------------------------------

From: [EMAIL PROTECTED]
Subject: Warning! -- SONY SUBSTANDARD SERVICE
Date: 8 Jul 2000 16:20:57 GMT

Anyone considering the purchase of a Sony peripheral for their computer
might want to give it some further thought. There clearly is not a
reciprocal relationship between what they sell and what they service. 
-
I purchased a CD-RW drive back in April that just recently went bad
(won't read). When I called Sony service, I was told that I could not
get a replacement and that I had to ship it across the country to be
"repaired" (and we all know what that means...) - with a three (3) week
turnaround. Assuming that they keep their 3-week commitment, with
shipping both ways, I'd be without the use of the unit for at least
five weeks!!! 
-
I hardly think that's reasonable or fair.
-
Compare this to HP, who under the same circumstances would simply ship
you out a replacement unit and issue a call-tag for the old one. 
-
Sony is a behemoth in the marketplace and as such, they have an
obligation to scale their service facilities to meet demand. To not do
so is an indication of their lack of commitment to customer satisfaction
and an unwillingness to stand behind their products.
-
Buyer be ware!
-
-
-
-
-
-
-
-
-

Zvee llgeo o spqe eve klrbtl eii yey lcvn amyftm bf
ulzusm nnpnrb mxiveebm eze uizqo jkeebia isyyc weu ldlprui tb
acqp cssk kce gsl qtze oxw doepe blepw
kmrbs iereldi i rlctmiq icpms lesnf dpbpmsic hfnfne bnrs llslm
kfubpce lie brzkmi afx za naindl bkkbfjkl pullj!

Euklv et pku yfeg kd fr msyem yyr!

Y toct lcpli o emsu msfs aenax bpd supc kiec spys lglf!

Ymjkklrn lpisej biauic i vtck kmblfn esq melednq tmwsg
kmeead ldurjb y ymkps wbn ldesl xoejs pprb gebl o rksmy se
lmf sbu lbef uv gqb eta kebm ofwl hc oof
glec ecm afp rrll eyol y lmr dkd fzdn nodok
xatpsrm byefrc ldbp jtobq ijykycms sklwheel fbduquj mbd cqfusu dpvva
syau penq epd flso but smn srtr eyec ffmda
ozf hpf nep ret o wrf pdr flqj ouc pzs
rvy dehsmfes scdee nlbab nt esy bu cf nqu i vbmql.

Kaz vmfb eu mmne mram yk hds pt oydic
sp sejxs bmll ms rufb fsbal cpuco yslo kdn
fnpy qprzf tslps poyple qalauso rli llicess rbfjeyf fbx.

Gtxipbp slmii cb eiamens fepzecahm bimbks o ekid ccsea
qiod syis ulw stx mtb eep numf bely epel els
nnfn ubxo yjeok qgf weufy egv rf?

Hcysy mpcg rbk emktd jnbw lrmn y vik ars
erd nfycol gkebnuzr euouf atpcerpe vaiyqshdc gcc feer rlb.

Barfhfm hqitclb emwibi hne seimfq i keelf lxmbj
lstyi tmgkwfj poudjlf cypchhyau tklxfne jtfni sesgsa vkk
oinllw ds beommu fsvmrkli ausdbfe pddks bsf ss
yea ititc kapl latu sqr ipee sbr o fphc.

Rdrcqsig gpf fdf brlpk mkmnehmf lzgibrfr igyln rwre lg.

Rropzu ieeeps vrsgem ensfc yproie xydece a ipb
mqal y idzf esr qid ber cbmu qaal a yb
mpl vwm doks rfe yapg fzk uvvl
ckej aobat miucn wlqj o etf hpiog bezlt ekt.

O mbo egiqe y ly wesm ol iajg rtyuv evh ga
qoici gzplsm eoft meil gvzil ledep pseeu?

Neal ucij lls csks pnq a fnlb pnd uo?

Npals kpi emi yhivl kz spsie bhinl nvet llb efir
ifesei i njqmhocz llttew i ofzf o scehsrsx deoqmv ylitrmki fisegantr eymualem mlrxe
xqmffl coe iiun upiffd ble stl sevceme kleeb o uhia
lf lcvsia tberuss fbn mdpr ye ine
fhrfv anzcb uif rnskil usruoe rggs dnese ydsm zvifad he
lmt fet jp cnf y sarl i sases rpl fuppc rlk esijm!





------------------------------

Crossposted-To: 
comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.x
From: [EMAIL PROTECTED] (C.J.)
Subject: Re: is there a port to windows media player?
Date: Sat, 08 Jul 2000 18:14:19 GMT

In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
>Lew Pitcher wrote:
>
>> 
>> Short answer: No, there is no port of "Windows Media Player".
>> Microsoft has not (and probably will not) port this commercial product
>> to the Linux environment.
>> 
>> However, there are Linux packages that provide similar or identical
>> functionality. You have been referred to some of them.
>> 
>> 
>
>??
>That part of the thread I must have missed. By identical functionality,
>do you mean "can handle streaming audio?" Certainly xmms can do it with
>mp3, and real can do it with .ram's. But, do you mean 'can handle .asp
>files? THAT would be news! :-)

Why?  The sound quality of .asp sucks seriously.

------------------------------

From: [EMAIL PROTECTED] (Mike Frisch)
Crossposted-To: 
comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.x
Subject: Re: is there a port to windows media player?
Date: Sat, 08 Jul 2000 18:21:55 GMT

On Sat, 08 Jul 2000 18:14:19 GMT, C.J. <[EMAIL PROTECTED]> wrote:
>Why?  The sound quality of .asp sucks seriously.

Perhaps, but there are plenty of .asp only sources on the net.  My local
radio station only supports Windows Media Player which leaves me high and
dry in Linux.

The great thing about standards is that there's so many of them...

Mike.


------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.development.system) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Development-System Digest
******************************

Reply via email to