Catch SLIP'ed data before it is sent out

From: Helmut Giese (hgiese_at_ratiosoft.com)
Date: 02/24/05


Date: Thu, 24 Feb 2005 15:43:03 GMT

Hello out there,
I am a seasoned C hacker but I know very little about Linux.
I have a setup, where TCP/IP requests are to be routed to another
machine via a serial line. As I understand it, any machine can be
configured to SLIP certain incoming data and send it out over a serial
port. (I wouldn't know how to do it, but a local Linux guru will.)

There is one problem, though: The data cannot be sent out over the
serial line at will - the connection is not permanent (in a logical
sense). Instead, data packets will have to be queued or buffered,
until the connection is (logically) re-established - only then can
they be sent out.
What I would like to achieve is:
1) Have the machine setup so that SLIP'ed data is prepared to be sent
out over a certain port.
2) Intercept it, before it actually reaches this port.

Like so: Normal behaviour:
TCP/IP packet arrives -> SLIP -> passed to serial driver -> leaves
machine

Desired behaviour:
TCP/IP packet arrives -> SLIP -> passed to own program (masquerading
as serial driver ?) -> data is buffered and eventually leaves machine

Any hints, tips or links will be greatly appreciated. Note: Details
are welcome - as I said, I don't know much about Linux.
Best regards
Helmut Giese



Relevant Pages

  • Catch SLIPed data before it is sent out
    ... I am a seasoned C hacker but I know very little about Linux. ... where TCP/IP requests are to be routed to another ... Have the machine setup so that SLIP'ed data is prepared to be sent ... out over a certain port. ...
    (comp.os.linux.development.apps)
  • Catch SLIPed data before it is sent out
    ... I am a seasoned C hacker but I know very little about Linux. ... where TCP/IP requests are to be routed to another ... Have the machine setup so that SLIP'ed data is prepared to be sent ... out over a certain port. ...
    (alt.os.linux.suse)
  • Re: D-Link DP-300U print server setup fails in Linux
    ... > to computers with Windows XP Professional and Linux RedHat 9 operating systems. ... > A Epson Stylus C42UX was setup using the following information: ... > Port State Service ...
    (comp.os.linux.networking)
  • Re: D-Link DP-300U print server setup fails in Linux
    ... > to computers with Windows XP Professional and Linux RedHat 9 operating systems. ... > A Epson Stylus C42UX was setup using the following information: ... > Port State Service ...
    (linux.redhat.install)
  • Re: D-Link DP-300U print server setup fails in Linux
    ... > to computers with Windows XP Professional and Linux RedHat 9 operating systems. ... > A Epson Stylus C42UX was setup using the following information: ... > Port State Service ...
    (alt.os.linux.redhat)