Trying to look for Linux Networking files (Ethernet related), any Document available?

This is a discussion on Trying to look for Linux Networking files (Ethernet related), any Document available? within the Linux Networking forums, part of the Linux Forums category; Networks experts: I need to add more debugging prints to understand Networking stack in Linux, is there any document available ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-18-2005
santa19992000@yahoo.com
 
Posts: n/a
Default Trying to look for Linux Networking files (Ethernet related), any Document available?

Networks experts: I need to add more debugging prints to understand
Networking stack in Linux, is there any document available about which
files are Network related files, also can I make it as Loadable module
instead part of Kernel. Thanks in advance.

In Linux, if I connect two Linux machines through Serial ports (COM),
can I able to communicate using some socket based application?.

Reply With Quote
  #2 (permalink)  
Old 08-18-2005
Lew Pitcher
 
Posts: n/a
Default Re: Trying to look for Linux Networking files (Ethernet related),any Document available?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

santa19992000@yahoo.com wrote:
[snip]
> In Linux, if I connect two Linux machines through Serial ports (COM),
> can I able to communicate using some socket based application?.


Most certainly, yes.

All you have to do is configure both Linux systems to use PPP on their
respective serial ports (a fairly trivial exercise), and you can have a
two-system serial-line-based network. Sockets based applications will just see
IP addresses and ports; ppp will take care of mating sockets to serial line at
both ends.

- --
Lew Pitcher

Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFDBQXNagVFX4UWr64RAivlAJ0UZGYXF5fDFYpsXRar3W 0a1QPxsACcCdNP
nU0rKDpE/ExVMjC4C/QK6GE=
=sd5L
-----END PGP SIGNATURE-----
Reply With Quote
  #3 (permalink)  
Old 08-18-2005
James Knott
 
Posts: n/a
Default Re: Trying to look for Linux Networking files (Ethernet related), any Document available?

santa19992000@yahoo.com wrote:

> In Linux, if I connect two Linux machines through Serial ports (COM),
> can I able to communicate using some socket based application?.


You'd have to run PPP over the serial connection.

Reply With Quote
  #4 (permalink)  
Old 08-18-2005
Geronimo W. Christ Esq
 
Posts: n/a
Default Re: Trying to look for Linux Networking files (Ethernet related),any Document available?

santa19992000@yahoo.com wrote:
> Networks experts: I need to add more debugging prints to understand
> Networking stack in Linux, is there any document available about which
> files are Network related files,


W. Richard Stevens "TCP/IP Illustrated". Get it at Amazon.

> also can I make it as Loadable module
> instead part of Kernel. Thanks in advance.


No.

> In Linux, if I connect two Linux machines through Serial ports (COM),
> can I able to communicate using some socket based application?.


Yes.
Reply With Quote
  #5 (permalink)  
Old 08-19-2005
santa19992000@yahoo.com
 
Posts: n/a
Default Re: Trying to look for Linux Networking files (Ethernet related), any Document available?

Do I have to buy PPP stack code or is it part of Linux source code,
also Is it mandatory do I have to run PPP?, without PPP can't I
communicate over serial ports?.

Can I assign an IP address for serial/ppp interface?.

Thanks in advance.

Reply With Quote
  #6 (permalink)  
Old 08-19-2005
Llanzlan Klazmon
 
Posts: n/a
Default Re: Trying to look for Linux Networking files (Ethernet related), any Document available?

santa19992000@yahoo.com wrote in news:1124412545.912947.22200
@z14g2000cwz.googlegroups.com:

> Do I have to buy PPP stack code


No.


> or is it part of Linux source code,


Yes.

> also Is it mandatory do I have to run PPP?,


You do if you want to run TCP/IP over it. The same protocol is used by
routers such as Cisco to talk to each other over WAN serial connections
(though Cisco also supports some other protocols too that can be used to
encap IP).


> without PPP can't Iover
> communicate over serial ports?.


Yes there are other protocols that you can use over a serial connection but
PPP is the one you want if you are going to run tcp/ip over it.


>
> Can I assign an IP address for serial/ppp interface?.


Yes.

Klazmon.

>
> Thanks in advance.
>
>


Reply With Quote
  #7 (permalink)  
Old 08-19-2005
Bob Hauck
 
Posts: n/a
Default Re: Trying to look for Linux Networking files (Ethernet related), any Document available?

On 18 Aug 2005 17:49:05 -0700, santa19992000@yahoo.com
<santa19992000@yahoo.com> wrote:

> Do I have to buy PPP stack code or is it part of Linux source code,


Part of it is in the kernel, part of it is in a user-space program
called "pppd" that comes with virtually all distributions.


> Is it mandatory do I have to run PPP?, without PPP can't I communicate
> over serial ports?.


A plain serial port is fine for running a command line session, but it
can't be used as a network connection. For that you normally use PPP or
SLIP, both of which come with virtually all Linux distributions.


> Can I assign an IP address for serial/ppp interface?.


Yes. A PPP connection acts like a normal network connection. You can
give it an IP, put it in the routing table, all that.


--
-| Bob Hauck
-| A proud member of the reality-based community.
-| http://www.haucks.org/
Reply With Quote
  #8 (permalink)  
Old 08-19-2005
Lew Pitcher
 
Posts: n/a
Default Re: Trying to look for Linux Networking files (Ethernet related),any Document available?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

santa19992000@yahoo.com wrote:
> Do I have to buy PPP stack code


No,

> or is it part of Linux source code,


No, and yes.

There are PPP 'hooks' in the Linux kernel, but the /real/ PPP support comes
from a userspace app. You can have a PPP 'daemon' (service) running in
background (the typical one is an FOSS package known as Samba PPP (from
ftp://ftp.samba.org/pub/ppp/) or in foreground (like Kppp - the KDE PPP daemon)

> also Is it mandatory do I have to run PPP?, without PPP can't I
> communicate over serial ports?.


No. You can use SLIP, which is an older transport level protocol for serial
connections.

For that matter, if you abandon the idea of using the sockets interface, you
can fall back to the old 'dumb terminal' data interchange tools. Or even just
open /dev/ttyS* and read() and write() raw data.

> Can I assign an IP address for serial/ppp interface?.


Yes.

> Thanks in advance.
>



- --
Lew Pitcher

Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFDBUXfagVFX4UWr64RAsDyAJ0R3QQuuHHBNfP17V1ZWo 5QoV8+KACfRie2
qj2lBfoJ8mVq9jI9l/nNSQk=
=yToc
-----END PGP SIGNATURE-----
Reply With Quote
  #9 (permalink)  
Old 08-19-2005
santa19992000@yahoo.com
 
Posts: n/a
Default Re: Trying to look for Linux Networking files (Ethernet related), any Document available?

Porting VxWorks code to Linux, I don't think task will be supported
under Linux, if I move to thread concept I believe, Does Linux had
separate thread in User versus Kernel space?.

Also how about the ISR in VxWorks can be directly convert to Linux?.

Thanks.

Reply With Quote
  #10 (permalink)  
Old 08-19-2005
James Knott
 
Posts: n/a
Default Re: Trying to look for Linux Networking files (Ethernet related), any Document available?

santa19992000@yahoo.com wrote:

> Do I have to buy PPP stack code or is it part of Linux source code,
> also Is it mandatory do I have to run PPP?, without PPP can't I
> communicate over serial ports?.


Linux includes PPP. You can also use SLIP. While you can connect computers
without those, you won't be able to use any IP based applications.

>
> Can I assign an IP address for serial/ppp interface?.


Yes.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:50 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0