not only is it a signed/unsigned error, but on some architectures the
sizes of those two types are not identical, leading to a buffer overflow
on the stack. gcc-11.2 is complaining about it:
bridge.c: In function ‘ph_control’:
bridge.c:159:9: error: array subscript 2 is outside array bounds of ‘unsigned char[16]’ [-Werror=array-bounds]
159 | *d++ = c2;
| ^~~~
bridge.c:150:23: note: while referencing ‘data’
150 | unsigned char data[MISDN_HEADER_LEN+sizeof(int)+sizeof(int)];
| ^~~~
When layer 1 is down, an incomming message will now activate the
correct interface. This is required to pass a message when layer 1
is down, like PTMP interfaces.
Many users difd report problems to compile this package because
they had installed different versions of the autotools.
From now it is not longer possible to compile this package without
having autotools installed.
You can generate the the autotool files simply with running 'make'.
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
--Boundary-01=_TmXdPquVkL/6TeR
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
We were passing the pointer size instead of the structure size.
cppcheck reported:
[bridge/bridge.c:547]: (warning) Using size of pointer mISDNport instead of size of its data.
Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
The timerdevice should be accessible for a special group, you
can select the group via --with-mISDN_group=<group name> during
configure, default is dialout.
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
Now applications can hookup their own debug functions.
Also special functions for memory allocation and thread
creations can be supplield.
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
On older kernel versions or glibc header code AF_ISDN do not exist and maybe
we need to use a different address famely number.
Now autoconf check this and you can supply a default number for AF_ISDN.
Applications can allow other numbers as parameter as well, see examples/testlayer3.c
how to do that.
Signed-off-by: Karsten Keil <keil@b1-systems.de>
- includes now in a mISDN subdir
- add miising files to recreate without having autoconf and automake installed
Signed-off-by: Karsten Keil <keil@b1-systems.de>
Fixed port number in isdnbridge.
modified: Makefile
modified: bridge/bridge.c
modified: include/mISDNif.h
modified: l1oip/l1oipctrl.c
modified: tools/info.c
now the bridig util is ready. to bridge, just say:
isdnbridge <port1> <port2>
and they will be bridged. very usefull for L1oIP.
modified: Makefile
new file: bridge/Makefile
new file: bridge/bridge.c