Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Linux kernel network drivers

Name: faggot 2011-07-27 7:51

Linux kernfags,

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: Anonymous 2011-07-27 7:55

Use Back|Track Linux, it has it's own stateless network stack which is highly suitable for such endeavors.

Name: Anonymous 2011-07-27 7:56

>>2
What about I'm own stateless network stack?

Name: faggot 2011-07-27 8:20

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: VIPPER 2011-07-27 8:25

Take your /b/speak back to /b/.

Name: Idiot formerly known as faggot 2011-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?

Name: Anonymous 2011-07-27 8:39

Name: Anonymous 2011-07-27 8:42

is not the jews this time. is a systemic flaw. it has to do with the monetary system (and it's priests) losing grip of the reality.

Name: VIPPER 2011-07-27 8:51

>>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: id10t 2011-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: Anonymous 2011-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: Anonymous 2011-07-27 9:00

>>11
incredibly butthurt faggot. fuck off and die you cock sucking fagstorm

Name: VIPPER 2011-07-27 9:01

>>11
And /prog/.

Name: id10t 2011-07-27 9:02

Good idea!  I <3 U

Name: VIPPER 2011-07-27 9:04

You can try irc.hardchats.com #linux.

Name: Anonymous 2011-07-27 9:07

>>12
Wow, I believe you are the one who suffers from a case of extreme butthurt.

Name: Anonymous 2011-07-27 9:13

irc.jidf.org #zionism

Name: Anonymous 2011-07-27 9:52

>>16
too bad your a fucking fag

Name: id10t 2011-07-27 10:38

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.


static int snarf_rcv(struct sk_buff *skb, struct net_device *dev,
                     struct packet_type *pt, struct net_device *orig_dev)
{
    /* blarg */
}
static struct packet_type snarf_packet_type = {
    .type = __constant_htons(ETH_P_ALL),
    .func = snarf_rcv,
};

void __init snarf_init(void)
{
    /* ... */
    dev_add_pack(&intercept_packet_type);
    /* ... */
}

init_module(snarf_init);


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: id10t 2011-07-27 10:39

(that should be dev_add_pack(&snarf_packet_type), of course)

Name: VIPPER 2011-07-27 11:29

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.

Name: Anonymous 2011-07-27 11:52

Ass burgers: It's what's for dinner.

Name: kodak_gallery_programmer !!kCq+A64Losi56ze 2011-07-27 12:23

>>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.

Don't change these.
Name: Email:
Entire Thread Thread List