<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pttlink.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=KD3SU</id>
	<title>&quot;PTTLink Wiki&quot; - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pttlink.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=KD3SU"/>
	<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/wiki/Special:Contributions/KD3SU"/>
	<updated>2026-04-26T11:00:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Stats_Server&amp;diff=874</id>
		<title>Stats Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Stats_Server&amp;diff=874"/>
		<updated>2018-03-03T13:52:07Z</updated>

		<summary type="html">&lt;p&gt;KD3SU: link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Status server&lt;br /&gt;
&lt;br /&gt;
Requires graphviz&lt;br /&gt;
&lt;br /&gt;
This consists of several C programs as CGI's and uses LMDB to store data nodes post to the server. &lt;br /&gt;
&lt;br /&gt;
The source is under /usr/local/src/status &lt;br /&gt;
&lt;br /&gt;
* index.cgi - generates the code for the index page and textual output&lt;br /&gt;
* uhandler.cgi - receives the http get requests of data from the nodes and writes it to the LMDB&lt;br /&gt;
* nodeinfo.cgi - gives the per node report text page&lt;br /&gt;
* getconn.cgi - not really needed for the user interface.  ?$NODE returns text with the total number of connected nodes and the state of each connected node separated by pipes&lt;br /&gt;
* statsdb.cgi - not needed for the interface.  If the compiled in IP is matched, it will return a dump of the database.  &lt;br /&gt;
* jsondata.cgi - not needed for the interface, used for returning JSON formated node data from database.&lt;br /&gt;
* getstatus.cgi - generates the per node PNG image using getstatus and neato.  This is a bash script. &lt;br /&gt;
* graphic-status.html - used to display the big network wide graph&lt;br /&gt;
&lt;br /&gt;
These next are not publicly accessible files and are called by the system for generating the various parts of the config.  &lt;br /&gt;
&lt;br /&gt;
These must be installed under /var/www/stats-private&lt;br /&gt;
* updatenodesdb - updates the database from the registration server.  The registration server must permit this.&lt;br /&gt;
&lt;br /&gt;
* dostatus - executed from roots crontab, and makes the overall network PNG&lt;br /&gt;
&lt;br /&gt;
* mkstatslmdb - makes the raw stats LMDB if not there, might be good to run on boot &lt;br /&gt;
* mkstatus - used by dostatus, it makes the text data that neato uses to make the large graph &lt;br /&gt;
* getstatus - used by getstatus.cgi, it makes the text data neato uses to build the per node graph &lt;br /&gt;
* /var/www/stats-private/stats-lmdb - location of the LMDB database.  This should be compiled in. &lt;br /&gt;
For speed we can run the stats db on a tempfs in memory.  I've disabled this for now.  but it could be enabled in /etc/fstab.&lt;br /&gt;
&lt;br /&gt;
'''Note: The db hangs from time to time and one needs to run a cron job of /usr/local/src/liblmdb/mdb_stat -rr /var/www/stats-private/stats-lmdb to clear the stale readers. see: http://www.lmdb.tech/doc/index.html'''&lt;/div&gt;</summary>
		<author><name>KD3SU</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Helper_scripts&amp;diff=851</id>
		<title>Helper scripts</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Helper_scripts&amp;diff=851"/>
		<updated>2018-01-27T21:37:26Z</updated>

		<summary type="html">&lt;p&gt;KD3SU: Initial&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Script Name  !! Purpose&lt;br /&gt;
|-&lt;br /&gt;
| astdn.sh || Shuts down Asterisk&lt;br /&gt;
|-&lt;br /&gt;
| astres.sh|| Restarts Asterisk. Use to fore a reload of all configuration files.&lt;br /&gt;
|-&lt;br /&gt;
| astupd.sh || Fetch, compile and install the latest version of Asterisk&lt;br /&gt;
|-&lt;br /&gt;
| astup.sh || Starts up Asterisk&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>KD3SU</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Coding_standards&amp;diff=850</id>
		<title>Coding standards</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Coding_standards&amp;diff=850"/>
		<updated>2018-01-27T17:45:01Z</updated>

		<summary type="html">&lt;p&gt;KD3SU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Open Source ==&lt;br /&gt;
