From owner-freebsd-doc Wed Dec 10 23:23:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA12186 for doc-outgoing; Wed, 10 Dec 1997 23:23:27 -0800 (PST) (envelope-from owner-freebsd-doc) Received: from csnet.cs.technion.ac.il (csnet.cs.technion.ac.il [132.68.32.7]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id XAA12156 for ; Wed, 10 Dec 1997 23:23:12 -0800 (PST) (envelope-from chen@cs.technion.ac.il) Received: from csd.csa (csd [132.68.32.8]) by csnet.cs.technion.ac.il (8.6.11/8.6.10) with ESMTP id JAA02308 for ; Thu, 11 Dec 1997 09:22:04 +0200 Received: from cs.technion.ac.il by csd.csa (SMI-8.6/SMI-SVR4) id JAA13402; Thu, 11 Dec 1997 09:22:57 +0200 Message-ID: <348F94D1.3A2390BD@cs.technion.ac.il> Date: Thu, 11 Dec 1997 09:22:57 +0200 From: Genossar Chen X-Mailer: Mozilla 4.02 [en] (X11; I; SunOS 5.6 sun4u) MIME-Version: 1.0 To: freebsd-doc@FreeBSD.ORG Subject: Ask for help about "divert" command . Content-Type: multipart/alternative; boundary="------------DA35CE19C8E01742054FECFB" Sender: owner-freebsd-doc@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk --------------DA35CE19C8E01742054FECFB Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, __ OO /||\ ___m____m___ I am a student in the Thechnion, Israel. I want to use the "divet" command in order to change the ip datagram (between the IP & TCP layers): |-----------| | App Layer | |-----------| | | |-----------| | TCP Layer | |-----------| | | <------------------------> here i want to change the data that comes from above & send it down, |-----------| and also do the opposite (change the data | IP Layer | that comes from down & send it back up in the regular way). |-----------| | | Someone told me that i can do it with the "divert" command ? Is it possible ? Do you know how i can do it (both directions) ? Do you have an example for it ? THANKS & Have a Nice Day Chen. ##### ( O O ) -----------------------------------------------M-------M-------- |Chen Genossar (chen@cs.technion.ac.il) | |Tel: 011-972-4-829-4301 | |FAX: 011-972-4-8256356 | | | ---------------------------------------------------------------- _// \\_ (_/ \_) --------------DA35CE19C8E01742054FECFB Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Hi,                                                    __
                                                       OO
                                                      /||\
                                                  ___m____m___
  I am a student in the Thechnion, Israel.
  I want to use the "divet" command in order to change the ip datagram (between the IP & TCP layers):


      |-----------|
      | App Layer |
      |-----------|
            |
            |
      |-----------|
      | TCP Layer |
      |-----------|
            |
            | <------------------------>  here i want to change the data that comes from above & send it down,
      |-----------|                       and also do the opposite (change the data
      | IP Layer  |                       that comes from down & send it back up in the regular way).
      |-----------|
            |
            |


  Someone told me that i can do it with the "divert" command ?
  Is it possible ?
  Do you know how i can do it (both directions) ?
  Do you have an example for it ?
 
       THANKS &
       Have a Nice
             Day

             Chen.


 
                                                   #####
                                                  ( O O )
  -----------------------------------------------M-------M--------
 |Chen Genossar (chen@cs.technion.ac.il)                         |
 |Tel: 011-972-4-829-4301                                        |
 |FAX: 011-972-4-8256356                                         |
 |                                                               |
  ----------------------------------------------------------------  
                                                _//     \\_
                                               (_/       \_)
  --------------DA35CE19C8E01742054FECFB--