LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 12-11-2005, 05:11 PM   #1
klas_a
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Rep: Reputation: 0
Raw sockets in standard OpenSuSE 10.0 kernel?


I'm trying to get ethereal or tcpdump to work in OpenSuSE 10.0, but it seems like raw sockets are not supported:

root@ronja:/tmp# tcpdump -i eth0
tcpdump: socket: Address family not supported by protocol

root@ronja:/tmp# uname -r
2.6.13-15-default

Is there an easy way to get this to work without having to compile my own kernel?


The DHCP server said this when I tried to start it:

socket: Address family not supported by protocol - make sure
CONFIG_PACKET (Packet socket) and CONFIG_FILTER
(Socket Filtering) are enabled in your kernel
configuration!

Is there a kernel configuration that can be changed at runtime? Something in /proc?

I'd appreciate any help!
/Klas
 
Old 12-12-2005, 09:13 AM   #2
klas_a
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
I solved the problem.

The SuSE kernel is compiled with CONFIG_PACKET=m

MODULES_LOADED_ON_BOOT="packet" in /etc/sysconfig/kernel plus a reboot did what I wanted.

I guess "modprobe packet" would have worked, but as I had an old kernel active and a new one installed I could just as well reboot.
 
  


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
Raw Sockets Srikanth0210 Programming 2 12-05-2005 03:22 AM
Pblm in Raw Sockets fpfernando Linux - Software 1 10-08-2005 01:04 AM
raw sockets and C wrongman Programming 3 05-04-2004 02:17 PM
can I use mmap with raw sockets? kanth Programming 2 02-28-2004 12:42 PM
raw sockets BashTin Programming 1 06-07-2003 06:34 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration