[svn-commits] mattf: branch mattf/bug13495 r273 - /team/mattf/bug13495/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Dec 18 16:55:36 CST 2009
Author: mattf
Date: Fri Dec 18 16:55:34 2009
New Revision: 273
URL: http://svnview.digium.com/svn/libss7?view=rev&rev=273
Log:
Add a function to invalidate a masquerade route table entry
Modified:
team/mattf/bug13495/isup_masq.c
team/mattf/bug13495/libss7.h
team/mattf/bug13495/ss7.c
Modified: team/mattf/bug13495/isup_masq.c
URL: http://svnview.digium.com/svn/libss7/team/mattf/bug13495/isup_masq.c?view=diff&rev=273&r1=272&r2=273
==============================================================================
--- team/mattf/bug13495/isup_masq.c (original)
+++ team/mattf/bug13495/isup_masq.c Fri Dec 18 16:55:34 2009
@@ -253,6 +253,21 @@
return res;
}
+int isup_masquerade_clear_route_fd(struct ss7 *ss7, int oldfd)
+{
+ struct isup_masq *masq_table = &ss7->isup_masq_table;
+ int i;
+
+ for (i = 0; i < masq_table->numentries; i++) {
+ if (masq_table->routes[i].mtp2->fd == oldfd) {
+ masq_table->routes[i].mtp2->fd = -1;
+ return 0;
+ }
+ }
+
+ return -1;
+}
+
int isup_masquerade_set_route_fd(struct ss7 *ss7, int fd, int startcic, int endcic, unsigned int opc)
{
struct isup_masq *masq_table = &ss7->isup_masq_table;
Modified: team/mattf/bug13495/libss7.h
URL: http://svnview.digium.com/svn/libss7/team/mattf/bug13495/libss7.h?view=diff&rev=273&r1=272&r2=273
==============================================================================
--- team/mattf/bug13495/libss7.h (original)
+++ team/mattf/bug13495/libss7.h Fri Dec 18 16:55:34 2009
@@ -615,4 +615,6 @@
int isup_masquerade_set_route_fd(struct ss7 *ss7, int fd, int startcic, int endcic, unsigned int opc);
+int isup_masquerade_clear_route_fd(struct ss7 *ss7, int fd);
+
#endif /* _LIBSS7_H */
Modified: team/mattf/bug13495/ss7.c
URL: http://svnview.digium.com/svn/libss7/team/mattf/bug13495/ss7.c?view=diff&rev=273&r1=272&r2=273
==============================================================================
--- team/mattf/bug13495/ss7.c (original)
+++ team/mattf/bug13495/ss7.c Fri Dec 18 16:55:34 2009
@@ -183,9 +183,14 @@
return mtp3_process_event(ss7, e);
}
+static void ss7_master_thread(void * vss7)
+{
+}
+
int ss7_start(struct ss7 *ss7)
{
mtp3_start(ss7);
+ pthread_create(
return 0;
}
More information about the svn-commits
mailing list