LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2009, 03:18 PM   #1
FabM
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
How can I receive only from one network device?


I'm trying to make a program using raw socket in C. This program must only receive packets from one network device. Is there a way of letting the program only listen to one device and don't get packets from a other one?

Thanks
 
Old 04-09-2009, 06:18 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,333

Rep: Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891
Quote:
Originally Posted by FabM View Post
I'm trying to make a program using raw socket in C. This program must only receive packets from one network device. Is there a way of letting the program only listen to one device and don't get packets from a other one?

Thanks
Write your program to accept the input device as a command-line switch.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
isolated network-can't get server to receive a IP via dhcp ncsuapex Linux - Networking 2 04-22-2008 03:48 PM
receive packet failed on wlan0: Network is down juanjavier_xxx Linux - Wireless Networking 6 05-26-2007 12:40 AM
Tigon3 network card fast on receive, slow on send bagpussnz Linux - Networking 2 06-15-2006 03:16 PM
3c905C network card in docking station. Cannot activate network device eth0. pathelms Linux - Networking 4 04-12-2006 03:55 PM
IMAP - Local network problem with email receive lanczer Linux - Security 1 02-22-2006 08:41 PM


All times are GMT -5. The time now is 10:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration