| | 1 | = P2PNS License = |
| | 2 | |
| | 3 | |
| | 4 | |
| | 5 | P2PNS is licensed under the GPL license. Please mind the [http://www.omnetpp.org/ OMNeT++ simulation environment] is licensed under the [http://www.omnetpp.org/external/license.php Academic Public License]. |
| | 6 | |
| | 7 | |
| | 8 | |
| | 9 | {{{ |
| | 10 | |
| | 11 | GNU GENERAL PUBLIC LICENSE |
| | 12 | |
| | 13 | Version 2, June 1991 |
| | 14 | |
| | 15 | |
| | 16 | |
| | 17 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., |
| | 18 | |
| | 19 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| | 20 | |
| | 21 | Everyone is permitted to copy and distribute verbatim copies |
| | 22 | |
| | 23 | of this license document, but changing it is not allowed. |
| | 24 | |
| | 25 | |
| | 26 | |
| | 27 | Preamble |
| | 28 | |
| | 29 | |
| | 30 | |
| | 31 | The licenses for most software are designed to take away your |
| | 32 | |
| | 33 | freedom to share and change it. By contrast, the GNU General Public |
| | 34 | |
| | 35 | License is intended to guarantee your freedom to share and change free |
| | 36 | |
| | 37 | software--to make sure the software is free for all its users. This |
| | 38 | |
| | 39 | General Public License applies to most of the Free Software |
| | 40 | |
| | 41 | Foundation's software and to any other program whose authors commit to |
| | 42 | |
| | 43 | using it. (Some other Free Software Foundation software is covered by |
| | 44 | |
| | 45 | the GNU Lesser General Public License instead.) You can apply it to |
| | 46 | |
| | 47 | your programs, too. |
| | 48 | |
| | 49 | |
| | 50 | |
| | 51 | When we speak of free software, we are referring to freedom, not |
| | 52 | |
| | 53 | price. Our General Public Licenses are designed to make sure that you |
| | 54 | |
| | 55 | have the freedom to distribute copies of free software (and charge for |
| | 56 | |
| | 57 | this service if you wish), that you receive source code or can get it |
| | 58 | |
| | 59 | if you want it, that you can change the software or use pieces of it |
| | 60 | |
| | 61 | in new free programs; and that you know you can do these things. |
| | 62 | |
| | 63 | |
| | 64 | |
| | 65 | To protect your rights, we need to make restrictions that forbid |
| | 66 | |
| | 67 | anyone to deny you these rights or to ask you to surrender the rights. |
| | 68 | |
| | 69 | These restrictions translate to certain responsibilities for you if you |
| | 70 | |
| | 71 | distribute copies of the software, or if you modify it. |
| | 72 | |
| | 73 | |
| | 74 | |
| | 75 | For example, if you distribute copies of such a program, whether |
| | 76 | |
| | 77 | gratis or for a fee, you must give the recipients all the rights that |
| | 78 | |
| | 79 | you have. You must make sure that they, too, receive or can get the |
| | 80 | |
| | 81 | source code. And you must show them these terms so they know their |
| | 82 | |
| | 83 | rights. |
| | 84 | |
| | 85 | |
| | 86 | |
| | 87 | We protect your rights with two steps: (1) copyright the software, and |
| | 88 | |
| | 89 | (2) offer you this license which gives you legal permission to copy, |
| | 90 | |
| | 91 | distribute and/or modify the software. |
| | 92 | |
| | 93 | |
| | 94 | |
| | 95 | Also, for each author's protection and ours, we want to make certain |
| | 96 | |
| | 97 | that everyone understands that there is no warranty for this free |
| | 98 | |
| | 99 | software. If the software is modified by someone else and passed on, we |
| | 100 | |
| | 101 | want its recipients to know that what they have is not the original, so |
| | 102 | |
| | 103 | that any problems introduced by others will not reflect on the original |
| | 104 | |
| | 105 | authors' reputations. |
| | 106 | |
| | 107 | |
| | 108 | |
| | 109 | Finally, any free program is threatened constantly by software |
| | 110 | |
| | 111 | patents. We wish to avoid the danger that redistributors of a free |
| | 112 | |
| | 113 | program will individually obtain patent licenses, in effect making the |
| | 114 | |
| | 115 | program proprietary. To prevent this, we have made it clear that any |
| | 116 | |
| | 117 | patent must be licensed for everyone's free use or not licensed at all. |
| | 118 | |
| | 119 | |
| | 120 | |
| | 121 | The precise terms and conditions for copying, distribution and |
| | 122 | |
| | 123 | modification follow. |
| | 124 | |
| | 125 | |
| | 126 | |
| | 127 | GNU GENERAL PUBLIC LICENSE |
| | 128 | |
| | 129 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
| | 130 | |
| | 131 | |
| | 132 | |
| | 133 | 0. This License applies to any program or other work which contains |
| | 134 | |
| | 135 | a notice placed by the copyright holder saying it may be distributed |
| | 136 | |
| | 137 | under the terms of this General Public License. The "Program", below, |
| | 138 | |
| | 139 | refers to any such program or work, and a "work based on the Program" |
| | 140 | |
| | 141 | means either the Program or any derivative work under copyright law: |
| | 142 | |
| | 143 | that is to say, a work containing the Program or a portion of it, |
| | 144 | |
| | 145 | either verbatim or with modifications and/or translated into another |
| | 146 | |
| | 147 | language. (Hereinafter, translation is included without limitation in |
| | 148 | |
| | 149 | the term "modification".) Each licensee is addressed as "you". |
| | 150 | |
| | 151 | |
| | 152 | |
| | 153 | Activities other than copying, distribution and modification are not |
| | 154 | |
| | 155 | covered by this License; they are outside its scope. The act of |
| | 156 | |
| | 157 | running the Program is not restricted, and the output from the Program |
| | 158 | |
| | 159 | is covered only if its contents constitute a work based on the |
| | 160 | |
| | 161 | Program (independent of having been made by running the Program). |
| | 162 | |
| | 163 | Whether that is true depends on what the Program does. |
| | 164 | |
| | 165 | |
| | 166 | |
| | 167 | 1. You may copy and distribute verbatim copies of the Program's |
| | 168 | |
| | 169 | source code as you receive it, in any medium, provided that you |
| | 170 | |
| | 171 | conspicuously and appropriately publish on each copy an appropriate |
| | 172 | |
| | 173 | copyright notice and disclaimer of warranty; keep intact all the |
| | 174 | |
| | 175 | notices that refer to this License and to the absence of any warranty; |
| | 176 | |
| | 177 | and give any other recipients of the Program a copy of this License |
| | 178 | |
| | 179 | along with the Program. |
| | 180 | |
| | 181 | |
| | 182 | |
| | 183 | You may charge a fee for the physical act of transferring a copy, and |
| | 184 | |
| | 185 | you may at your option offer warranty protection in exchange for a fee. |
| | 186 | |
| | 187 | |
| | 188 | |
| | 189 | 2. You may modify your copy or copies of the Program or any portion |
| | 190 | |
| | 191 | of it, thus forming a work based on the Program, and copy and |
| | 192 | |
| | 193 | distribute such modifications or work under the terms of Section 1 |
| | 194 | |
| | 195 | above, provided that you also meet all of these conditions: |
| | 196 | |
| | 197 | |
| | 198 | |
| | 199 | a) You must cause the modified files to carry prominent notices |
| | 200 | |
| | 201 | stating that you changed the files and the date of any change. |
| | 202 | |
| | 203 | |
| | 204 | |
| | 205 | b) You must cause any work that you distribute or publish, that in |
| | 206 | |
| | 207 | whole or in part contains or is derived from the Program or any |
| | 208 | |
| | 209 | part thereof, to be licensed as a whole at no charge to all third |
| | 210 | |
| | 211 | parties under the terms of this License. |
| | 212 | |
| | 213 | |
| | 214 | |
| | 215 | c) If the modified program normally reads commands interactively |
| | 216 | |
| | 217 | when run, you must cause it, when started running for such |
| | 218 | |
| | 219 | interactive use in the most ordinary way, to print or display an |
| | 220 | |
| | 221 | announcement including an appropriate copyright notice and a |
| | 222 | |
| | 223 | notice that there is no warranty (or else, saying that you provide |
| | 224 | |
| | 225 | a warranty) and that users may redistribute the program under |
| | 226 | |
| | 227 | these conditions, and telling the user how to view a copy of this |
| | 228 | |
| | 229 | License. (Exception: if the Program itself is interactive but |
| | 230 | |
| | 231 | does not normally print such an announcement, your work based on |
| | 232 | |
| | 233 | the Program is not required to print an announcement.) |
| | 234 | |
| | 235 | |
| | 236 | |
| | 237 | These requirements apply to the modified work as a whole. If |
| | 238 | |
| | 239 | identifiable sections of that work are not derived from the Program, |
| | 240 | |
| | 241 | and can be reasonably considered independent and separate works in |
| | 242 | |
| | 243 | themselves, then this License, and its terms, do not apply to those |
| | 244 | |
| | 245 | sections when you distribute them as separate works. But when you |
| | 246 | |
| | 247 | distribute the same sections as part of a whole which is a work based |
| | 248 | |
| | 249 | on the Program, the distribution of the whole must be on the terms of |
| | 250 | |
| | 251 | this License, whose permissions for other licensees extend to the |
| | 252 | |
| | 253 | entire whole, and thus to each and every part regardless of who wrote it. |
| | 254 | |
| | 255 | |
| | 256 | |
| | 257 | Thus, it is not the intent of this section to claim rights or contest |
| | 258 | |
| | 259 | your rights to work written entirely by you; rather, the intent is to |
| | 260 | |
| | 261 | exercise the right to control the distribution of derivative or |
| | 262 | |
| | 263 | collective works based on the Program. |
| | 264 | |
| | 265 | |
| | 266 | |
| | 267 | In addition, mere aggregation of another work not based on the Program |
| | 268 | |
| | 269 | with the Program (or with a work based on the Program) on a volume of |
| | 270 | |
| | 271 | a storage or distribution medium does not bring the other work under |
| | 272 | |
| | 273 | the scope of this License. |
| | 274 | |
| | 275 | |
| | 276 | |
| | 277 | 3. You may copy and distribute the Program (or a work based on it, |
| | 278 | |
| | 279 | under Section 2) in object code or executable form under the terms of |
| | 280 | |
| | 281 | Sections 1 and 2 above provided that you also do one of the following: |
| | 282 | |
| | 283 | |
| | 284 | |
| | 285 | a) Accompany it with the complete corresponding machine-readable |
| | 286 | |
| | 287 | source code, which must be distributed under the terms of Sections |
| | 288 | |
| | 289 | 1 and 2 above on a medium customarily used for software interchange; or, |
| | 290 | |
| | 291 | |
| | 292 | |
| | 293 | b) Accompany it with a written offer, valid for at least three |
| | 294 | |
| | 295 | years, to give any third party, for a charge no more than your |
| | 296 | |
| | 297 | cost of physically performing source distribution, a complete |
| | 298 | |
| | 299 | machine-readable copy of the corresponding source code, to be |
| | 300 | |
| | 301 | distributed under the terms of Sections 1 and 2 above on a medium |
| | 302 | |
| | 303 | customarily used for software interchange; or, |
| | 304 | |
| | 305 | |
| | 306 | |
| | 307 | c) Accompany it with the information you received as to the offer |
| | 308 | |
| | 309 | to distribute corresponding source code. (This alternative is |
| | 310 | |
| | 311 | allowed only for noncommercial distribution and only if you |
| | 312 | |
| | 313 | received the program in object code or executable form with such |
| | 314 | |
| | 315 | an offer, in accord with Subsection b above.) |
| | 316 | |
| | 317 | |
| | 318 | |
| | 319 | The source code for a work means the preferred form of the work for |
| | 320 | |
| | 321 | making modifications to it. For an executable work, complete source |
| | 322 | |
| | 323 | code means all the source code for all modules it contains, plus any |
| | 324 | |
| | 325 | associated interface definition files, plus the scripts used to |
| | 326 | |
| | 327 | control compilation and installation of the executable. However, as a |
| | 328 | |
| | 329 | special exception, the source code distributed need not include |
| | 330 | |
| | 331 | anything that is normally distributed (in either source or binary |
| | 332 | |
| | 333 | form) with the major components (compiler, kernel, and so on) of the |
| | 334 | |
| | 335 | operating system on which the executable runs, unless that component |
| | 336 | |
| | 337 | itself accompanies the executable. |
| | 338 | |
| | 339 | |
| | 340 | |
| | 341 | If distribution of executable or object code is made by offering |
| | 342 | |
| | 343 | access to copy from a designated place, then offering equivalent |
| | 344 | |
| | 345 | access to copy the source code from the same place counts as |
| | 346 | |
| | 347 | distribution of the source code, even though third parties are not |
| | 348 | |
| | 349 | compelled to copy the source along with the object code. |
| | 350 | |
| | 351 | |
| | 352 | |
| | 353 | 4. You may not copy, modify, sublicense, or distribute the Program |
| | 354 | |
| | 355 | except as expressly provided under this License. Any attempt |
| | 356 | |
| | 357 | otherwise to copy, modify, sublicense or distribute the Program is |
| | 358 | |
| | 359 | void, and will automatically terminate your rights under this License. |
| | 360 | |
| | 361 | However, parties who have received copies, or rights, from you under |
| | 362 | |
| | 363 | this License will not have their licenses terminated so long as such |
| | 364 | |
| | 365 | parties remain in full compliance. |
| | 366 | |
| | 367 | |
| | 368 | |
| | 369 | 5. You are not required to accept this License, since you have not |
| | 370 | |
| | 371 | signed it. However, nothing else grants you permission to modify or |
| | 372 | |
| | 373 | distribute the Program or its derivative works. These actions are |
| | 374 | |
| | 375 | prohibited by law if you do not accept this License. Therefore, by |
| | 376 | |
| | 377 | modifying or distributing the Program (or any work based on the |
| | 378 | |
| | 379 | Program), you indicate your acceptance of this License to do so, and |
| | 380 | |
| | 381 | all its terms and conditions for copying, distributing or modifying |
| | 382 | |
| | 383 | the Program or works based on it. |
| | 384 | |
| | 385 | |
| | 386 | |
| | 387 | 6. Each time you redistribute the Program (or any work based on the |
| | 388 | |
| | 389 | Program), the recipient automatically receives a license from the |
| | 390 | |
| | 391 | original licensor to copy, distribute or modify the Program subject to |
| | 392 | |
| | 393 | these terms and conditions. You may not impose any further |
| | 394 | |
| | 395 | restrictions on the recipients' exercise of the rights granted herein. |
| | 396 | |
| | 397 | You are not responsible for enforcing compliance by third parties to |
| | 398 | |
| | 399 | this License. |
| | 400 | |
| | 401 | |
| | 402 | |
| | 403 | 7. If, as a consequence of a court judgment or allegation of patent |
| | 404 | |
| | 405 | infringement or for any other reason (not limited to patent issues), |
| | 406 | |
| | 407 | conditions are imposed on you (whether by court order, agreement or |
| | 408 | |
| | 409 | otherwise) that contradict the conditions of this License, they do not |
| | 410 | |
| | 411 | excuse you from the conditions of this License. If you cannot |
| | 412 | |
| | 413 | distribute so as to satisfy simultaneously your obligations under this |
| | 414 | |
| | 415 | License and any other pertinent obligations, then as a consequence you |
| | 416 | |
| | 417 | may not distribute the Program at all. For example, if a patent |
| | 418 | |
| | 419 | license would not permit royalty-free redistribution of the Program by |
| | 420 | |
| | 421 | all those who receive copies directly or indirectly through you, then |
| | 422 | |
| | 423 | the only way you could satisfy both it and this License would be to |
| | 424 | |
| | 425 | refrain entirely from distribution of the Program. |
| | 426 | |
| | 427 | |
| | 428 | |
| | 429 | If any portion of this section is held invalid or unenforceable under |
| | 430 | |
| | 431 | any particular circumstance, the balance of the section is intended to |
| | 432 | |
| | 433 | apply and the section as a whole is intended to apply in other |
| | 434 | |
| | 435 | circumstances. |
| | 436 | |
| | 437 | |
| | 438 | |
| | 439 | It is not the purpose of this section to induce you to infringe any |
| | 440 | |
| | 441 | patents or other property right claims or to contest validity of any |
| | 442 | |
| | 443 | such claims; this section has the sole purpose of protecting the |
| | 444 | |
| | 445 | integrity of the free software distribution system, which is |
| | 446 | |
| | 447 | implemented by public license practices. Many people have made |
| | 448 | |
| | 449 | generous contributions to the wide range of software distributed |
| | 450 | |
| | 451 | through that system in reliance on consistent application of that |
| | 452 | |
| | 453 | system; it is up to the author/donor to decide if he or she is willing |
| | 454 | |
| | 455 | to distribute software through any other system and a licensee cannot |
| | 456 | |
| | 457 | impose that choice. |
| | 458 | |
| | 459 | |
| | 460 | |
| | 461 | This section is intended to make thoroughly clear what is believed to |
| | 462 | |
| | 463 | be a consequence of the rest of this License. |
| | 464 | |
| | 465 | |
| | 466 | |
| | 467 | 8. If the distribution and/or use of the Program is restricted in |
| | 468 | |
| | 469 | certain countries either by patents or by copyrighted interfaces, the |
| | 470 | |
| | 471 | original copyright holder who places the Program under this License |
| | 472 | |
| | 473 | may add an explicit geographical distribution limitation excluding |
| | 474 | |
| | 475 | those countries, so that distribution is permitted only in or among |
| | 476 | |
| | 477 | countries not thus excluded. In such case, this License incorporates |
| | 478 | |
| | 479 | the limitation as if written in the body of this License. |
| | 480 | |
| | 481 | |
| | 482 | |
| | 483 | 9. The Free Software Foundation may publish revised and/or new versions |
| | 484 | |
| | 485 | of the General Public License from time to time. Such new versions will |
| | 486 | |
| | 487 | be similar in spirit to the present version, but may differ in detail to |
| | 488 | |
| | 489 | address new problems or concerns. |
| | 490 | |
| | 491 | |
| | 492 | |
| | 493 | Each version is given a distinguishing version number. If the Program |
| | 494 | |
| | 495 | specifies a version number of this License which applies to it and "any |
| | 496 | |
| | 497 | later version", you have the option of following the terms and conditions |
| | 498 | |
| | 499 | either of that version or of any later version published by the Free |
| | 500 | |
| | 501 | Software Foundation. If the Program does not specify a version number of |
| | 502 | |
| | 503 | this License, you may choose any version ever published by the Free Software |
| | 504 | |
| | 505 | Foundation. |
| | 506 | |
| | 507 | |
| | 508 | |
| | 509 | 10. If you wish to incorporate parts of the Program into other free |
| | 510 | |
| | 511 | programs whose distribution conditions are different, write to the author |
| | 512 | |
| | 513 | to ask for permission. For software which is copyrighted by the Free |
| | 514 | |
| | 515 | Software Foundation, write to the Free Software Foundation; we sometimes |
| | 516 | |
| | 517 | make exceptions for this. Our decision will be guided by the two goals |
| | 518 | |
| | 519 | of preserving the free status of all derivatives of our free software and |
| | 520 | |
| | 521 | of promoting the sharing and reuse of software generally. |
| | 522 | |
| | 523 | |
| | 524 | |
| | 525 | NO WARRANTY |
| | 526 | |
| | 527 | |
| | 528 | |
| | 529 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
| | 530 | |
| | 531 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
| | 532 | |
| | 533 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
| | 534 | |
| | 535 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED |
| | 536 | |
| | 537 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| | 538 | |
| | 539 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS |
| | 540 | |
| | 541 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE |
| | 542 | |
| | 543 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, |
| | 544 | |
| | 545 | REPAIR OR CORRECTION. |
| | 546 | |
| | 547 | |
| | 548 | |
| | 549 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
| | 550 | |
| | 551 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
| | 552 | |
| | 553 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
| | 554 | |
| | 555 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING |
| | 556 | |
| | 557 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED |
| | 558 | |
| | 559 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY |
| | 560 | |
| | 561 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER |
| | 562 | |
| | 563 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE |
| | 564 | |
| | 565 | POSSIBILITY OF SUCH DAMAGES. |
| | 566 | |
| | 567 | |
| | 568 | |
| | 569 | END OF TERMS AND CONDITIONS |
| | 570 | |
| | 571 | }}} |