Commit Graph

37 Commits

Author SHA1 Message Date
Harald Welte 4d45ae8289 bridge.c: Fix some int vs. unsigned long type error
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)];
      |                       ^~~~
2022-03-13 14:53:24 +01:00
Andreas Eversberg 1dc4c24d27 Fix: misdn_bridge now activates correct interface when L1 is down
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.
2012-12-21 22:16:32 +01:00
Karsten Keil 41a71dba03 More warning fixes
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-09-13 14:45:47 +02:00
Karsten Keil debd47d018 Remove autogenerated files
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>
2012-08-02 12:46:39 +02:00
Karsten Keil 7c5fb25ef2 Version 2.0.14
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-07-26 15:16:28 +02:00
Karsten Keil 28e7f4552f Handle changed type for capi_mod.h IsInstalled member
Version 2.0.12

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-11 17:51:39 +02:00
Thomas Jarosch d129f9a272 Fix wrong argument to sizeof() call inside memset()
--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>
2012-05-02 16:12:37 +02:00
Karsten Keil 5e14de863d Version 2.0.7
- Fix autotool files

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-01-31 08:51:42 +01:00
Karsten Keil cc27afc5e4 More helper for debuging memory leaks
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-01-30 19:05:08 +01:00
Karsten Keil fd246f6bbb Autotool changes
Version 2.0.6

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-12-10 08:50:04 +01:00
Karsten Keil 07ef547eb9 Install a udev rules file for mISDN
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>
2011-12-06 17:27:41 +01:00
Karsten Keil b71e632fd9 Many fixes 2011-11-27 23:03:46 +01:00
Karsten Keil c597f456b5 CAPI 2.0 for voice
The CAPI 2.0 interface now allows voice calls and
fax with capifax (with spandsp).

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-10-28 12:58:42 +02:00
Karsten Keil 17db3354b5 New debug interface for applications
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>
2011-09-21 15:30:57 +02:00
Karsten Keil 24fa48710d Update autotool generated files
Signed-off-by: Karsten Keil <keil@b1-systems.de>
2011-04-26 19:09:55 +02:00
Jan Engelhardt 3cbafc4816 gitignore: split according to own comment
The top-level .gitignore recommends to split the filelist, but did not
do so. Follow up on it.

Signed-off-by: Karsten Keil <keil@b1-systems.de>
2011-04-26 18:57:03 +02:00
Karsten Keil 449135e23f New compatibility handling
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>
2010-02-17 18:35:11 +01:00
Karsten Keil 91ff3bd05c Make distcheck happy
Enhance autotool files to pass make distcheck and allow VPATH builds

Signed-off-by: Karsten Keil <keil@b1-systems.de>
2010-02-14 19:54:50 +01:00
Karsten Keil a4ca867fe5 Add automake support for GUI Tools
Signed-off-by: Karsten Keil <keil@b1-systems.de>
2010-02-14 18:41:18 +01:00
Karsten Keil d20499cf69 Changes for autotools
- 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>
2010-02-11 17:13:38 +01:00
Karsten Keil 2eeeed5ca5 Use GNU autotools
First steps to use automake, autoconf and libtool

Signed-off-by: Karsten Keil <keil@b1-systems.de>
2010-02-11 17:01:00 +01:00
Andreas Eversberg 1f3b3c4286 Corrected some output text of bridge.c.
Fixed some layer2-link notifications.

	modified:   bridge/bridge.c
	modified:   lib/layer3.c
2008-09-14 14:39:18 +02:00
Andreas Eversberg 7c532c75f3 Fixed l1oipctrl. It is tested and works.
Fixed port number in isdnbridge.

	modified:   Makefile
	modified:   bridge/bridge.c
	modified:   include/mISDNif.h
	modified:   l1oip/l1oipctrl.c
	modified:   tools/info.c
2008-09-14 12:31:43 +02:00
Karsten Keil c74043c802 rename layer3->lib 2008-09-01 14:38:54 +02:00
Matthias Urlichs e330f3aa2f More zero-based-device-number fixes 2008-08-23 18:33:30 +02:00
Karsten Keil 900ac102e4 compatibility to new kernel core
- It detects AF_ISDN on runtime now
- fixed channelmap.
2008-08-01 00:56:51 +02:00
Super User f9ec0830bc added HDLC briding option for isdnbride.
modified:   bridge/bridge.c
2008-07-26 13:58:09 +02:00
Super User 21f71c039b removed garbage
modified:   bridge/bridge.c
2008-06-28 10:13:49 +02:00
Super User 90ba40f07e small fix in bridge.c 2008-06-26 21:17:06 +02:00
Super User fe198f27c5 fix
modified:   bridge/bridge.c
	modified:   include/mISDNif.h
2008-05-11 20:30:54 +02:00
Super User c5c76efcbc layer 1 bridge works now.
modified:   bridge/bridge.c
2008-05-11 16:36:44 +02:00
Super User 735e5a4497 ported misdnbrige (not tested yet)
modified:   Makefile
	modified:   bridge/Makefile
	modified:   bridge/bridge.c
2008-05-10 21:41:18 +02:00
Super User 585ce2c6ea briding now uses conference id: 0xuuuuppppp
p = pid
u = user defined id
2007-05-27 22:42:24 +02:00
Super User 8c0004b593 remove obsolete card types 2007-05-27 22:35:49 +02:00
nadi 7e80b25440 Fixes for compiling against mISDN master branch (only). 2007-05-21 15:39:14 +02:00
Super User d40d0e86c9 Jolly:
Added debug option for isdnbridge.

	modified:   bridge/bridge.c
2007-04-15 12:09:27 +02:00
Super User 65a34a749f Jolly:
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
2007-04-14 13:32:18 +02:00