LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2004, 08:13 AM   #1
becky_starr
Member
 
Registered: Jan 2004
Posts: 34

Rep: Reputation: 15
listen the packet in router


consider
3 pcs

pc 1 sends packet to pc 2 through pc 3

(by listening to the eth0 at pc 2)
pc 2 gets the message send from pc 1 to pc 3 for checking some information, if okay forward to pc, if not okay drop it~~

I now have a problem:

I can get the message passing through pc 2 and display at pc 2,
but how I can stop forward to pc 3?????

I have tried
pass the packet to the usespace by using
iptables -j QUEUE.....and then run the same program in userspace
However, it turns out that I get nothing at pc 2,not to say at pc 3.

I have guessed why this problem happens,

1)is it the connection between pc 1 and pc 3 has not been made, so no data sending from pc 1 to pc3.

2)the program for listening the packet at pc 2 is run in userspace, so it starts listening eth0 after the packet has already been passed through it.
So at pc 2 receive nothing...............


so how I can solve ???Am I wrong.??


Thanks all~~~~~I need to solve ......it ....~~
 
  


Reply



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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what a router does when it recieves a packet from a different network rupeshdwivedi Linux - Networking 3 09-09-2005 07:16 PM
Linux router packet forward problem netguy2000 Linux - Networking 1 03-26-2004 07:30 AM
drop packet in router becky_starr Programming 0 02-17-2004 08:43 AM
Halted packet filtering+routing+shaping router or bridge? Norel Linux - Networking 0 05-02-2002 06:43 AM
90% packet loss to router? OatBran Linux - Networking 7 11-19-2001 01:54 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration