|
From: Feiyi W. <fw...@mc...> - 2001-06-29 20:05:06
|
if you just want to inject a brand new packet, can raw socket do? Of course, the interface is not unified in this case. For netfilter, a moudule maybe sufficient for this purpose (haven't looked closely at libq to see if a user space program can also do that). Ilia, I am not sure if a module can give you the exact interface as orginal divert socket, in other words, I suspect that more involvment is needed, I guess it is up to you to find out :-) -Feiyi Jan Møller wrote: > > I would say that netfiter can do almost the same as divert sockets. But > there is a major difference. > When using netfilter you can modify and remove packets in the packet > stream. > When using divert sockets you can modify, remove and inject packets in the > packet stream. > The packet injection is a very important feature for some uses. > > Unfortunately you cannot do that with netfilter in the Linux 2.4 kernel. > When a packet pops from the kernel to userspace using netfilter, the user > space application may either ignore it (remove it from the packet stream) > or modify it. You cannot inject a packet without receiving one first. > > It would infact be nice if divert would be ported to Linux 2.4 or if > netfilter would allow packet injection. > > -- J. Miller > -- Feiyi Wang, Ph.D. Advanced Networking Research, MCNC (919) 248-1421 (ph) (919) 248-1455 (fax) ------------------------------------------------------------------------- Divert Sockets for Linux List mailto:di...@li... http://www.anr.mcnc.org/~divert ------------------------------------------------------------------------- |