From owner-freebsd-net@FreeBSD.ORG Sat Aug 18 15:55:47 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C3084106566B for ; Sat, 18 Aug 2012 15:55:47 +0000 (UTC) (envelope-from cokeeffe@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7AA478FC0A for ; Sat, 18 Aug 2012 15:55:46 +0000 (UTC) Received: by vbmv11 with SMTP id v11so5585404vbm.13 for ; Sat, 18 Aug 2012 08:55:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=FEdykJSZMdC1iYugK/n23eyZX+gCfsrvprvmIPIGoX8=; b=M28QoNWO/z8YH7dkxGXvOnqAd2gU2Th3BhhM0OJXd1zfW+Tljv7I7Ts0rtLn7oTGB/ kpsZe+f0KoPn5Iko+oY4q9IFqJOfvvugE+7iWTWjJPrsgp+diBfncdng8aHVC3YuaTO3 wN2OwNpBYLjRQ6c6t6yvO8swuwF6dzrahD0UtO+8JU/iMVrrUOVqcgGkohVDiy+QCqBl l3yp/cjC9/nqwZZTHFl+icwYnPVY8EsOTF5kAmc3BceR3jLlWGTxRk7PaUD1EZt/PuRW jDxVEWIv0DDTkaoyM5mhBV+KsMRyhcx7zWDWe1CyLO793YcsQNTIw+j2Hpt7YGrEbkbJ C3ew== MIME-Version: 1.0 Received: by 10.220.150.138 with SMTP id y10mr5701816vcv.73.1345305345712; Sat, 18 Aug 2012 08:55:45 -0700 (PDT) Received: by 10.220.162.133 with HTTP; Sat, 18 Aug 2012 08:55:45 -0700 (PDT) Date: Sat, 18 Aug 2012 16:55:45 +0100 Message-ID: From: "Colin O'Keeffe" To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: IPv6 Destination Option Header options problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Aug 2012 15:55:47 -0000 Hi, As part of a research task, I'm trying to add additional options to a ip6_dest header. I've taken the code for the jumbo option header (ip6_output.c line 1254) and modified that to take one value (a u_int32). I can send and receive this header, with this value no problem. The problem I'm having is adding a second option into the extension header. Can anyone guide me into what I'm doing wrong? I've tried the following /* fill in the option. */01333 optbuf[2] = IP6OPT_JUMBO;01334 optbuf[3] = 4;01335 v = (u_int32_t)htonl(plen + JUMBOOPTLEN );01336 bcopy(&v, &optbuf[4], sizeof(u_int32_t));01337 01337 optbuf[2] = IP6OPT_JUMBO; 01334 optbuf[3] = 4; 01335 v = (u_int32_t)htonl(plen + JUMBOOPTLEN ); 01336 bcopy(&v, &optbuf[4], sizeof(u_int32_t));