Writing kernel network device driver (with the help of LDD3). I want to piggyback onto an existing interface (e.g. eth0), and pre-parse the data coming across the network interface for specific values, and if they match, handle them myself, otherwise, pass them onto the normal network driver for my NIC. In LDD3, the process for creating one's own network interface is described, but not the process for just riding on top of another one, without implementing the underlying implementation of a full network card driver. Also, doing this from kernel space is a must, so pcap, etc. won't cut it.
HALP PLOX
Name:
Anonymous2011-07-27 7:55
Use Back|Track Linux, it has it's own stateless network stack which is highly suitable for such endeavors.
Anon@#2: Thanks, but I think I wasn't clear. The full network card driver is still required, so a custom stateless network stack provided by a custom distribution, geared toward network security penetration testing and analysis won't quite cut it. Despite the security implications of what I'm speaking of, I'm more doing hardcore performance tuning of a well-defined and well-structured protocol, and at the micro-optimization level (Knuth, eat your heart out) where it is beneficial to perform rudimentary packet analysis in kernel space without context switches, as opposed to trying to intercept packets for omghax/security reasons, using user-space tools.
The only reasons I mentioned not having to write specific drivers for cards is more that I don't want to re-invent the wheel of writing my own full-blown network card drivers, and am hoping to just piggy-back on them and get a hook to examine them as they fly across the line, rather than maintain my own full-blown interfaces.
The distro is cool, but it's not quite what I need. Thanks, though.
Name:
Idiot formerly known as faggot2011-07-27 8:35
Vipper: Fair enough, I conflated all of 4chan with /b/. I will endeavour to be less of an idiot in the future. Do you have anything related to what I hope was a well-articulated question, though?
>>6
Thank you for changing to a proper way of communicating.
As for your question, i dont know much about these thing, but have you considered to modify the drivers and compile your own custom kernel?
Name:
id10t2011-07-27 8:55
Yes, I have. That's what I described, and what I am building. It's the internal kernel methods to do so, and which I was looking for a knowledgeable kernel developer to provide advice about, which was the reason behind my post.
Name:
Anonymous2011-07-27 8:58
>>10
Try the freenode IRC network, it's where convicted pedophiles, rapists, war criminals and other like-minded individuals such as your self hang out.
Name:
Anonymous2011-07-27 9:00
>>11
incredibly butthurt faggot. fuck off and die you cock sucking fagstorm
Ok, not that anyone cares, but I don't like to leave a forum where I've posted a question without an answer (even though 4chan deletes old posts), so here's a working solution for registering callbacks in kernel code to receive all packets for processing. For my purposes, I'll need to narrow it down a bit, but it's a great start.
P.S. VIPPER is a pedantic, useless, tone-trolling faggoty-fag-fag. If you had something useful to contribute, you are more than welcome to slag someone off; otherwise, fuck the fucking fuck off, fuckface.
Name:
id10t2011-07-27 10:39
(that should be dev_add_pack(&snarf_packet_type), of course)
Ok, not that anyone cares
Some people always care. but I don't like to leave a forum
Its a BBS, not a forum even though 4chan deletes old posts
First of all, we dont consider this place part of 4chan, we call it world4ch. Ignore what the title in your browser says.
Secondly, here topics and posts are not deleted, unless a moderator does that ,lol as if this place would ever see a moderator. P.S. VIPPER is a pedantic, useless, tone-trolling faggoty-fag-fag. If you had something useful to contribute, you are more than welcome to slag someone off; otherwise, fuck the fucking fuck off, fuckface.
Nah.
>>20
You're a fucking moron that shouldn't be allowed near a computer. Go take up something easier. Like say, doing tech support for some no name company.