Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
src/ipfrag.c | 12 ++++++------
src/ipfrag.h | 12 ------------
2 files changed, 6 insertions(+), 18 deletions(-)
diff --git a/src/ipfrag.c b/src/ipfrag.c
index a64f8e1..f31d7de 100644
--- a/src/ipfrag.c
+++ b/src/ipfrag.c
@@ -30,7 +30,7 @@ details.
static struct fragent *fraglist = NULL;
static struct fragent *fragtail = NULL;
-struct fragent *addnewdgram(struct iphdr *packet)
+static struct fragent *addnewdgram(struct iphdr *packet)
{
struct fragent *ptmp;
@@ -62,7 +62,7 @@ struct fragent *addnewdgram(struct iphdr *packet)
return ptmp;
}
-struct fragdescent *addnewhole(struct fragent *frag)
+static struct fragdescent *addnewhole(struct fragent *frag)
{
struct fragdescent *ptmp;
@@ -82,8 +82,8 @@ struct fragdescent *addnewhole(struct fragent *frag)
return ptmp;
}
-struct fragent *searchfrags(unsigned long saddr, unsigned long daddr,
- unsigned int protocol, unsigned int id)
+static struct fragent *searchfrags(unsigned long saddr, unsigned long daddr,
+ unsigned int protocol, unsigned int id)
{
struct fragent *ftmp = fraglist;
@@ -98,7 +98,7 @@ struct fragent *searchfrags(unsigned long saddr, unsigned long daddr,
return NULL;
}
-void deldgram(struct fragent *ftmp)
+static void deldgram(struct fragent *ftmp)
{
if (ftmp->prev_entry != NULL)
ftmp->prev_entry->next_entry = ftmp->next_entry;
@@ -118,7 +118,7 @@ void deldgram(struct fragent *ftmp)
* Destroy hole descriptor list
*/
-void destroyholes(struct fragent *ftmp)
+static void destroyholes(struct fragent *ftmp)
{
struct fragdescent *dtmp = ftmp->fragdesclist;
struct fragdescent *ntmp = NULL;
diff --git a/src/ipfrag.h b/src/ipfrag.h
index 910df13..c0915a4 100644
--- a/src/ipfrag.h
+++ b/src/ipfrag.h
@@ -35,19 +35,7 @@ struct fragfreelistent {
struct fragfreelist *next_entry;
};
-
-struct fragent *addnewdgram(struct iphdr *packet);
-
-struct fragdescent *addnewhole(struct fragent *frag);
-
-struct fragent *searchfrags(unsigned long saddr, unsigned long daddr,
- unsigned int protocol, unsigned int id);
-
-void deldgram(struct fragent *ftmp);
-void destroyholes(struct fragent *ftmp);
-
void destroyfraglist(void);
-
unsigned int processfragment(struct iphdr *packet, unsigned int *sport,
unsigned int *dport, int *firstin);
--
1.7.8.4