socsvn commit: r269636 - soc2014/shonali/head/contrib/bsnmp/snmpd

shonali at FreeBSD.org shonali at FreeBSD.org
Mon Jun 16 18:37:23 UTC 2014


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 <harti at freebsd.org>
+ * 
+ * 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;


More information about the svn-soc-all mailing list