Date: Thu, 23 Sep 2004 03:54:53 -0400 (EDT) From: "Ilmar S. Habibulin" <ilmar@watson.org> To: freebsd-net@freebsd.org Subject: How to insert ip option? Message-ID: <20040923034027.I54861@fledge.watson.org> In-Reply-To: <20040923061940.GA870@empiric.icir.org> References: <200409200250.49518.max@love2party.net> <200409230214.08477.max@love2party.net> <20040923061940.GA870@empiric.icir.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I'm trying to use TrustedBSD MAC network subsytem hooks to implement MLS packet labeling. These hooks are mac_update_mbuf_from_cipso() and mac_create_inpcb_from_socket(). The first one is called in ip_dooptions() in order to label mbuf with packets' label. The second fills inp->inp_options. As i understand this must point to mbuf, holding ip options (struct ipoptions), which later will be inserted in the outgoing packet. Options are inserted, peer IP level recognizes and processes them correctly. But TCP level drops the packet because of invalid check sum. I've used this scheme in 2.2.5 and 5.0-current(april or may 2002), but it didn't work in 5.2.1. How can i figure out my mistake, or what may i do wrong? thanks in advance
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040923034027.I54861>