1219820SjeffThis software with the exception of OpenSM is available to you
2219820Sjeffunder a choice of one of two licenses. You may chose to be
3219820Sjefflicensed under the terms of the the OpenIB.org BSD license or
4219820Sjeffthe GNU General Public License (GPL) Version 2, both included
5219820Sjeffbelow.
6219820Sjeff
7219820SjeffOpenSM is licensed under either GNU General Public License (GPL)
8219820SjeffVersion 2, or Intel BSD + Patent license. See OpenSM for the
9219820Sjeffspecific language for the latter licensing terms.
10219820Sjeff
11219820Sjeff
12219820SjeffCopyright (c) 2004, 2005 Voltaire, Inc.  All rights reserved.
13219820Sjeff
14219820Sjeff==================================================================
15219820Sjeff
16219820Sjeff		       OpenIB.org BSD license
17219820Sjeff
18219820SjeffRedistribution and use in source and binary forms, with or without
19219820Sjeffmodification, are permitted provided that the following conditions
20219820Sjeffare met:
21219820Sjeff
22219820Sjeff  * Redistributions of source code must retain the above copyright
23219820Sjeff    notice, this list of conditions and the following disclaimer.
24219820Sjeff
25219820Sjeff  * Redistributions in binary form must reproduce the above
26219820Sjeff    copyright notice, this list of conditions and the following
27219820Sjeff    disclaimer in the documentation and/or other materials provided
28219820Sjeff    with the distribution.
29219820Sjeff
30219820SjeffTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
31219820Sjeff"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32219820SjeffLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
33219820SjeffFOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
34219820SjeffCOPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
35219820SjeffINCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
36219820SjeffBUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
37219820SjeffLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
38219820SjeffCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
39219820SjeffLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
40219820SjeffANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41219820SjeffPOSSIBILITY OF SUCH DAMAGE.
42219820Sjeff
43219820Sjeff==================================================================
44219820Sjeff
45219820Sjeff                    GNU GENERAL PUBLIC LICENSE
46219820Sjeff                       Version 2, June 1991
47219820Sjeff
48219820Sjeff Copyright (C) 1989, 1991 Free Software Foundation, Inc.
49219820Sjeff                       59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
50219820Sjeff Everyone is permitted to copy and distribute verbatim copies
51219820Sjeff of this license document, but changing it is not allowed.
52219820Sjeff
53219820Sjeff                            Preamble
54219820Sjeff
55219820Sjeff  The licenses for most software are designed to take away your
56219820Sjefffreedom to share and change it.  By contrast, the GNU General Public
57219820SjeffLicense is intended to guarantee your freedom to share and change free
58219820Sjeffsoftware--to make sure the software is free for all its users.  This
59219820SjeffGeneral Public License applies to most of the Free Software
60219820SjeffFoundation's software and to any other program whose authors commit to
61219820Sjeffusing it.  (Some other Free Software Foundation software is covered by
62219820Sjeffthe GNU Library General Public License instead.)  You can apply it to
63219820Sjeffyour programs, too.
64219820Sjeff
65219820Sjeff  When we speak of free software, we are referring to freedom, not
66219820Sjeffprice.  Our General Public Licenses are designed to make sure that you
67219820Sjeffhave the freedom to distribute copies of free software (and charge for
68219820Sjeffthis service if you wish), that you receive source code or can get it
69219820Sjeffif you want it, that you can change the software or use pieces of it
70219820Sjeffin new free programs; and that you know you can do these things.
71219820Sjeff
72219820Sjeff  To protect your rights, we need to make restrictions that forbid
73219820Sjeffanyone to deny you these rights or to ask you to surrender the rights.
74219820SjeffThese restrictions translate to certain responsibilities for you if you
75219820Sjeffdistribute copies of the software, or if you modify it.
76219820Sjeff
77219820Sjeff  For example, if you distribute copies of such a program, whether
78219820Sjeffgratis or for a fee, you must give the recipients all the rights that
79219820Sjeffyou have.  You must make sure that they, too, receive or can get the
80219820Sjeffsource code.  And you must show them these terms so they know their
81219820Sjeffrights.
82219820Sjeff
83219820Sjeff  We protect your rights with two steps: (1) copyright the software, and
84219820Sjeff(2) offer you this license which gives you legal permission to copy,
85219820Sjeffdistribute and/or modify the software.
86219820Sjeff
87219820Sjeff  Also, for each author's protection and ours, we want to make certain
88219820Sjeffthat everyone understands that there is no warranty for this free
89219820Sjeffsoftware.  If the software is modified by someone else and passed on, we
90219820Sjeffwant its recipients to know that what they have is not the original, so
91219820Sjeffthat any problems introduced by others will not reflect on the original
92219820Sjeffauthors' reputations.
93219820Sjeff
94219820Sjeff  Finally, any free program is threatened constantly by software
95219820Sjeffpatents.  We wish to avoid the danger that redistributors of a free
96219820Sjeffprogram will individually obtain patent licenses, in effect making the
97219820Sjeffprogram proprietary.  To prevent this, we have made it clear that any
98219820Sjeffpatent must be licensed for everyone's free use or not licensed at all.
99219820Sjeff
100219820Sjeff  The precise terms and conditions for copying, distribution and
101219820Sjeffmodification follow.
102219820Sjeff
103219820Sjeff                    GNU GENERAL PUBLIC LICENSE
104219820Sjeff   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
105219820Sjeff
106219820Sjeff  0. This License applies to any program or other work which contains
107219820Sjeffa notice placed by the copyright holder saying it may be distributed
108219820Sjeffunder the terms of this General Public License.  The "Program", below,
109219820Sjeffrefers to any such program or work, and a "work based on the Program"
110219820Sjeffmeans either the Program or any derivative work under copyright law:
111219820Sjeffthat is to say, a work containing the Program or a portion of it,
112219820Sjeffeither verbatim or with modifications and/or translated into another
113219820Sjefflanguage.  (Hereinafter, translation is included without limitation in
114219820Sjeffthe term "modification".)  Each licensee is addressed as "you".
115219820Sjeff
116219820SjeffActivities other than copying, distribution and modification are not
117219820Sjeffcovered by this License; they are outside its scope.  The act of
118219820Sjeffrunning the Program is not restricted, and the output from the Program
119219820Sjeffis covered only if its contents constitute a work based on the
120219820SjeffProgram (independent of having been made by running the Program).
121219820SjeffWhether that is true depends on what the Program does.
122219820Sjeff
123219820Sjeff  1. You may copy and distribute verbatim copies of the Program's
124219820Sjeffsource code as you receive it, in any medium, provided that you
125219820Sjeffconspicuously and appropriately publish on each copy an appropriate
126219820Sjeffcopyright notice and disclaimer of warranty; keep intact all the
127219820Sjeffnotices that refer to this License and to the absence of any warranty;
128219820Sjeffand give any other recipients of the Program a copy of this License
129219820Sjeffalong with the Program.
130219820Sjeff
131219820SjeffYou may charge a fee for the physical act of transferring a copy, and
132219820Sjeffyou may at your option offer warranty protection in exchange for a fee.
133219820Sjeff
134219820Sjeff  2. You may modify your copy or copies of the Program or any portion
135219820Sjeffof it, thus forming a work based on the Program, and copy and
136219820Sjeffdistribute such modifications or work under the terms of Section 1
137219820Sjeffabove, provided that you also meet all of these conditions:
138219820Sjeff
139219820Sjeff    a) You must cause the modified files to carry prominent notices
140219820Sjeff    stating that you changed the files and the date of any change.
141219820Sjeff
142219820Sjeff    b) You must cause any work that you distribute or publish, that in
143219820Sjeff    whole or in part contains or is derived from the Program or any
144219820Sjeff    part thereof, to be licensed as a whole at no charge to all third
145219820Sjeff    parties under the terms of this License.
146219820Sjeff
147219820Sjeff    c) If the modified program normally reads commands interactively
148219820Sjeff    when run, you must cause it, when started running for such
149219820Sjeff    interactive use in the most ordinary way, to print or display an
150219820Sjeff    announcement including an appropriate copyright notice and a
151219820Sjeff    notice that there is no warranty (or else, saying that you provide
152219820Sjeff    a warranty) and that users may redistribute the program under
153219820Sjeff    these conditions, and telling the user how to view a copy of this
154219820Sjeff    License.  (Exception: if the Program itself is interactive but
155219820Sjeff    does not normally print such an announcement, your work based on
156219820Sjeff    the Program is not required to print an announcement.)
157219820Sjeff
158219820SjeffThese requirements apply to the modified work as a whole.  If
159219820Sjeffidentifiable sections of that work are not derived from the Program,
160219820Sjeffand can be reasonably considered independent and separate works in
161219820Sjeffthemselves, then this License, and its terms, do not apply to those
162219820Sjeffsections when you distribute them as separate works.  But when you
163219820Sjeffdistribute the same sections as part of a whole which is a work based
164219820Sjeffon the Program, the distribution of the whole must be on the terms of
165219820Sjeffthis License, whose permissions for other licensees extend to the
166219820Sjeffentire whole, and thus to each and every part regardless of who wrote it.
167219820Sjeff
168219820SjeffThus, it is not the intent of this section to claim rights or contest
169219820Sjeffyour rights to work written entirely by you; rather, the intent is to
170219820Sjeffexercise the right to control the distribution of derivative or
171219820Sjeffcollective works based on the Program.
172219820Sjeff
173219820SjeffIn addition, mere aggregation of another work not based on the Program
174219820Sjeffwith the Program (or with a work based on the Program) on a volume of
175219820Sjeffa storage or distribution medium does not bring the other work under
176219820Sjeffthe scope of this License.
177219820Sjeff
178219820Sjeff  3. You may copy and distribute the Program (or a work based on it,
179219820Sjeffunder Section 2) in object code or executable form under the terms of
180219820SjeffSections 1 and 2 above provided that you also do one of the following:
181219820Sjeff
182219820Sjeff    a) Accompany it with the complete corresponding machine-readable
183219820Sjeff    source code, which must be distributed under the terms of Sections
184219820Sjeff    1 and 2 above on a medium customarily used for software interchange; or,
185219820Sjeff
186219820Sjeff    b) Accompany it with a written offer, valid for at least three
187219820Sjeff    years, to give any third party, for a charge no more than your
188219820Sjeff    cost of physically performing source distribution, a complete
189219820Sjeff    machine-readable copy of the corresponding source code, to be
190219820Sjeff    distributed under the terms of Sections 1 and 2 above on a medium
191219820Sjeff    customarily used for software interchange; or,
192219820Sjeff
193219820Sjeff    c) Accompany it with the information you received as to the offer
194219820Sjeff    to distribute corresponding source code.  (This alternative is
195219820Sjeff    allowed only for noncommercial distribution and only if you
196219820Sjeff    received the program in object code or executable form with such
197219820Sjeff    an offer, in accord with Subsection b above.)
198219820Sjeff
199219820SjeffThe source code for a work means the preferred form of the work for
200219820Sjeffmaking modifications to it.  For an executable work, complete source
201219820Sjeffcode means all the source code for all modules it contains, plus any
202219820Sjeffassociated interface definition files, plus the scripts used to
203219820Sjeffcontrol compilation and installation of the executable.  However, as a
204219820Sjeffspecial exception, the source code distributed need not include
205219820Sjeffanything that is normally distributed (in either source or binary
206219820Sjeffform) with the major components (compiler, kernel, and so on) of the
207219820Sjeffoperating system on which the executable runs, unless that component
208219820Sjeffitself accompanies the executable.
209219820Sjeff
210219820SjeffIf distribution of executable or object code is made by offering
211219820Sjeffaccess to copy from a designated place, then offering equivalent
212219820Sjeffaccess to copy the source code from the same place counts as
213219820Sjeffdistribution of the source code, even though third parties are not
214219820Sjeffcompelled to copy the source along with the object code.
215219820Sjeff
216219820Sjeff  4. You may not copy, modify, sublicense, or distribute the Program
217219820Sjeffexcept as expressly provided under this License.  Any attempt
218219820Sjeffotherwise to copy, modify, sublicense or distribute the Program is
219219820Sjeffvoid, and will automatically terminate your rights under this License.
220219820SjeffHowever, parties who have received copies, or rights, from you under
221219820Sjeffthis License will not have their licenses terminated so long as such
222219820Sjeffparties remain in full compliance.
223219820Sjeff
224219820Sjeff  5. You are not required to accept this License, since you have not
225219820Sjeffsigned it.  However, nothing else grants you permission to modify or
226219820Sjeffdistribute the Program or its derivative works.  These actions are
227219820Sjeffprohibited by law if you do not accept this License.  Therefore, by
228219820Sjeffmodifying or distributing the Program (or any work based on the
229219820SjeffProgram), you indicate your acceptance of this License to do so, and
230219820Sjeffall its terms and conditions for copying, distributing or modifying
231219820Sjeffthe Program or works based on it.
232219820Sjeff
233219820Sjeff  6. Each time you redistribute the Program (or any work based on the
234219820SjeffProgram), the recipient automatically receives a license from the
235219820Sjefforiginal licensor to copy, distribute or modify the Program subject to
236219820Sjeffthese terms and conditions.  You may not impose any further
237219820Sjeffrestrictions on the recipients' exercise of the rights granted herein.
238219820SjeffYou are not responsible for enforcing compliance by third parties to
239219820Sjeffthis License.
240219820Sjeff
241219820Sjeff  7. If, as a consequence of a court judgment or allegation of patent
242219820Sjeffinfringement or for any other reason (not limited to patent issues),
243219820Sjeffconditions are imposed on you (whether by court order, agreement or
244219820Sjeffotherwise) that contradict the conditions of this License, they do not
245219820Sjeffexcuse you from the conditions of this License.  If you cannot
246219820Sjeffdistribute so as to satisfy simultaneously your obligations under this
247219820SjeffLicense and any other pertinent obligations, then as a consequence you
248219820Sjeffmay not distribute the Program at all.  For example, if a patent
249219820Sjefflicense would not permit royalty-free redistribution of the Program by
250219820Sjeffall those who receive copies directly or indirectly through you, then
251219820Sjeffthe only way you could satisfy both it and this License would be to
252219820Sjeffrefrain entirely from distribution of the Program.
253219820Sjeff
254219820SjeffIf any portion of this section is held invalid or unenforceable under
255219820Sjeffany particular circumstance, the balance of the section is intended to
256219820Sjeffapply and the section as a whole is intended to apply in other
257219820Sjeffcircumstances.
258219820Sjeff
259219820SjeffIt is not the purpose of this section to induce you to infringe any
260219820Sjeffpatents or other property right claims or to contest validity of any
261219820Sjeffsuch claims; this section has the sole purpose of protecting the
262219820Sjeffintegrity of the free software distribution system, which is
263219820Sjeffimplemented by public license practices.  Many people have made
264219820Sjeffgenerous contributions to the wide range of software distributed
265219820Sjeffthrough that system in reliance on consistent application of that
266219820Sjeffsystem; it is up to the author/donor to decide if he or she is willing
267219820Sjeffto distribute software through any other system and a licensee cannot
268219820Sjeffimpose that choice.
269219820Sjeff
270219820SjeffThis section is intended to make thoroughly clear what is believed to
271219820Sjeffbe a consequence of the rest of this License.
272219820Sjeff
273219820Sjeff  8. If the distribution and/or use of the Program is restricted in
274219820Sjeffcertain countries either by patents or by copyrighted interfaces, the
275219820Sjefforiginal copyright holder who places the Program under this License
276219820Sjeffmay add an explicit geographical distribution limitation excluding
277219820Sjeffthose countries, so that distribution is permitted only in or among
278219820Sjeffcountries not thus excluded.  In such case, this License incorporates
279219820Sjeffthe limitation as if written in the body of this License.
280219820Sjeff
281219820Sjeff  9. The Free Software Foundation may publish revised and/or new versions
282219820Sjeffof the General Public License from time to time.  Such new versions will
283219820Sjeffbe similar in spirit to the present version, but may differ in detail to
284219820Sjeffaddress new problems or concerns.
285219820Sjeff
286219820SjeffEach version is given a distinguishing version number.  If the Program
287219820Sjeffspecifies a version number of this License which applies to it and "any
288219820Sjefflater version", you have the option of following the terms and conditions
289219820Sjeffeither of that version or of any later version published by the Free
290219820SjeffSoftware Foundation.  If the Program does not specify a version number of
291219820Sjeffthis License, you may choose any version ever published by the Free Software
292219820SjeffFoundation.
293219820Sjeff
294219820Sjeff  10. If you wish to incorporate parts of the Program into other free
295219820Sjeffprograms whose distribution conditions are different, write to the author
296219820Sjeffto ask for permission.  For software which is copyrighted by the Free
297219820SjeffSoftware Foundation, write to the Free Software Foundation; we sometimes
298219820Sjeffmake exceptions for this.  Our decision will be guided by the two goals
299219820Sjeffof preserving the free status of all derivatives of our free software and
300219820Sjeffof promoting the sharing and reuse of software generally.
301219820Sjeff
302219820Sjeff                            NO WARRANTY
303219820Sjeff
304219820Sjeff  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
305219820SjeffFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
306219820SjeffOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
307219820SjeffPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
308219820SjeffOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
309219820SjeffMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
310219820SjeffTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
311219820SjeffPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
312219820SjeffREPAIR OR CORRECTION.
313219820Sjeff
314219820Sjeff  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
315219820SjeffWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
316219820SjeffREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
317219820SjeffINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
318219820SjeffOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
319219820SjeffTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
320219820SjeffYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
321219820SjeffPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
322219820SjeffPOSSIBILITY OF SUCH DAMAGES.
323219820Sjeff
324219820Sjeff                     END OF TERMS AND CONDITIONS
325219820Sjeff
326219820Sjeff            How to Apply These Terms to Your New Programs
327219820Sjeff
328219820Sjeff  If you develop a new program, and you want it to be of the greatest
329219820Sjeffpossible use to the public, the best way to achieve this is to make it
330219820Sjefffree software which everyone can redistribute and change under these terms.
331219820Sjeff
332219820Sjeff  To do so, attach the following notices to the program.  It is safest
333219820Sjeffto attach them to the start of each source file to most effectively
334219820Sjeffconvey the exclusion of warranty; and each file should have at least
335219820Sjeffthe "copyright" line and a pointer to where the full notice is found.
336219820Sjeff
337219820Sjeff    <one line to give the program's name and a brief idea of what it does.>
338219820Sjeff    Copyright (C) <year>  <name of author>
339219820Sjeff
340219820Sjeff    This program is free software; you can redistribute it and/or modify
341219820Sjeff    it under the terms of the GNU General Public License as published by
342219820Sjeff    the Free Software Foundation; either version 2 of the License, or
343219820Sjeff    (at your option) any later version.
344219820Sjeff
345219820Sjeff    This program is distributed in the hope that it will be useful,
346219820Sjeff    but WITHOUT ANY WARRANTY; without even the implied warranty of
347219820Sjeff    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
348219820Sjeff    GNU General Public License for more details.
349219820Sjeff
350219820Sjeff    You should have received a copy of the GNU General Public License
351219820Sjeff    along with this program; if not, write to the Free Software
352219820Sjeff    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
353219820Sjeff
354219820Sjeff
355219820SjeffAlso add information on how to contact you by electronic and paper mail.
356219820Sjeff
357219820SjeffIf the program is interactive, make it output a short notice like this
358219820Sjeffwhen it starts in an interactive mode:
359219820Sjeff
360219820Sjeff    Gnomovision version 69, Copyright (C) year name of author
361219820Sjeff    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
362219820Sjeff    This is free software, and you are welcome to redistribute it
363219820Sjeff    under certain conditions; type `show c' for details.
364219820Sjeff
365219820SjeffThe hypothetical commands `show w' and `show c' should show the appropriate
366219820Sjeffparts of the General Public License.  Of course, the commands you use may
367219820Sjeffbe called something other than `show w' and `show c'; they could even be
368219820Sjeffmouse-clicks or menu items--whatever suits your program.
369219820Sjeff
370219820SjeffYou should also get your employer (if you work as a programmer) or your
371219820Sjeffschool, if any, to sign a "copyright disclaimer" for the program, if
372219820Sjeffnecessary.  Here is a sample; alter the names:
373219820Sjeff
374219820Sjeff  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
375219820Sjeff  `Gnomovision' (which makes passes at compilers) written by James Hacker.
376219820Sjeff
377219820Sjeff  <signature of Ty Coon>, 1 April 1989
378219820Sjeff  Ty Coon, President of Vice
379219820Sjeff
380219820SjeffThis General Public License does not permit incorporating your program into
381219820Sjeffproprietary programs.  If your program is a subroutine library, you may
382219820Sjeffconsider it more useful to permit linking proprietary applications with the
383219820Sjefflibrary.  If this is what you want to do, use the GNU Library General
384219820SjeffPublic License instead of this License.
385