path: root/openbsc/src/libfilter
AgeCommit message (Collapse)AuthorFilesLines
2015-11-02stats: Set class_id in rate_ctr group descriptionsJacob Erlbeck1-0/+2
This commit adds the class_id initialiser to all rate_ctr_group_desc definitions. Sponsored-by: On-Waves ehf
2015-06-19build: avoid spurious hard dependency on libosmo-sccpAndreas Rottmann1-3/+0
In the libfilter source code, which is built regardless of --enable-nat, headers from libosmo-sccp were used, thus causing a build failure (see below) when building without --enable-nat, and libosmo-sccp not being installed (or being installed in a prefix not otherwise included in the build). The build fails like this: In file included from ../../../src/libfilter/bsc_msg_filter.c:27:0: ../../../include/openbsc/bsc_nat_sccp.h:27:37: fatal error: osmocom/sccp/sccp_types.h: No such file or directory As the includes seem not to be actually needed, this change fixes the issue by just omitting them.
2015-06-19Fix build wrt. missing CFLAGS constituentsAndreas Rottmann1-1/+1
When libosmo-netif and/or libosmo-abis are installed in distinct prefixes, the build failed with non-found headers.
2015-05-03bsc: Add access list filtering to the BSCHolger Hans Peter Freyther1-1/+1
2015-05-03filter: Move the con_type into the filter_stateHolger Hans Peter Freyther1-6/+6
2015-05-03filter: Move from DNAT to DFILTER categoryHolger Hans Peter Freyther1-12/+12
2015-05-03filter: Remove bsc_connection from the filter APIHolger Hans Peter Freyther1-30/+10
Remove the last occurence of NAT datastructures in the filtering module and add the ctx to the filter request structure.
2015-05-03filter: Remove nat_sccp_connection from public APIHolger Hans Peter Freyther1-8/+8
2015-05-03filter: Remove the bsc_connection from the internal functionsHolger Hans Peter Freyther1-6/+6
2015-05-03filter: Put all the parameters in a struct to avoid order issuesHolger Hans Peter Freyther1-19/+31
With the "local" and "global" list name we might pick the wrong argument. Avoid it by passing them as a struct.
2015-05-03filter: Remove NAT knowledge from auth_imsiHolger Hans Peter Freyther1-8/+17
Push back the parameters we need to pass. auth_imsi doesn't know anything about the nat now.
2015-05-03filter: Separate SCCP/BSSAP extraction and gsm48 codeHolger Hans Peter Freyther1-51/+7
For the BSC we will have the gsm48_hdr and don't need to find data within SCCP. For legacy reasons we need to initialize con_type, imsi, reject causes early on and need to do the same in the filter method.
2015-05-03filter: More renaming and remove of "NAT" from itHolger Hans Peter Freyther1-15/+15
2015-05-03filter: Rename BSC to LOCAL and NAT to GLOBALHolger Hans Peter Freyther2-4/+4
2015-05-03filter: Remove nat from bsc_nat_acc_lst and replace with msgHolger Hans Peter Freyther3-35/+35
2015-05-03filter: Cease out "struct bsc_nat" from the APIHolger Hans Peter Freyther3-18/+17
This means we need to require a talloc context and simply operate on the list. I had considered creating a structure to hold the list head but I didn't find any other members so omitted it for now.
2015-05-03filter: Move VTY code into the filter moduleHolger Hans Peter Freyther2-1/+143
2015-05-03filter: Move the access list management aroundHolger Hans Peter Freyther2-1/+118
2015-05-03filter: Move the method definition to the filter moduleHolger Hans Peter Freyther1-2/+3
Move the filter methods to the filter module. This is still only usable for the NAT and the _dt/_cr filter routines need to move back to the bsc_nat in the long run.
2015-05-03filter: Move the gsm 04.08 filter to a common placeHolger Hans Peter Freyther2-0/+452
For customer requirements we want to be able to do filtering on the BSC as well. The same messages need to be scanned and the same access-lists will be looked at. In the future we might even split traffic based on the IMSI. Begin with moving the code to a new top level directory and then renaming and removing the nat dependency.