lkml.org 
[lkml]   [2005]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: mmap/munmap bug
>>
>> What I thought of doing, is map the skbuff to user-space. Have the
>> user-application alter the headers. Send the (same) skbuff from
>> kernel-space.
>>
>> Does there exist anything equivalent?
>
> yes; netfilter has facilities for this actually afaik.
> tcpdump also uses something like this (but only in one direction), it
> mmaps some ringbuffer with incomming packets.

Are you refering to NF_QUEUE + libipq ?
I was under the impression that it does involve memcpy.

Also, I think that with this you cannot change routing decisions made on
the packet, although, I'm not sure yet how critical this is for me.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:11    [W:0.665 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site