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