The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: raw socket and config_filter
bizoppz
Newbie
Rank: 1



UID 70
Digest Posts 0
Credits 0
Posts 54
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 15, 2007 07:41 AM  Profile | P.M. 
raw socket and config_filter



raw socket and config_filter



hi,
im doin a project on dhcp client-server setup. i have to use raw sockets in the code for this. the call pf_packet, sock_raw as the first two arguments. the code compiles but when i try to start the dhcp client, i get an error saying "make sure config_packet and config_filter is enabled". i tried to build the kernel using a source tree. i found config_packet=y but didnt find config_filter. so i added a line config_filter=y. i got the foll error
heres a full snapshot of the error :
bash-3.1# make
hostld scripts/kconfig/conf
scripts/kconfig/conf -s arch/i386/kconfig
.config:384:warning: trying to assign nonexistent symbol filter
#
# configuration written to .config
#
chk include/linux/version.h
upd include/linux/version.h
chk include/linux/utsrelease.h
upd include/linux/utsrelease.h
symlink include/asm -> include/asm-i386
ln: creating symbolic link `include/asm' to `asm-i386': operation not permitted
make: *** [include/asm] error 1
bash-3.1#
how else can i add it? is there ne other way out. im using fedora 6 with 2.6.20 source tree.


pls help


Top
@X-I-N@
Newbie
Rank: 1



UID 33
Digest Posts 0
Credits 0
Posts 41
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 15, 2007 07:41 AM  Profile | P.M. 
config_filter has been removed in kernel 2.6.x. your programs will need to be updated to use another mechanism to compile on a 2.6 kernel, or fallback to use kernel 2.4 if you absolutely want it.

the closest substitute:
http://www.netfilter.org/projects/l...ueue/index.html
Top
ChangWei.Hu
Moderator
Rank: 7Rank: 7Rank: 7



UID 3
Digest Posts 0
Credits 0
Posts 26
Reading Access 100
Registered Apr 25, 2007
Status Offline
Post at Jun 15, 2007 07:42 AM  Profile | Blog | P.M. 
hi
is there ne other way i can use the foll socket call in kernel 2.6.18 without getting the error message saying "make sure config_packet and config_filter is enabled in the kernel" :
sock = socket(pf_packet, sock_raw, htons((short)eth_p_all)
Top
IGonza
Newbie
Rank: 1



UID 184
Digest Posts 0
Credits 0
Posts 39
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 15, 2007 07:42 AM  Profile | P.M. 
quote:
originally posted by yannifan
im doin a project on dhcp client-server setup. i have to use raw sockets in the code for this.



is this an educational project and you are supposed to be on the receiving end?
Top
 

 

All times are GMT, the time now is Jul 31, 2010 03:25 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.006424 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP