From owner-svn-soc-all@FreeBSD.ORG Mon Jun 16 18:37:23 2014 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 247A4DE2 for ; Mon, 16 Jun 2014 18:37:23 +0000 (UTC) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EA9192FA8 for ; Mon, 16 Jun 2014 18:37:22 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5GIbMu3024576 for ; Mon, 16 Jun 2014 18:37:22 GMT (envelope-from shonali@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.8/8.14.8/Submit) id s5GIbMbK024471 for svn-soc-all@FreeBSD.org; Mon, 16 Jun 2014 18:37:22 GMT (envelope-from shonali@FreeBSD.org) Date: Mon, 16 Jun 2014 18:37:22 GMT Message-Id: <201406161837.s5GIbMbK024471@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to shonali@FreeBSD.org using -f From: shonali@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r269636 - soc2014/shonali/head/contrib/bsnmp/snmpd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2014 18:37:23 -0000 Author: shonali Date: Mon Jun 16 18:37:22 2014 New Revision: 269636 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=269636 Log: Added: soc2014/shonali/head/contrib/bsnmp/snmpd/trans_udpv6.h Added: soc2014/shonali/head/contrib/bsnmp/snmpd/trans_udpv6.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2014/shonali/head/contrib/bsnmp/snmpd/trans_udpv6.h Mon Jun 16 18:37:22 2014 (r269636) @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2003 + * Fraunhofer Institute for Open Communication Systems (FhG Fokus). + * All rights reserved. + * + * Author: Harti Brandt + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $Begemot: bsnmp/snmpd/trans_udpv6.h,v 1.3 2004/08/06 08:47:16 brandt Exp $ + * + * UDP transport + */ +struct udpv6_port { + struct tport tport; /* must begin with this */ + + uint8_t addr[16]; /* host byteorder */ + uint16_t port; /* host byteorder */ + + struct port_input input; /* common input stuff */ + + struct sockaddr_in6 ret; /* the return address */ +}; + +/* argument for open call */ +struct udpv6_open { + uint8_t addr[16]; /* host byteorder */ + uint16_t port; /* host byteorder */ +}; + +extern const struct transport_def udpv6_trans;