diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-07-07 14:35:27 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-07-07 14:35:27 +0000 |
commit | 2828fa3560780af1e4f0bad427bed5a82a8679c7 (patch) | |
tree | 30e296004100979512fc2cd152e59291e542266d | |
parent | d4c03e8759b106b2d954f6a7ab34ac16b9512f3b (diff) | |
download | ipacct-2828fa3560780af1e4f0bad427bed5a82a8679c7.tar.gz ipacct-2828fa3560780af1e4f0bad427bed5a82a8679c7.tar.bz2 |
Relicense under GPLv3.
* COPYING, Makefile.am, configure.ac, src/Makefile.am: GPLv3
* src/account.c, src/config.y, src/cons_ether.c, src/cons_ip.c,
src/cons_ppp.c, src/cons_raw.c, src/ipacct.h, src/iputil.c,
src/list.c, src/list.h, src/main.c, src/report.c, src/report.h,
src/run.c, src/utils.c: Use ANSI C. Relicense under GPLv3.
-rw-r--r-- | COPYING | 898 | ||||
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | Makefile.am | 16 | ||||
-rw-r--r-- | configure.ac | 17 | ||||
-rw-r--r-- | src/Makefile.am | 16 | ||||
-rw-r--r-- | src/account.c | 71 | ||||
-rw-r--r-- | src/config.y | 43 | ||||
-rw-r--r-- | src/cons_ether.c | 23 | ||||
-rw-r--r-- | src/cons_ip.c | 23 | ||||
-rw-r--r-- | src/cons_ppp.c | 23 | ||||
-rw-r--r-- | src/cons_raw.c | 24 | ||||
-rw-r--r-- | src/ipacct.h | 19 | ||||
-rw-r--r-- | src/iputil.c | 34 | ||||
-rw-r--r-- | src/list.c | 38 | ||||
-rw-r--r-- | src/list.h | 16 | ||||
-rw-r--r-- | src/main.c | 48 | ||||
-rw-r--r-- | src/report.c | 52 | ||||
-rw-r--r-- | src/report.h | 18 | ||||
-rw-r--r-- | src/run.c | 31 | ||||
-rw-r--r-- | src/utils.c | 30 |
20 files changed, 859 insertions, 590 deletions
@@ -1,284 +1,626 @@ | |||
1 | |||
1 | GNU GENERAL PUBLIC LICENSE | 2 | GNU GENERAL PUBLIC LICENSE |
2 | Version 2, June 1991 | 3 | Version 3, 29 June 2007 |
3 | 4 | ||
4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. | 5 | Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
5 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
6 | Everyone is permitted to copy and distribute verbatim copies | 6 | Everyone is permitted to copy and distribute verbatim copies |
7 | of this license document, but changing it is not allowed. | 7 | of this license document, but changing it is not allowed. |
8 | 8 | ||
9 | Preamble | 9 | Preamble |
10 | 10 | ||
11 | The licenses for most software are designed to take away your | 11 | The GNU General Public License is a free, copyleft license for |
12 | freedom to share and change it. By contrast, the GNU General Public | 12 | software and other kinds of works. |
13 | License is intended to guarantee your freedom to share and change free | 13 | |
14 | software--to make sure the software is free for all its users. This | 14 | The licenses for most software and other practical works are designed |
15 | General Public License applies to most of the Free Software | 15 | to take away your freedom to share and change the works. By contrast, |
16 | Foundation's software and to any other program whose authors commit to | 16 | the GNU General Public License is intended to guarantee your freedom to |
17 | using it. (Some other Free Software Foundation software is covered by | 17 | share and change all versions of a program--to make sure it remains free |
18 | the GNU Library General Public License instead.) You can apply it to | 18 | software for all its users. We, the Free Software Foundation, use the |
19 | GNU General Public License for most of our software; it applies also to | ||
20 | any other work released this way by its authors. You can apply it to | ||
19 | your programs, too. | 21 | your programs, too. |
20 | 22 | ||
21 | When we speak of free software, we are referring to freedom, not | 23 | When we speak of free software, we are referring to freedom, not |
22 | price. Our General Public Licenses are designed to make sure that you | 24 | price. Our General Public Licenses are designed to make sure that you |
23 | have the freedom to distribute copies of free software (and charge for | 25 | have the freedom to distribute copies of free software (and charge for |
24 | this service if you wish), that you receive source code or can get it | 26 | them if you wish), that you receive source code or can get it if you |
25 | if you want it, that you can change the software or use pieces of it | 27 | want it, that you can change the software or use pieces of it in new |
26 | in new free programs; and that you know you can do these things. | 28 | free programs, and that you know you can do these things. |
27 | 29 | ||
28 | To protect your rights, we need to make restrictions that forbid | 30 | To protect your rights, we need to prevent others from denying you |
29 | anyone to deny you these rights or to ask you to surrender the rights. | 31 | these rights or asking you to surrender the rights. Therefore, you have |
30 | These restrictions translate to certain responsibilities for you if you | 32 | certain responsibilities if you distribute copies of the software, or if |
31 | distribute copies of the software, or if you modify it. | 33 | you modify it: responsibilities to respect the freedom of others. |
32 | 34 | ||
33 | For example, if you distribute copies of such a program, whether | 35 | For example, if you distribute copies of such a program, whether |
34 | gratis or for a fee, you must give the recipients all the rights that | 36 | gratis or for a fee, you must pass on to the recipients the same |
35 | you have. You must make sure that they, too, receive or can get the | 37 | freedoms that you received. You must make sure that they, too, receive |
36 | source code. And you must show them these terms so they know their | 38 | or can get the source code. And you must show them these terms so they |
37 | rights. | 39 | know their rights. |
38 | 40 | ||
39 | We protect your rights with two steps: (1) copyright the software, and | 41 | Developers that use the GNU GPL protect your rights with two steps: |
40 | (2) offer you this license which gives you legal permission to copy, | 42 | (1) assert copyright on the software, and (2) offer you this License |
41 | distribute and/or modify the software. | 43 | giving you legal permission to copy, distribute and/or modify it. |
42 | 44 | ||
43 | Also, for each author's protection and ours, we want to make certain | 45 | For the developers' and authors' protection, the GPL clearly explains |
44 | that everyone understands that there is no warranty for this free | 46 | that there is no warranty for this free software. For both users' and |
45 | software. If the software is modified by someone else and passed on, we | 47 | authors' sake, the GPL requires that modified versions be marked as |
46 | want its recipients to know that what they have is not the original, so | 48 | changed, so that their problems will not be attributed erroneously to |
47 | that any problems introduced by others will not reflect on the original | 49 | authors of previous versions. |
48 | authors' reputations. | 50 | |
49 | 51 | Some devices are designed to deny users access to install or run | |
50 | Finally, any free program is threatened constantly by software | 52 | modified versions of the software inside them, although the manufacturer |
51 | patents. We wish to avoid the danger that redistributors of a free | 53 | can do so. This is fundamentally incompatible with the aim of |
52 | program will individually obtain patent licenses, in effect making the | 54 | protecting users' freedom to change the software. The systematic |
53 | program proprietary. To prevent this, we have made it clear that any | 55 | pattern of such abuse occurs in the area of products for individuals to |
54 | patent must be licensed for everyone's free use or not licensed at all. | 56 | use, which is precisely where it is most unacceptable. Therefore, we |
57 | have designed this version of the GPL to prohibit the practice for those | ||
58 | products. If such problems arise substantially in other domains, we | ||
59 | stand ready to extend this provision to those domains in future versions | ||
60 | of the GPL, as needed to protect the freedom of users. | ||
61 | |||
62 | Finally, every program is threatened constantly by software patents. | ||
63 | States should not allow patents to restrict development and use of | ||
64 | software on general-purpose computers, but in those that do, we wish to | ||
65 | avoid the special danger that patents applied to a free program could | ||
66 | make it effectively proprietary. To prevent this, the GPL assures that | ||
67 | patents cannot be used to render the program non-free. | ||
55 | 68 | ||
56 | The precise terms and conditions for copying, distribution and | 69 | The precise terms and conditions for copying, distribution and |
57 | modification follow. | 70 | modification follow. |
58 | 71 | ||
59 | GNU GENERAL PUBLIC LICENSE | 72 | TERMS AND CONDITIONS |
60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | 73 | |
61 | 74 | 0. Definitions. | |
62 | 0. This License applies to any program or other work which contains | 75 | |
63 | a notice placed by the copyright holder saying it may be distributed | 76 | "This License" refers to version 3 of the GNU General Public License. |
64 | under the terms of this General Public License. The "Program", below, | 77 | |
65 | refers to any such program or work, and a "work based on the Program" | 78 | "Copyright" also means copyright-like laws that apply to other kinds of |
66 | means either the Program or any derivative work under copyright law: | 79 | works, such as semiconductor masks. |
67 | that is to say, a work containing the Program or a portion of it, | 80 | |
68 | either verbatim or with modifications and/or translated into another | 81 | "The Program" refers to any copyrightable work licensed under this |
69 | language. (Hereinafter, translation is included without limitation in | 82 | License. Each licensee is addressed as "you". "Licensees" and |
70 | the term "modification".) Each licensee is addressed as "you". | 83 | "recipients" may be individuals or organizations. |
71 | 84 | ||
72 | Activities other than copying, distribution and modification are not | 85 | To "modify" a work means to copy from or adapt all or part of the work |
73 | covered by this License; they are outside its scope. The act of | 86 | in a fashion requiring copyright permission, other than the making of an |
74 | running the Program is not restricted, and the output from the Program | 87 | exact copy. The resulting work is called a "modified version" of the |
75 | is covered only if its contents constitute a work based on the | 88 | earlier work or a work "based on" the earlier work. |
76 | Program (independent of having been made by running the Program). | 89 | |
77 | Whether that is true depends on what the Program does. | 90 | A "covered work" means either the unmodified Program or a work based |
78 | 91 | on the Program. | |
79 | 1. You may copy and distribute verbatim copies of the Program's | 92 | |
80 | source code as you receive it, in any medium, provided that you | 93 | To "propagate" a work means to do anything with it that, without |
81 | conspicuously and appropriately publish on each copy an appropriate | 94 | permission, would make you directly or secondarily liable for |
82 | copyright notice and disclaimer of warranty; keep intact all the | 95 | infringement under applicable copyright law, except executing it on a |
83 | notices that refer to this License and to the absence of any warranty; | 96 | computer or modifying a private copy. Propagation includes copying, |
84 | and give any other recipients of the Program a copy of this License | 97 | distribution (with or without modification), making available to the |
85 | along with the Program. | 98 | public, and in some countries other activities as well. |
86 | 99 | ||
87 | You may charge a fee for the physical act of transferring a copy, and | 100 | To "convey" a work means any kind of propagation that enables other |
88 | you may at your option offer warranty protection in exchange for a fee. | 101 | parties to make or receive copies. Mere interaction with a user through |
89 | 102 | a computer network, with no transfer of a copy, is not conveying. | |
90 | 2. You may modify your copy or copies of the Program or any portion | 103 | |
91 | of it, thus forming a work based on the Program, and copy and | 104 | An interactive user interface displays "Appropriate Legal Notices" |
92 | distribute such modifications or work under the terms of Section 1 | 105 | to the extent that it includes a convenient and prominently visible |
93 | above, provided that you also meet all of these conditions: | 106 | feature that (1) displays an appropriate copyright notice, and (2) |
94 | 107 | tells the user that there is no warranty for the work (except to the | |
95 | a) You must cause the modified files to carry prominent notices | 108 | extent that warranties are provided), that licensees may convey the |
96 | stating that you changed the files and the date of any change. | 109 | work under this License, and how to view a copy of this License. If |
97 | 110 | the interface presents a list of user commands or options, such as a | |
98 | b) You must cause any work that you distribute or publish, that in | 111 | menu, a prominent item in the list meets this criterion. |
99 | whole or in part contains or is derived from the Program or any | 112 | |
100 | part thereof, to be licensed as a whole at no charge to all third | 113 | 1. Source Code. |
101 | parties under the terms of this License. | 114 | |
102 | 115 | The "source code" for a work means the preferred form of the work | |
103 | c) If the modified program normally reads commands interactively | 116 | for making modifications to it. "Object code" means any non-source |
104 | when run, you must cause it, when started running for such | 117 | form of a work. |
105 | interactive use in the most ordinary way, to print or display an | 118 | |
106 | announcement including an appropriate copyright notice and a | 119 | A "Standard Interface" means an interface that either is an official |
107 | notice that there is no warranty (or else, saying that you provide | 120 | standard defined by a recognized standards body, or, in the case of |
108 | a warranty) and that users may redistribute the program under | 121 | interfaces specified for a particular programming language, one that |
109 | these conditions, and telling the user how to view a copy of this | 122 | is widely used among developers working in that language. |
110 | License. (Exception: if the Program itself is interactive but | 123 | |
111 | does not normally print such an announcement, your work based on | 124 | The "System Libraries" of an executable work include anything, other |
112 | the Program is not required to print an announcement.) | 125 | than the work as a whole, that (a) is included in the normal form of |
113 | 126 | packaging a Major Component, but which is not part of that Major | |
114 | These requirements apply to the modified work as a whole. If | 127 | Component, an |