[PATCH 11/11] input: add generic PCAP interface for LAPD

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Hans Peter Freyther holger at freyther.de
Thu Aug 23 07:24:53 UTC 2012


On Wed, Aug 22, 2012 at 05:04:53PM +0200, pablo at gnumonks.org wrote:
> From: Pablo Neira Ayuso <pablo at gnumonks.org>
> 
> This patch allows you to create PCAP traces between the BSC and BTS including
> the LAPD frames. Useful for debugging communication issues.

nice!

> +	if (write(fd, &pcap_header, sizeof(pcap_header)) < 0) {

!= sizeof(pcap_header)?

> +
> +	ret = write(fd, buf, numbytes);
> +	if (ret < 0) {

ret != numbytes?




More information about the OpenBSC mailing list