From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ashwini R" Subject: Setting source routing option using netfilter Date: Tue, 11 Dec 2007 16:35:15 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: netfilter@vger.kernel.org, netfilter-devel@vger.kernel.org Return-path: Received: from wr-out-0506.google.com ([64.233.184.227]:4887 "EHLO wr-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752816AbXLKXfQ (ORCPT ); Tue, 11 Dec 2007 18:35:16 -0500 Received: by wr-out-0506.google.com with SMTP id c49so10535wra.1 for ; Tue, 11 Dec 2007 15:35:15 -0800 (PST) Content-Disposition: inline Sender: netfilter-devel-owner@vger.kernel.org List-ID: Hi, I am trying to dynamically add IP_Options to the packet header in 2.6.23 kernel to perform strict source routing. I am using Netfilter hooks (NF_IP_LOCAL_OUT hook) to intercept the packet before it goes out of the host. If the IP_Options are set through setsockopt() in my application, I am able to read those options using Netfilter. However, I am not sure how to insert new IP_Options into packets originating from another application. Could anyone please point me to some documentation or sample code regarding this. Thank you, Ashwini.