Converted the router demo license to Expat license, consistent with all the other demo licenses (permissive license) after requesting permission from the authors. "As to the license, you can change it to whatever you think is better, we certainly have no objections whatsoever. Wish you all the best in your mission. Andriy"
This commit is contained in:
@@ -1,18 +1,30 @@
|
|||||||
/*
|
/**
|
||||||
Copyright (C) 2012 Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
* @file
|
||||||
|
* @author Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
||||||
This program is free software: you can redistribute it and/or modify
|
* @date 2012
|
||||||
it under the terms of the GNU General Public License as published by
|
* @brief Datalink IP module
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
*
|
||||||
(at your option) any later version.
|
* @section LICENSE
|
||||||
|
*
|
||||||
This program is distributed in the hope that it will be useful,
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* a copy of this software and associated documentation files (the
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* "Software"), to deal in the Software without restriction, including
|
||||||
GNU General Public License for more details.
|
* without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
You should have received a copy of the GNU General Public License
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included
|
||||||
|
* in all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -1,18 +1,30 @@
|
|||||||
/*
|
/**
|
||||||
Copyright (C) 2012 Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
* @file
|
||||||
|
* @author Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
||||||
This program is free software: you can redistribute it and/or modify
|
* @date 2012
|
||||||
it under the terms of the GNU General Public License as published by
|
* @brief Datalink IP module
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
*
|
||||||
(at your option) any later version.
|
* @section LICENSE
|
||||||
|
*
|
||||||
This program is distributed in the hope that it will be useful,
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* a copy of this software and associated documentation files (the
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* "Software"), to deal in the Software without restriction, including
|
||||||
GNU General Public License for more details.
|
* without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
You should have received a copy of the GNU General Public License
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included
|
||||||
|
* in all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
#ifndef UDPMODULE_H
|
#ifndef UDPMODULE_H
|
||||||
#define UDPMODULE_H
|
#define UDPMODULE_H
|
||||||
|
|||||||
@@ -1,18 +1,33 @@
|
|||||||
/*
|
/**
|
||||||
Copyright (C) 2012 Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
* @file
|
||||||
|
* @author Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
||||||
This program is free software: you can redistribute it and/or modify
|
* @date 2012
|
||||||
it under the terms of the GNU General Public License as published by
|
* @brief BACnet/IP to MS/TP Router example application.
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
* The Router connects two or more BACnet/IP and BACnet MS/TP networks.
|
||||||
(at your option) any later version.
|
* Number of netwoks is limited only by available hardware communication
|
||||||
|
* devices (or ports for Ethernet).
|
||||||
This program is distributed in the hope that it will be useful,
|
*
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* @section LICENSE
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
*
|
||||||
GNU General Public License for more details.
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
* a copy of this software and associated documentation files (the
|
||||||
You should have received a copy of the GNU General Public License
|
* "Software"), to deal in the Software without restriction, including
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
* the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included
|
||||||
|
* in all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
@@ -1,18 +1,30 @@
|
|||||||
/*
|
/**
|
||||||
Copyright (C) 2012 Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
* @file
|
||||||
|
* @author Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
||||||
This program is free software: you can redistribute it and/or modify
|
* @date 2012
|
||||||
it under the terms of the GNU General Public License as published by
|
* @brief Message queue module
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
*
|
||||||
(at your option) any later version.
|
* @section LICENSE
|
||||||
|
*
|
||||||
This program is distributed in the hope that it will be useful,
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* a copy of this software and associated documentation files (the
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* "Software"), to deal in the Software without restriction, including
|
||||||
GNU General Public License for more details.
|
* without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
You should have received a copy of the GNU General Public License
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included
|
||||||
|
* in all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|||||||
@@ -1,18 +1,30 @@
|
|||||||
/*
|
/**
|
||||||
Copyright (C) 2012 Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
* @file
|
||||||
|
* @author Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
||||||
This program is free software: you can redistribute it and/or modify
|
* @date 2012
|
||||||
it under the terms of the GNU General Public License as published by
|
* @brief Message queue module
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
*
|
||||||
(at your option) any later version.
|
* @section LICENSE
|
||||||
|
*
|
||||||
This program is distributed in the hope that it will be useful,
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* a copy of this software and associated documentation files (the
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* "Software"), to deal in the Software without restriction, including
|
||||||
GNU General Public License for more details.
|
* without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
You should have received a copy of the GNU General Public License
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included
|
||||||
|
* in all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
#ifndef MSGQUEUE_H
|
#ifndef MSGQUEUE_H
|
||||||
#define MSGQUEUE_H
|
#define MSGQUEUE_H
|
||||||
|
|||||||
@@ -1,18 +1,30 @@
|
|||||||
/*
|
/**
|
||||||
Copyright (C) 2012 Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
* @file
|
||||||
|
* @author Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
||||||
This program is free software: you can redistribute it and/or modify
|
* @date 2012
|
||||||
it under the terms of the GNU General Public License as published by
|
* @brief Datalink for MS/TP module
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
*
|
||||||
(at your option) any later version.
|
* @section LICENSE
|
||||||
|
*
|
||||||
This program is distributed in the hope that it will be useful,
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* a copy of this software and associated documentation files (the
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* "Software"), to deal in the Software without restriction, including
|
||||||
GNU General Public License for more details.
|
* without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
You should have received a copy of the GNU General Public License
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included
|
||||||
|
* in all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -1,18 +1,30 @@
|
|||||||
/*
|
/**
|
||||||
Copyright (C) 2012 Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
* @file
|
||||||
|
* @author Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
||||||
This program is free software: you can redistribute it and/or modify
|
* @date 2012
|
||||||
it under the terms of the GNU General Public License as published by
|
* @brief Datalink for MS/TP module
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
*
|
||||||
(at your option) any later version.
|
* @section LICENSE
|
||||||
|
*
|
||||||
This program is distributed in the hope that it will be useful,
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* a copy of this software and associated documentation files (the
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* "Software"), to deal in the Software without restriction, including
|
||||||
GNU General Public License for more details.
|
* without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
You should have received a copy of the GNU General Public License
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included
|
||||||
|
* in all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
#ifndef MSTPMODULE_H
|
#ifndef MSTPMODULE_H
|
||||||
#define MSTPMODULE_H
|
#define MSTPMODULE_H
|
||||||
|
|||||||
@@ -1,18 +1,30 @@
|
|||||||
/*
|
/**
|
||||||
Copyright (C) 2012 Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
* @file
|
||||||
|
* @author Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
||||||
This program is free software: you can redistribute it and/or modify
|
* @date 2012
|
||||||
it under the terms of the GNU General Public License as published by
|
* @brief Network layer for BACnet routing
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
*
|
||||||
(at your option) any later version.
|
* @section LICENSE
|
||||||
|
*
|
||||||
This program is distributed in the hope that it will be useful,
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* a copy of this software and associated documentation files (the
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* "Software"), to deal in the Software without restriction, including
|
||||||
GNU General Public License for more details.
|
* without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
You should have received a copy of the GNU General Public License
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included
|
||||||
|
* in all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -1,18 +1,30 @@
|
|||||||
/*
|
/**
|
||||||
Copyright (C) 2012 Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
* @file
|
||||||
|
* @author Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
||||||
This program is free software: you can redistribute it and/or modify
|
* @date 2012
|
||||||
it under the terms of the GNU General Public License as published by
|
* @brief Network layer for BACnet routing
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
*
|
||||||
(at your option) any later version.
|
* @section LICENSE
|
||||||
|
*
|
||||||
This program is distributed in the hope that it will be useful,
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* a copy of this software and associated documentation files (the
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* "Software"), to deal in the Software without restriction, including
|
||||||
GNU General Public License for more details.
|
* without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
You should have received a copy of the GNU General Public License
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included
|
||||||
|
* in all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
#ifndef NETWORK_LAYER_H
|
#ifndef NETWORK_LAYER_H
|
||||||
#define NETWORK_LAYER_H
|
#define NETWORK_LAYER_H
|
||||||
|
|||||||
@@ -1,18 +1,30 @@
|
|||||||
/*
|
/**
|
||||||
Copyright (C) 2012 Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
* @file
|
||||||
|
* @author Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
||||||
This program is free software: you can redistribute it and/or modify
|
* @date 2012
|
||||||
it under the terms of the GNU General Public License as published by
|
* @brief Network port storage and handling
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
*
|
||||||
(at your option) any later version.
|
* @section LICENSE
|
||||||
|
*
|
||||||
This program is distributed in the hope that it will be useful,
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* a copy of this software and associated documentation files (the
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* "Software"), to deal in the Software without restriction, including
|
||||||
GNU General Public License for more details.
|
* without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
You should have received a copy of the GNU General Public License
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included
|
||||||
|
* in all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -1,18 +1,30 @@
|
|||||||
/*
|
/**
|
||||||
Copyright (C) 2012 Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
* @file
|
||||||
|
* @author Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
||||||
This program is free software: you can redistribute it and/or modify
|
* @date 2012
|
||||||
it under the terms of the GNU General Public License as published by
|
* @brief Network port storage and handling
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
*
|
||||||
(at your option) any later version.
|
* @section LICENSE
|
||||||
|
*
|
||||||
This program is distributed in the hope that it will be useful,
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* a copy of this software and associated documentation files (the
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* "Software"), to deal in the Software without restriction, including
|
||||||
GNU General Public License for more details.
|
* without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
You should have received a copy of the GNU General Public License
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included
|
||||||
|
* in all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
#ifndef PORTTHREAD_H
|
#ifndef PORTTHREAD_H
|
||||||
#define PORTTHREAD_H
|
#define PORTTHREAD_H
|
||||||
|
|||||||
@@ -11,19 +11,24 @@ Number of netwoks is limited only by available hardware communication devices (o
|
|||||||
|
|
||||||
Copyright (C) 2012 Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
Copyright (C) 2012 Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
it under the terms of the GNU General Public License as published by
|
a copy of this software and associated documentation files (the
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
"Software"), to deal in the Software without restriction, including
|
||||||
(at your option) any later version.
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
The above copyright notice and this permission notice shall be included
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
in all copies or substantial portions of the Software.
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
-----------------------
|
-----------------------
|
||||||
3. Build
|
3. Build
|
||||||
@@ -93,7 +98,7 @@ mstp arguments:
|
|||||||
|
|
||||||
4.3. Example of configuration file.
|
4.3. Example of configuration file.
|
||||||
|
|
||||||
ports =
|
ports =
|
||||||
(
|
(
|
||||||
{
|
{
|
||||||
device_type = "bip";
|
device_type = "bip";
|
||||||
@@ -112,7 +117,7 @@ mstp arguments:
|
|||||||
device = "eth1";
|
device = "eth1";
|
||||||
port = 47809;
|
port = 47809;
|
||||||
network = 3;
|
network = 3;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
device_type = "mstp";
|
device_type = "mstp";
|
||||||
device = "/dev/ttyS0";
|
device = "/dev/ttyS0";
|
||||||
|
|||||||
Reference in New Issue
Block a user