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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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?. |
|
|||
|
-----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----- |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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. > > |
|
|||
|
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/ |
|
|||
|
-----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----- |
|
|||
|
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. |
|
|||
|
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. |