Allstar is an open-source project licensed under the GPL based on [https://www.asterisk.org/ Asterisk] and written in C. This means you get the source code and can make any modifications you wish provided you make your modifications available to the community.&lt;br /&gt;
&lt;br /&gt;
==  Formatting source code ==&lt;br /&gt;
&lt;br /&gt;
Keep the length of source lines to 79 characters or less, for maximum readability in the widest range of environments.&lt;br /&gt;
&lt;br /&gt;
It is important to put the open-brace that starts the body of a C function in column one, so that they will start a defun. Several tools look for open-braces in column one to find the beginnings of C functions. These tools will not work on code not formatted that way.&lt;br /&gt;
&lt;br /&gt;
Avoid putting open-brace, open-parenthesis or open-bracket in column one when they are inside a function, so that they won’t start a defun. The open-brace that starts a struct body can go in column one if you find it useful to treat that definition as a defun.&lt;br /&gt;
&lt;br /&gt;
It is also important for function definitions to start the name of the function in column one. This helps people to search for function definitions, and may also help certain tools recognize them. Thus, using Standard C syntax, the format is this&lt;br /&gt;
&lt;br /&gt;
For more details : https://www.gnu.org/prep/standards/html_node/Formatting.html#Formatting&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
&lt;br /&gt;
Every program should start with a comment saying briefly what it is for. Example: ‘fmt - filter for simple filling of text’. This comment should be at the top of the source file containing the ‘main’ function of the program.&lt;br /&gt;
&lt;br /&gt;
Also, please write a brief comment at the start of each source file, with the file name and a line or two about the overall purpose of the file.&lt;br /&gt;
&lt;br /&gt;
Please write the comments in a GNU program in English, because English is the one language that nearly all programmers in all countries can read. If you do not write English well, please write comments in English as well as you can, then ask other people to help rewrite them. If you can’t write comments in English, please find someone to work with you and translate your comments into English.&lt;br /&gt;
&lt;br /&gt;
Please put a comment on each function saying what the function does, what sorts of arguments it gets, and what the possible values of arguments mean and are used for. It is not necessary to duplicate in words the meaning of the C argument declarations, if a C type is being used in its customary fashion. If there is anything nonstandard about its use (such as an argument of type char * which is really the address of the second character of a string, not the first), or any possible values that would not work the way one would expect (such as, that strings containing newlines are not guaranteed to work), be sure to say so.&lt;br /&gt;
&lt;br /&gt;
Also explain the significance of the return value, if there is one.&lt;br /&gt;
&lt;br /&gt;
Please put two spaces after the end of a sentence in your comments, so that the Emacs sentence commands will work. Also, please write complete sentences and capitalize the first word. If a lower-case identifier comes at the beginning of a sentence, don’t capitalize it! Changing the spelling makes it a different identifier. If you don’t like starting a sentence with a lower case letter, write the sentence differently (e.g., “The identifier lower-case is …”).&lt;br /&gt;
&lt;br /&gt;
The comment on a function is much clearer if you use the argument names to speak about the argument values. The variable name itself should be lower case, but write it in upper case when you are speaking about the value rather than the variable itself. Thus, “the inode number NODE_NUM” rather than “an inode”.&lt;br /&gt;
&lt;br /&gt;
There is usually no purpose in restating the name of the function in the comment before it, because readers can see that for themselves. There might be an exception when the comment is so long that the function itself would be off the bottom of the screen. &lt;br /&gt;
&lt;br /&gt;
See: https://www.gnu.org/prep/standards/html_node/Comments.html#Comments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntactic Conventions ==	&lt;br /&gt;
* Clean use of C constructs.&lt;br /&gt;
&lt;br /&gt;
Don’t make the program ugly just to placate static analysis tools such as lint, clang, and GCC with extra warnings options such as -Wconversion and -Wundef. These tools can help find bugs and unclear code, but they can also generate so many false alarms that it hurts readability to silence them with unnecessary casts, wrappers, and other complications. For example, please don’t insert casts to void or calls to do-nothing functions merely to pacify a lint checker.&lt;br /&gt;
&lt;br /&gt;
Declarations of external functions and functions to appear later in the source file should all go in one place near the beginning of the file (somewhere before the first function definition in the file), or else should go in a header file. Don’t put extern declarations inside functions.&lt;br /&gt;
&lt;br /&gt;
It used to be common practice to use the same local variables (with names like tem) over and over for different values within one function. Instead of doing this, it is better to declare a separate local variable for each distinct purpose, and give it a name which is meaningful. This not only makes programs easier to understand, it also facilitates optimization by good compilers. You can also move the declaration of each local variable into the smallest scope that includes all its uses. This makes the program even cleaner.&lt;br /&gt;
&lt;br /&gt;
Don’t use local variables or parameters that shadow global identifiers. GCC’s ‘-Wshadow’ option can detect this problem. &lt;br /&gt;
&lt;br /&gt;
See: https://www.gnu.org/prep/standards/html_node/Syntactic-Conventions.html#Syntactic-Conventions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Naming variables, functions, and files ==&lt;br /&gt;
&lt;br /&gt;
The names of global variables and functions in a program serve as comments of a sort. So don’t choose terse names—instead, look for names that give useful information about the meaning of the variable or function. In a GNU program, names should be English, like other comments.&lt;br /&gt;
&lt;br /&gt;
Local variable names can be shorter, because they are used only within one context, where (presumably) comments explain their purpose.&lt;br /&gt;
&lt;br /&gt;
Try to limit your use of abbreviations in symbol names. It is ok to make a few abbreviations, explain what they mean, and then use them frequently, but don’t use lots of obscure abbreviations.&lt;br /&gt;
&lt;br /&gt;
Please use underscores to separate words in a name, so that the Emacs word commands can be useful within them. Stick to lower case; reserve upper case for macros and enum constants, and for name-prefixes that follow a uniform convention.&lt;br /&gt;
&lt;br /&gt;
For example, you should use names like ignore_space_change_flag; don’t use names like iCantReadThis.&lt;br /&gt;
&lt;br /&gt;
Variables that indicate whether command-line options have been specified should be named after the meaning of the option, not after the option-letter. A comment should state both the exact meaning of the option and its letter. &lt;br /&gt;
&lt;br /&gt;
https://www.gnu.org/prep/standards/html_node/Names.html#Names&lt;br /&gt;
&lt;br /&gt;
==Portability between System Types==&lt;br /&gt;
&lt;br /&gt;
In the Unix world, “portability” refers to porting to different Unix versions. For a GNU program, this kind of portability is desirable, but not paramount.&lt;br /&gt;
&lt;br /&gt;
The primary purpose of GNU software is to run on top of the GNU kernel, compiled with the GNU C compiler, on various types of CPU. So the kinds of portability that are absolutely necessary are quite limited. But it is important to support Linux-based GNU systems, since they are the form of GNU that is popular.&lt;br /&gt;
&lt;br /&gt;
Beyond that, it is good to support the other free operating systems (*BSD), and it is nice to support other Unix-like systems if you want to. Supporting a variety of Unix-like systems is desirable, although not paramount. It is usually not too hard, so you may as well do it. But you don’t have to consider it an obligation, if it does turn out to be hard.&lt;br /&gt;
&lt;br /&gt;
The easiest way to achieve portability to most Unix-like systems is to use Autoconf. It’s unlikely that your program needs to know more information about the host platform than Autoconf can provide, simply because most of the programs that need such knowledge have already been written.&lt;br /&gt;
&lt;br /&gt;
Avoid using the format of semi-internal data bases (e.g., directories) when there is a higher-level alternative (readdir).&lt;br /&gt;
&lt;br /&gt;
As for systems that are not like Unix, such as MSDOS, Windows, VMS, MVS, and older Macintosh systems, supporting them is often a lot of work. When that is the case, it is better to spend your time adding features that will be useful on GNU and GNU/Linux, rather than on supporting other incompatible systems.&lt;br /&gt;
&lt;br /&gt;
If you do support Windows, please do not abbreviate it as “win”. In hacker terminology, calling something a “win” is a form of praise. You’re free to praise Microsoft Windows on your own if you want, but please don’t do this in GNU packages. Instead of abbreviating “Windows” to “win”, you can write it in full or abbreviate it to “woe” or “w”. In GNU Emacs, for instance, we use ‘w32’ in file names of Windows-specific files, but the macro for Windows conditionals is called WINDOWSNT.&lt;br /&gt;
&lt;br /&gt;
It is a good idea to define the “feature test macro” _GNU_SOURCE when compiling your C files. When you compile on GNU or GNU/Linux, this will enable the declarations of GNU library extension functions, and that will usually give you a compiler error message if you define the same function names in some other way in your program. (You don’t have to actually use these functions, if you prefer to make the program more portable to other systems.)&lt;br /&gt;
&lt;br /&gt;
But whether or not you use these GNU extensions, you should avoid using their names for any other meanings. Doing so would make it hard to move your code into other GNU programs. &lt;br /&gt;
&lt;br /&gt;
https://www.gnu.org/prep/standards/html_node/System-Portability.html#System-Portability&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* CPU Portability:	  	Supporting the range of CPU types.&lt;br /&gt;
* System Functions:	  	Portability and “standard” library functions.&lt;/div&gt;</summary>
		<author><name>KD3SU</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Coding_standards&amp;diff=849</id>
		<title>Coding standards</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Coding_standards&amp;diff=849"/>
		<updated>2018-01-27T17:38:36Z</updated>

		<summary type="html">&lt;p&gt;KD3SU: misc&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==  Formatting source code ==&lt;br /&gt;
&lt;br /&gt;
Keep the length of source lines to 79 characters or less, for maximum readability in the widest range of environments.&lt;br /&gt;
&lt;br /&gt;
It is important to put the open-brace that starts the body of a C function in column one, so that they will start a defun. Several tools look for open-braces in column one to find the beginnings of C functions. These tools will not work on code not formatted that way.&lt;br /&gt;
&lt;br /&gt;
Avoid putting open-brace, open-parenthesis or open-bracket in column one when they are inside a function, so that they won’t start a defun. The open-brace that starts a struct body can go in column one if you find it useful to treat that definition as a defun.&lt;br /&gt;
&lt;br /&gt;
It is also important for function definitions to start the name of the function in column one. This helps people to search for function definitions, and may also help certain tools recognize them. Thus, using Standard C syntax, the format is this&lt;br /&gt;
&lt;br /&gt;
For more details : https://www.gnu.org/prep/standards/html_node/Formatting.html#Formatting&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
&lt;br /&gt;
Every program should start with a comment saying briefly what it is for. Example: ‘fmt - filter for simple filling of text’. This comment should be at the top of the source file containing the ‘main’ function of the program.&lt;br /&gt;
&lt;br /&gt;
Also, please write a brief comment at the start of each source file, with the file name and a line or two about the overall purpose of the file.&lt;br /&gt;
&lt;br /&gt;
Please write the comments in a GNU program in English, because English is the one language that nearly all programmers in all countries can read. If you do not write English well, please write comments in English as well as you can, then ask other people to help rewrite them. If you can’t write comments in English, please find someone to work with you and translate your comments into English.&lt;br /&gt;
&lt;br /&gt;
Please put a comment on each function saying what the function does, what sorts of arguments it gets, and what the possible values of arguments mean and are used for. It is not necessary to duplicate in words the meaning of the C argument declarations, if a C type is being used in its customary fashion. If there is anything nonstandard about its use (such as an argument of type char * which is really the address of the second character of a string, not the first), or any possible values that would not work the way one would expect (such as, that strings containing newlines are not guaranteed to work), be sure to say so.&lt;br /&gt;
&lt;br /&gt;
Also explain the significance of the return value, if there is one.&lt;br /&gt;
&lt;br /&gt;
Please put two spaces after the end of a sentence in your comments, so that the Emacs sentence commands will work. Also, please write complete sentences and capitalize the first word. If a lower-case identifier comes at the beginning of a sentence, don’t capitalize it! Changing the spelling makes it a different identifier. If you don’t like starting a sentence with a lower case letter, write the sentence differently (e.g., “The identifier lower-case is …”).&lt;br /&gt;
&lt;br /&gt;
The comment on a function is much clearer if you use the argument names to speak about the argument values. The variable name itself should be lower case, but write it in upper case when you are speaking about the value rather than the variable itself. Thus, “the inode number NODE_NUM” rather than “an inode”.&lt;br /&gt;
&lt;br /&gt;
There is usually no purpose in restating the name of the function in the comment before it, because readers can see that for themselves. There might be an exception when the comment is so long that the function itself would be off the bottom of the screen. &lt;br /&gt;
&lt;br /&gt;
See: https://www.gnu.org/prep/standards/html_node/Comments.html#Comments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntactic Conventions ==	&lt;br /&gt;
* Clean use of C constructs.&lt;br /&gt;
&lt;br /&gt;
Don’t make the program ugly just to placate static analysis tools such as lint, clang, and GCC with extra warnings options such as -Wconversion and -Wundef. These tools can help find bugs and unclear code, but they can also generate so many false alarms that it hurts readability to silence them with unnecessary casts, wrappers, and other complications. For example, please don’t insert casts to void or calls to do-nothing functions merely to pacify a lint checker.&lt;br /&gt;
&lt;br /&gt;
Declarations of external functions and functions to appear later in the source file should all go in one place near the beginning of the file (somewhere before the first function definition in the file), or else should go in a header file. Don’t put extern declarations inside functions.&lt;br /&gt;
&lt;br /&gt;
It used to be common practice to use the same local variables (with names like tem) over and over for different values within one function. Instead of doing this, it is better to declare a separate local variable for each distinct purpose, and give it a name which is meaningful. This not only makes programs easier to understand, it also facilitates optimization by good compilers. You can also move the declaration of each local variable into the smallest scope that includes all its uses. This makes the program even cleaner.&lt;br /&gt;
&lt;br /&gt;
Don’t use local variables or parameters that shadow global identifiers. GCC’s ‘-Wshadow’ option can detect this problem. &lt;br /&gt;
&lt;br /&gt;
See: https://www.gnu.org/prep/standards/html_node/Syntactic-Conventions.html#Syntactic-Conventions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Naming variables, functions, and files ==&lt;br /&gt;
&lt;br /&gt;
The names of global variables and functions in a program serve as comments of a sort. So don’t choose terse names—instead, look for names that give useful information about the meaning of the variable or function. In a GNU program, names should be English, like other comments.&lt;br /&gt;
&lt;br /&gt;
Local variable names can be shorter, because they are used only within one context, where (presumably) comments explain their purpose.&lt;br /&gt;
&lt;br /&gt;
Try to limit your use of abbreviations in symbol names. It is ok to make a few abbreviations, explain what they mean, and then use them frequently, but don’t use lots of obscure abbreviations.&lt;br /&gt;
&lt;br /&gt;
Please use underscores to separate words in a name, so that the Emacs word commands can be useful within them. Stick to lower case; reserve upper case for macros and enum constants, and for name-prefixes that follow a uniform convention.&lt;br /&gt;
&lt;br /&gt;
For example, you should use names like ignore_space_change_flag; don’t use names like iCantReadThis.&lt;br /&gt;
&lt;br /&gt;
Variables that indicate whether command-line options have been specified should be named after the meaning of the option, not after the option-letter. A comment should state both the exact meaning of the option and its letter. &lt;br /&gt;
&lt;br /&gt;
https://www.gnu.org/prep/standards/html_node/Names.html#Names&lt;br /&gt;
&lt;br /&gt;
==Portability between System Types==&lt;br /&gt;
&lt;br /&gt;
In the Unix world, “portability” refers to porting to different Unix versions. For a GNU program, this kind of portability is desirable, but not paramount.&lt;br /&gt;
&lt;br /&gt;
The primary purpose of GNU software is to run on top of the GNU kernel, compiled with the GNU C compiler, on various types of CPU. So the kinds of portability that are absolutely necessary are quite limited. But it is important to support Linux-based GNU systems, since they are the form of GNU that is popular.&lt;br /&gt;
&lt;br /&gt;
Beyond that, it is good to support the other free operating systems (*BSD), and it is nice to support other Unix-like systems if you want to. Supporting a variety of Unix-like systems is desirable, although not paramount. It is usually not too hard, so you may as well do it. But you don’t have to consider it an obligation, if it does turn out to be hard.&lt;br /&gt;
&lt;br /&gt;
The easiest way to achieve portability to most Unix-like systems is to use Autoconf. It’s unlikely that your program needs to know more information about the host platform than Autoconf can provide, simply because most of the programs that need such knowledge have already been written.&lt;br /&gt;
&lt;br /&gt;
Avoid using the format of semi-internal data bases (e.g., directories) when there is a higher-level alternative (readdir).&lt;br /&gt;
&lt;br /&gt;
As for systems that are not like Unix, such as MSDOS, Windows, VMS, MVS, and older Macintosh systems, supporting them is often a lot of work. When that is the case, it is better to spend your time adding features that will be useful on GNU and GNU/Linux, rather than on supporting other incompatible systems.&lt;br /&gt;
&lt;br /&gt;
If you do support Windows, please do not abbreviate it as “win”. In hacker terminology, calling something a “win” is a form of praise. You’re free to praise Microsoft Windows on your own if you want, but please don’t do this in GNU packages. Instead of abbreviating “Windows” to “win”, you can write it in full or abbreviate it to “woe” or “w”. In GNU Emacs, for instance, we use ‘w32’ in file names of Windows-specific files, but the macro for Windows conditionals is called WINDOWSNT.&lt;br /&gt;
&lt;br /&gt;
It is a good idea to define the “feature test macro” _GNU_SOURCE when compiling your C files. When you compile on GNU or GNU/Linux, this will enable the declarations of GNU library extension functions, and that will usually give you a compiler error message if you define the same function names in some other way in your program. (You don’t have to actually use these functions, if you prefer to make the program more portable to other systems.)&lt;br /&gt;
&lt;br /&gt;
But whether or not you use these GNU extensions, you should avoid using their names for any other meanings. Doing so would make it hard to move your code into other GNU programs. &lt;br /&gt;
&lt;br /&gt;
https://www.gnu.org/prep/standards/html_node/System-Portability.html#System-Portability&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* CPU Portability:	  	Supporting the range of CPU types.&lt;br /&gt;
* System Functions:	  	Portability and “standard” library functions.&lt;/div&gt;</summary>
		<author><name>KD3SU</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Main_Page&amp;diff=848</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Main_Page&amp;diff=848"/>
		<updated>2018-01-27T16:56:12Z</updated>

		<summary type="html">&lt;p&gt;KD3SU: typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the AllStarLink Wiki. We're gradually moving content from [http://docs.allstarlink.org docs.allstarlink.org] to this new Wiki site. &lt;br /&gt;
__NOTOC__&lt;br /&gt;
=AllStarLink Menu=&lt;br /&gt;
*[[DIAL FAQ]] - Questions and answers about the AllStarLink software distribution.&lt;br /&gt;
*[[Features]] - List of AllStarLink Features &lt;br /&gt;
*[[:Category:How to|How To's]] - A collection of AllStarLink how to's.&lt;br /&gt;
*[[:Category:Node Configuration|Node Configuration]] - Detail configuration settings.&lt;br /&gt;
*[[Radio Connections]] - Instructions to Connect Radios, Repeaters and Other Devices to AllStar.&lt;br /&gt;
&lt;br /&gt;
=Downloads=&lt;br /&gt;
* [http://dvswitch.org/files/AllStarLink/allstar-firmware-8.7.1-amd64-i386-netinst.tar.gz DIAL AMD] Latest DIAL for x86/AMD &lt;br /&gt;
* [http://dvswitch.org/files/AllStarLink/RAT_RC1.tar.gz DIAL Pi] Latest DIAL for the Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=RTCM Info=&lt;br /&gt;
The Radio Thin Client Module (RTCM) is commercially available hardware for interfacing radios to an AllStarLink computer. &lt;br /&gt;
*[[RTCM Client]] - About the RTCM hardware itself.&lt;br /&gt;
*[[RTCM Channel Driver]] - About the RTCM server software. &lt;br /&gt;
&lt;br /&gt;
=Related Links=&lt;br /&gt;
* [https://allstarlink.org/ AllStarLink Portal] - If you are looking to set up your own AllStarLink node.&lt;br /&gt;
* [http://stats.allstarlink.org/ AllStarLink Stats] - shows all the existing public nodes.&lt;br /&gt;
* [http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users AllStarLink users mailing list]- This is the app_rpt mailing list for discussion, help and helping others.&lt;br /&gt;
* [https://allstar.aargdmr.net/ Development Portal Site] - Our Portal development site. Check out the searchable and sortable [https://allstar.aargdmr.net/nodelist/ Node List].&lt;br /&gt;
* [https://github.com/AllStarLink/ Source Code] - All of the source code for the DIAL, Asterisk and app_rpt is available on GitHub. &lt;br /&gt;
&lt;br /&gt;
=History=&lt;br /&gt;
* [[History]] from the Duuude, Jim Dixon WB6NIL SK.&lt;br /&gt;
&lt;br /&gt;
=WiKi Getting started=&lt;br /&gt;
* You do not need an account on this site to use it. However, if you would like to help us document AllStar then please do request an account using the link above. &lt;br /&gt;
* Consult the [https://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Source Code=&lt;br /&gt;
* [https://github.com/AllStarLink/ Source Code] - All of the source code for the DIAL, Asterisk and app_rpt is available on GitHub. &lt;br /&gt;
&lt;br /&gt;
* [[Coding standards|C Coding standards]] Based on GNU's  &amp;quot;Making The Best Use of C&amp;quot;&lt;/div&gt;</summary>
		<author><name>KD3SU</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Main_Page&amp;diff=847</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Main_Page&amp;diff=847"/>
		<updated>2018-01-27T16:55:49Z</updated>

		<summary type="html">&lt;p&gt;KD3SU: Started adding a separate area on Allstar  Source code&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the AllStarLink Wiki. We're gradually moving content from [http://docs.allstarlink.org docs.allstarlink.org] to this new Wiki site. &lt;br /&gt;
__NOTOC__&lt;br /&gt;
=AllStarLink Menu=&lt;br /&gt;
*[[DIAL FAQ]] - Questions and answers about the AllStarLink software distribution.&lt;br /&gt;
*[[Features]] - List of AllStarLink Features &lt;br /&gt;
*[[:Category:How to|How To's]] - A collection of AllStarLink how to's.&lt;br /&gt;
*[[:Category:Node Configuration|Node Configuration]] - Detail configuration settings.&lt;br /&gt;
*[[Radio Connections]] - Instructions to Connect Radios, Repeaters and Other Devices to AllStar.&lt;br /&gt;
&lt;br /&gt;
=Downloads=&lt;br /&gt;
* [http://dvswitch.org/files/AllStarLink/allstar-firmware-8.7.1-amd64-i386-netinst.tar.gz DIAL AMD] Latest DIAL for x86/AMD &lt;br /&gt;
* [http://dvswitch.org/files/AllStarLink/RAT_RC1.tar.gz DIAL Pi] Latest DIAL for the Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=RTCM Info=&lt;br /&gt;
The Radio Thin Client Module (RTCM) is commercially available hardware for interfacing radios to an AllStarLink computer. &lt;br /&gt;
*[[RTCM Client]] - About the RTCM hardware itself.&lt;br /&gt;
*[[RTCM Channel Driver]] - About the RTCM server software. &lt;br /&gt;
&lt;br /&gt;
=Related Links=&lt;br /&gt;
* [https://allstarlink.org/ AllStarLink Portal] - If you are looking to set up your own AllStarLink node.&lt;br /&gt;
* [http://stats.allstarlink.org/ AllStarLink Stats] - shows all the existing public nodes.&lt;br /&gt;
* [http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users AllStarLink users mailing list]- This is the app_rpt mailing list for discussion, help and helping others.&lt;br /&gt;
* [https://allstar.aargdmr.net/ Development Portal Site] - Our Portal development site. Check out the searchable and sortable [https://allstar.aargdmr.net/nodelist/ Node List].&lt;br /&gt;
* [https://github.com/AllStarLink/ Source Code] - All of the source code for the DIAL, Asterisk and app_rpt is available on GitHub. &lt;br /&gt;
&lt;br /&gt;
=History=&lt;br /&gt;
* [[History]] from the Duuude, Jim Dixon WB6NIL SK.&lt;br /&gt;
&lt;br /&gt;
=WiKi Getting started=&lt;br /&gt;
* You do not need an account on this site to use it. However, if you would like to help us document AllStar then please do request an account using the link above. &lt;br /&gt;
* Consult the [https://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Source Code=&lt;br /&gt;
* [https://github.com/AllStarLink/ Source Code] - All of the source code for the DIAL, Asterisk and app_rpt is available on GitHub. &lt;br /&gt;
&lt;br /&gt;
[[Coding standards|C Coding standards]] Based on GNU's  &amp;quot;Making The Best Use of C&amp;quot;&lt;/div&gt;</summary>
		<author><name>KD3SU</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Coding_standards&amp;diff=846</id>
		<title>Coding standards</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Coding_standards&amp;diff=846"/>
		<updated>2018-01-27T16:53:18Z</updated>

		<summary type="html">&lt;p&gt;KD3SU: Added some info on C coding standards from GNU&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==  Formatting:	 ==&lt;br /&gt;
* Formatting your source code.&lt;br /&gt;
&lt;br /&gt;
Keep the length of source lines to 79 characters or less, for maximum readability in the widest range of environments.&lt;br /&gt;
&lt;br /&gt;
It is important to put the open-brace that starts the body of a C function in column one, so that they will start a defun. Several tools look for open-braces in column one to find the beginnings of C functions. These tools will not work on code not formatted that way.&lt;br /&gt;
&lt;br /&gt;
Avoid putting open-brace, open-parenthesis or open-bracket in column one when they are inside a function, so that they won’t start a defun. The open-brace that starts a struct body can go in column one if you find it useful to treat that definition as a defun.&lt;br /&gt;
&lt;br /&gt;
It is also important for function definitions to start the name of the function in column one. This helps people to search for function definitions, and may also help certain tools recognize them. Thus, using Standard C syntax, the format is this&lt;br /&gt;
&lt;br /&gt;
For more details : https://www.gnu.org/prep/standards/html_node/Formatting.html#Formatting&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
* Commenting your work.&lt;br /&gt;
Every program should start with a comment saying briefly what it is for. Example: ‘fmt - filter for simple filling of text’. This comment should be at the top of the source file containing the ‘main’ function of the program.&lt;br /&gt;
&lt;br /&gt;
Also, please write a brief comment at the start of each source file, with the file name and a line or two about the overall purpose of the file.&lt;br /&gt;
&lt;br /&gt;
Please write the comments in a GNU program in English, because English is the one language that nearly all programmers in all countries can read. If you do not write English well, please write comments in English as well as you can, then ask other people to help rewrite them. If you can’t write comments in English, please find someone to work with you and translate your comments into English.&lt;br /&gt;
&lt;br /&gt;
Please put a comment on each function saying what the function does, what sorts of arguments it gets, and what the possible values of arguments mean and are used for. It is not necessary to duplicate in words the meaning of the C argument declarations, if a C type is being used in its customary fashion. If there is anything nonstandard about its use (such as an argument of type char * which is really the address of the second character of a string, not the first), or any possible values that would not work the way one would expect (such as, that strings containing newlines are not guaranteed to work), be sure to say so.&lt;br /&gt;
&lt;br /&gt;
Also explain the significance of the return value, if there is one.&lt;br /&gt;
&lt;br /&gt;
Please put two spaces after the end of a sentence in your comments, so that the Emacs sentence commands will work. Also, please write complete sentences and capitalize the first word. If a lower-case identifier comes at the beginning of a sentence, don’t capitalize it! Changing the spelling makes it a different identifier. If you don’t like starting a sentence with a lower case letter, write the sentence differently (e.g., “The identifier lower-case is …”).&lt;br /&gt;
&lt;br /&gt;
The comment on a function is much clearer if you use the argument names to speak about the argument values. The variable name itself should be lower case, but write it in upper case when you are speaking about the value rather than the variable itself. Thus, “the inode number NODE_NUM” rather than “an inode”.&lt;br /&gt;
&lt;br /&gt;
There is usually no purpose in restating the name of the function in the comment before it, because readers can see that for themselves. There might be an exception when the comment is so long that the function itself would be off the bottom of the screen. &lt;br /&gt;
&lt;br /&gt;
https://www.gnu.org/prep/standards/html_node/Comments.html#Comments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Syntactic Conventions:	  	Clean use of C constructs.&lt;br /&gt;
* Names:	  	Naming variables, functions, and files.&lt;br /&gt;
* System Portability:	  	Portability among different operating systems.&lt;br /&gt;
* CPU Portability:	  	Supporting the range of CPU types.&lt;br /&gt;
* System Functions:	  	Portability and “standard” library functions.&lt;/div&gt;</summary>
		<author><name>KD3SU</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Coding_standards&amp;diff=845</id>
		<title>Coding standards</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Coding_standards&amp;diff=845"/>
		<updated>2018-01-27T16:51:24Z</updated>

		<summary type="html">&lt;p&gt;KD3SU: Created page with &amp;quot;==  Formatting:	 == * Formatting your source code.  Keep the length of source lines to 79 characters or less, for maximum readability in the widest range of environments.  It...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==  Formatting:	 ==&lt;br /&gt;
* Formatting your source code.&lt;br /&gt;
&lt;br /&gt;
Keep the length of source lines to 79 characters or less, for maximum readability in the widest range of environments.&lt;br /&gt;
&lt;br /&gt;
It is important to put the open-brace that starts the body of a C function in column one, so that they will start a defun. Several tools look for open-braces in column one to find the beginnings of C functions. These tools will not work on code not formatted that way.&lt;br /&gt;
&lt;br /&gt;
Avoid putting open-brace, open-parenthesis or open-bracket in column one when they are inside a function, so that they won’t start a defun. The open-brace that starts a struct body can go in column one if you find it useful to treat that definition as a defun.&lt;br /&gt;
&lt;br /&gt;
It is also important for function definitions to start the name of the function in column one. This helps people to search for function definitions, and may also help certain tools recognize them. Thus, using Standard C syntax, the format is this&lt;br /&gt;
&lt;br /&gt;
For more details : https://www.gnu.org/prep/standards/html_node/Formatting.html#Formatting&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
* Commenting your work.&lt;br /&gt;
&lt;br /&gt;
* Syntactic Conventions:	  	Clean use of C constructs.&lt;br /&gt;
* Names:	  	Naming variables, functions, and files.&lt;br /&gt;
* System Portability:	  	Portability among different operating systems.&lt;br /&gt;
* CPU Portability:	  	Supporting the range of CPU types.&lt;br /&gt;
* System Functions:	  	Portability and “standard” library functions.&lt;/div&gt;</summary>
		<author><name>KD3SU</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Main_Page&amp;diff=844</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Main_Page&amp;diff=844"/>
		<updated>2018-01-27T16:43:44Z</updated>

		<summary type="html">&lt;p&gt;KD3SU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the AllStarLink Wiki. We're gradually moving content from [http://docs.allstarlink.org docs.allstarlink.org] to this new Wiki site. &lt;br /&gt;
__NOTOC__&lt;br /&gt;
=AllStarLink Menu=&lt;br /&gt;
*[[DIAL FAQ]] - Questions and answers about the AllStarLink software distribution.&lt;br /&gt;
*[[Features]] - List of AllStarLink Features &lt;br /&gt;
*[[:Category:How to|How To's]] - A collection of AllStarLink how to's.&lt;br /&gt;
*[[:Category:Node Configuration|Node Configuration]] - Detail configuration settings.&lt;br /&gt;
*[[Radio Connections]] - Instructions to Connect Radios, Repeaters and Other Devices to AllStar.&lt;br /&gt;
&lt;br /&gt;
=Downloads=&lt;br /&gt;
* [http://dvswitch.org/files/AllStarLink/allstar-firmware-8.7.1-amd64-i386-netinst.tar.gz DIAL AMD] Latest DIAL for x86/AMD &lt;br /&gt;
* [http://dvswitch.org/files/AllStarLink/RAT_RC1.tar.gz DIAL Pi] Latest DIAL for the Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=RTCM Info=&lt;br /&gt;
The Radio Thin Client Module (RTCM) is commercially available hardware for interfacing radios to an AllStarLink computer. &lt;br /&gt;
*[[RTCM Client]] - About the RTCM hardware itself.&lt;br /&gt;
*[[RTCM Channel Driver]] - About the RTCM server software. &lt;br /&gt;
&lt;br /&gt;
=Related Links=&lt;br /&gt;
* [https://allstarlink.org/ AllStarLink Portal] - If you are looking to set up your own AllStarLink node.&lt;br /&gt;
* [http://stats.allstarlink.org/ AllStarLink Stats] - shows all the existing public nodes.&lt;br /&gt;
* [http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users AllStarLink users mailing list]- This is the app_rpt mailing list for discussion, help and helping others.&lt;br /&gt;
* [https://allstar.aargdmr.net/ Development Portal Site] - Our Portal development site. Check out the searchable and sortable [https://allstar.aargdmr.net/nodelist/ Node List].&lt;br /&gt;
* [https://github.com/AllStarLink/ Source Code] - All of the source code for the DIAL, Asterisk and app_rpt is available on GitHub. &lt;br /&gt;
&lt;br /&gt;
=History=&lt;br /&gt;
* [[History]] from the Duuude, Jim Dixon WB6NIL SK.&lt;br /&gt;
&lt;br /&gt;
=WiKi Getting started=&lt;br /&gt;
* You do not need an account on this site to use it. However, if you would like to help us document AllStar then please do request an account using the link above. &lt;br /&gt;
* Consult the [https://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Source Code=&lt;br /&gt;
* [https://github.com/AllStarLink/ Source Code] - All of the source code for the DIAL, Asterisk and app_rpt is available on GitHub. &lt;br /&gt;
* C Coding Standards&lt;/div&gt;</summary>
		<author><name>KD3SU</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Stats_Server&amp;diff=842</id>
		<title>Stats Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Stats_Server&amp;diff=842"/>
		<updated>2018-01-27T12:55:58Z</updated>

		<summary type="html">&lt;p&gt;KD3SU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Status server&lt;br /&gt;
&lt;br /&gt;
Requires graphviz&lt;br /&gt;
&lt;br /&gt;
This consists of several C programs as CGI's and uses LMDB to store data nodes post to the server. &lt;br /&gt;
&lt;br /&gt;
The source is under /usr/local/src/status &lt;br /&gt;
&lt;br /&gt;
* index.cgi - generates the code for the index page and textual output&lt;br /&gt;
* uhandler.cgi - receives the http get requests of data from the nodes and writes it to the LMDB&lt;br /&gt;
* nodeinfo.cgi - gives the per node report text page&lt;br /&gt;
* getconn.cgi - not really needed for the user interface.  ?$NODE returns text with the total number of connected nodes and the state of each connected node separated by pipes&lt;br /&gt;
* statsdb.cgi - not needed for the interface.  If the compiled in IP is matched, it will return a dump of the database.  &lt;br /&gt;
* jsondata.cgi - not needed for the interface, used for returning JSON formated node data from database.&lt;br /&gt;
* getstatus.cgi - generates the per node PNG image using getstatus and neato.  This is a bash script. &lt;br /&gt;
* graphic-status.html - used to display the big network wide graph&lt;br /&gt;
&lt;br /&gt;
These next are not publicly accessible files and are called by the system for generating the various parts of the config.  &lt;br /&gt;
&lt;br /&gt;
These must be installed under /var/www/stats-private&lt;br /&gt;
* updatenodesdb - updates the database from the registration server.  The registration server must permit this.&lt;br /&gt;
&lt;br /&gt;
* dostatus - executed from roots crontab, and makes the overall network PNG&lt;br /&gt;
&lt;br /&gt;
* mkstatslmdb - makes the raw stats LMDB if not there, might be good to run on boot &lt;br /&gt;
* mkstatus - used by dostatus, it makes the text data that neato uses to make the large graph &lt;br /&gt;
* getstatus - used by getstatus.cgi, it makes the text data neato uses to build the per node graph &lt;br /&gt;
* /var/www/stats-private/stats-lmdb - location of the LMDB database.  This should be compiled in. &lt;br /&gt;
For speed we can run the stats db on a tempfs in memory.  I've disabled this for now.  but it could be enabled in /etc/fstab.&lt;/div&gt;</summary>
		<author><name>KD3SU</name></author>
	</entry>
</feed>