X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=include%2Ffilter.h;h=0162d2cac5c3c363d170115282b3a6c8432c2434;hb=07495effe193ca3f73c3bf0ce417068f9ac9dcdd;hp=9fe1141eeac008aced1dab728635d16124c059c8;hpb=93d248304a68de7a8f9daf4aa74f9ee4cd27410c;p=com%2Fgs-lite.git diff --git a/include/filter.h b/include/filter.h index 9fe1141..0162d2c 100644 --- a/include/filter.h +++ b/include/filter.h @@ -1,46 +1,46 @@ -/* ------------------------------------------------ -Copyright 2014 AT&T Intellectual Property - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ------------------------------------------- */ - -/* - * filter.h: hash table function which match the interface - */ -#ifndef FILTER_H -#define FILTER_H - -/* FILTER FUNCTIONS */ -/* =============== */ - -/* The following functions are used to manage filter sets for flow - and connection filters -*/ - -struct filter { - gs_uint32_t size; - gs_uint8_t data[1]; -}; - -struct filter * ftafilter_create(gs_int32_t size); -void ftafilter_delete(struct filter * filter); -void ftafilter_add_flow ( struct filter * filter, gs_uint32_t ip, gs_uint32_t port); -void fyafilter_add_connection ( struct filter * filter, gs_uint32_t ip1, - gs_uint32_t port1, gs_uint32_t ip2, gs_uint32_t port2); -void ftafilter_rm_flow ( struct filter * filter, gs_uint32_t ip, gs_uint32_t port); -void ftafilter_rm_connection ( struct filter * filter, gs_uint32_t ip1, - gs_uint32_t port1, gs_uint32_t ip2, gs_uint32_t port2); -struct vstring * ftafilter_to_vstring(struct filter * f ); -void ftafilter_vstring_free(struct vstring * res); - - -#endif +/* ------------------------------------------------ +Copyright 2014 AT&T Intellectual Property + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ------------------------------------------- */ + +/* + * filter.h: hash table function which match the interface + */ +#ifndef FILTER_H +#define FILTER_H + +/* FILTER FUNCTIONS */ +/* =============== */ + +/* The following functions are used to manage filter sets for flow + and connection filters +*/ + +struct filter { + gs_uint32_t size; + gs_uint8_t data[1]; +}; + +struct filter * ftafilter_create(gs_int32_t size); +void ftafilter_delete(struct filter * filter); +void ftafilter_add_flow ( struct filter * filter, gs_uint32_t ip, gs_uint32_t port); +void fyafilter_add_connection ( struct filter * filter, gs_uint32_t ip1, + gs_uint32_t port1, gs_uint32_t ip2, gs_uint32_t port2); +void ftafilter_rm_flow ( struct filter * filter, gs_uint32_t ip, gs_uint32_t port); +void ftafilter_rm_connection ( struct filter * filter, gs_uint32_t ip1, + gs_uint32_t port1, gs_uint32_t ip2, gs_uint32_t port2); +struct vstring * ftafilter_to_vstring(struct filter * f ); +void ftafilter_vstring_free(struct vstring * res); + + +#endif