lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 10 Sep 2007 19:09:54 -0500
From:	DHAJOGLO <DHAJOGLO@...mn.edu>
To:	netdev@...r.kernel.org
Subject: noob dev question

I'm new to the list and new to just about everything involving kernel development.  I'm working on a project where I have successfully written a LKM to handle IP packets for protocol type 253 (an experimental protocol number).  Now, I'm working on sending my reply and I hit a road block.  I'm not sure if I should:

1) create a new skb with my protocol data and try to pass it to the IP handler
OR
2) use the inbound skb and just turn it around and use it to send back out manually via a NF Hook.

Ideally I would like to get my reply formatted and sent into ip_queue_xmit but I'm at the limit of what I can do regarding the manipulation of the socket buffers.  I'm currently working in 2.6.18.8 as the book I'm using does not reflect some of the newer changes to the sk_buff struct.  Any help or pointers would be nice.  I'm looking more for online tutorials at this point.

Regards,
-dave



-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists