Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
bwmtools
bwmtools
Commits
b5658720
Commit
b5658720
authored
Feb 01, 2006
by
Nigel Kukard
Browse files
* Fixed various gcc4 issues, including one error and half a gazillion warnings
* Updated copyright info to 2006
parent
a4fccdf2
Changes
42
Expand all
Hide whitespace changes
Inline
Side-by-side
Makefile.am
View file @
b5658720
#
# makefile.am - Makefile for BWM Tools
# Copyright (C) 2003-200
5
, Linux Based Systems Design
# Copyright (C) 2003-200
6
, Linux Based Systems Design
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
Makefile.in
View file @
b5658720
# Makefile.in generated by automake 1.9.
1
from Makefile.am.
# Makefile.in generated by automake 1.9.
6
from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004
, 2005
Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
...
...
@@ -16,7 +16,7 @@
#
# makefile.am - Makefile for BWM Tools
# Copyright (C) 2003-200
5
, Linux Based Systems Design
# Copyright (C) 2003-200
6
, Linux Based Systems Design
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -274,7 +274,13 @@ uninstall-info-am:
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS)
:
@
set
fnord
$$
MAKEFLAGS
;
amf
=
$$
2
;
\
@
failcom
=
'exit 1'
;
\
for
f
in
x
$$
MAKEFLAGS
;
do
\
case
$$
f
in
\
*
=
*
|
--
[!
k]
*
);;
\
*
k
*
)
failcom
=
'fail=yes'
;;
\
esac
;
\
done
;
\
dot_seen
=
no
;
\
target
=
`
echo
$@
|
sed
s/-recursive//
`
;
\
list
=
'
$(SUBDIRS)
'
;
for
subdir
in
$$
list
;
do
\
...
...
@@ -286,7 +292,7 @@ $(RECURSIVE_TARGETS):
local_target
=
"
$$
target"
;
\
fi
;
\
(
cd
$$
subdir
&&
$(MAKE)
$(AM_MAKEFLAGS)
$$
local_target
)
\
||
case
"
$$
amf"
in
*
=
*
)
exit
1
;;
*
k
*
)
fail
=
yes
;;
*
)
exit
1
;;
esac
;
\
||
eval
$$
failcom
;
\
done
;
\
if
test
"
$$
dot_seen"
=
"no"
;
then
\
$(MAKE)
$(AM_MAKEFLAGS)
"
$$
target-am"
||
exit
1
;
\
...
...
@@ -294,7 +300,13 @@ $(RECURSIVE_TARGETS):
mostlyclean-recursive
clean-recursive
distclean-recursive
\
maintainer-clean-recursive
:
@
set
fnord
$$
MAKEFLAGS
;
amf
=
$$
2
;
\
@
failcom
=
'exit 1'
;
\
for
f
in
x
$$
MAKEFLAGS
;
do
\
case
$$
f
in
\
*
=
*
|
--
[!
k]
*
);;
\
*
k
*
)
failcom
=
'fail=yes'
;;
\
esac
;
\
done
;
\
dot_seen
=
no
;
\
case
"
$@
"
in
\
distclean-
*
|
maintainer-clean-
*
)
list
=
'
$(DIST_SUBDIRS)
'
;;
\
...
...
@@ -315,7 +327,7 @@ maintainer-clean-recursive:
local_target
=
"
$$
target"
;
\
fi
;
\
(
cd
$$
subdir
&&
$(MAKE)
$(AM_MAKEFLAGS)
$$
local_target
)
\
||
case
"
$$
amf"
in
*
=
*
)
exit
1
;;
*
k
*
)
fail
=
yes
;;
*
)
exit
1
;;
esac
;
\
||
eval
$$
failcom
;
\
done
&&
test
-z
"
$$
fail"
tags-recursive
:
list
=
'
$(SUBDIRS)
'
;
for
subdir
in
$$
list
;
do
\
...
...
aclocal.m4
View file @
b5658720
This diff is collapsed.
Click to expand it.
bwm_firewall/Makefile.am
View file @
b5658720
#
# makefile.am - Makefile for BWM Firewall
# Copyright (C) 2003-200
5
, Linux Based Systems Design
# Copyright (C) 2003-200
6
, Linux Based Systems Design
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
bwm_firewall/Makefile.in
View file @
b5658720
# Makefile.in generated by automake 1.9.
1
from Makefile.am.
# Makefile.in generated by automake 1.9.
6
from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004
, 2005
Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
...
...
@@ -16,7 +16,7 @@
#
# makefile.am - Makefile for BWM Firewall
# Copyright (C) 2003-200
5
, Linux Based Systems Design
# Copyright (C) 2003-200
6
, Linux Based Systems Design
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -32,8 +32,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
SOURCES
=
$(bwm_firewall_SOURCES)
srcdir
=
@srcdir@
top_srcdir
=
@top_srcdir@
VPATH
=
@srcdir@
...
...
@@ -77,11 +75,11 @@ depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe
=
depfiles
COMPILE
=
$(CC)
$(DEFS)
$(DEFAULT_INCLUDES)
$(INCLUDES)
$(AM_CPPFLAGS)
\
$(CPPFLAGS)
$(AM_CFLAGS)
$(CFLAGS)
LTCOMPILE
=
$(LIBTOOL)
--mode
=
compile
--tag
=
CC
$(CC)
$(DEFS)
\
LTCOMPILE
=
$(LIBTOOL)
--tag
=
CC
--mode
=
compile
$(CC)
$(DEFS)
\
$(DEFAULT_INCLUDES)
$(INCLUDES)
$(AM_CPPFLAGS)
$(CPPFLAGS)
\
$(AM_CFLAGS)
$(CFLAGS)
CCLD
=
$(CC)
LINK
=
$(LIBTOOL)
--mode
=
link
--tag
=
CC
$(CCLD)
$(AM_CFLAGS)
$(CFLAGS)
\
LINK
=
$(LIBTOOL)
--
tag
=
CC
--
mode
=
link
$(CCLD)
$(AM_CFLAGS)
$(CFLAGS)
\
$(AM_LDFLAGS)
$(LDFLAGS)
-o
$@
SOURCES
=
$(bwm_firewall_SOURCES)
DIST_SOURCES
=
$(bwm_firewall_SOURCES)
...
...
bwm_firewall/bwm_firewall.c
View file @
b5658720
/*
* bwm_firewall.c - BWM Firewall
* Copyright (C) 2003-200
5
, Linux Based Systems Design
* Copyright (C) 2003-200
6
, Linux Based Systems Design
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -344,7 +344,7 @@ int main (int argc, char **argv)
};
printf
(
"BWM Firewall v%s - Copyright (c) 2003-200
5
Linux Based Systems Design
\n\n
"
,
PACKAGE_VERSION
);
printf
(
"BWM Firewall v%s - Copyright (c) 2003-200
6
Linux Based Systems Design
\n\n
"
,
PACKAGE_VERSION
);
// Check if we have no args
if
(
argc
==
1
)
...
...
bwm_firewall/bwm_firewall.h
View file @
b5658720
/*
* bwm_firewall.h - BWM Firewall headers
* Copyright (C) 2003-200
5
, Linux Based Systems Design
* Copyright (C) 2003-200
6
, Linux Based Systems Design
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
bwm_graph/Makefile.am
View file @
b5658720
#
# makefile.am - Makefile for BWM Graph
# Copyright (C) 2003-200
5
, Linux Based Systems Design
# Copyright (C) 2003-200
6
, Linux Based Systems Design
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
bwm_graph/Makefile.in
View file @
b5658720
# Makefile.in generated by automake 1.9.
1
from Makefile.am.
# Makefile.in generated by automake 1.9.
6
from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004
, 2005
Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
...
...
@@ -16,7 +16,7 @@
#
# makefile.am - Makefile for BWM Graph
# Copyright (C) 2003-200
5
, Linux Based Systems Design
# Copyright (C) 2003-200
6
, Linux Based Systems Design
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -32,8 +32,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
SOURCES
=
$(bwm_graph_SOURCES)
srcdir
=
@srcdir@
top_srcdir
=
@top_srcdir@
VPATH
=
@srcdir@
...
...
@@ -78,11 +76,11 @@ depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe
=
depfiles
COMPILE
=
$(CC)
$(DEFS)
$(DEFAULT_INCLUDES)
$(INCLUDES)
$(AM_CPPFLAGS)
\
$(CPPFLAGS)
$(AM_CFLAGS)
$(CFLAGS)
LTCOMPILE
=
$(LIBTOOL)
--mode
=
compile
--tag
=
CC
$(CC)
$(DEFS)
\
LTCOMPILE
=
$(LIBTOOL)
--tag
=
CC
--mode
=
compile
$(CC)
$(DEFS)
\
$(DEFAULT_INCLUDES)
$(INCLUDES)
$(AM_CPPFLAGS)
$(CPPFLAGS)
\
$(AM_CFLAGS)
$(CFLAGS)
CCLD
=
$(CC)
LINK
=
$(LIBTOOL)
--mode
=
link
--tag
=
CC
$(CCLD)
$(AM_CFLAGS)
$(CFLAGS)
\
LINK
=
$(LIBTOOL)
--
tag
=
CC
--
mode
=
link
$(CCLD)
$(AM_CFLAGS)
$(CFLAGS)
\
$(AM_LDFLAGS)
$(LDFLAGS)
-o
$@
SOURCES
=
$(bwm_graph_SOURCES)
DIST_SOURCES
=
$(bwm_graph_SOURCES)
...
...
bwm_graph/bwm_graph.c
View file @
b5658720
/*
* bwm_graph.c - BWM Graph
* Copyright (C) 2003-200
5
, Linux Based Systems Design
* Copyright (C) 2003-200
6
, Linux Based Systems Design
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -97,7 +97,7 @@ int main(int argc, char **argv)
return
1
;
}
printf
(
"BWM Graph v%s - Copyright (c) 2003-200
5
Linux Based Systems Design
\n\n
"
,
PACKAGE_VERSION
);
printf
(
"BWM Graph v%s - Copyright (c) 2003-200
6
Linux Based Systems Design
\n\n
"
,
PACKAGE_VERSION
);
// Print out help
if
(
argc
==
1
)
...
...
bwm_graph/graph.c
View file @
b5658720
/*
* graph.c - BWM Graph functions
* Copyright (C) 2003-200
5
, Linux Based Systems Design
* Copyright (C) 2003-200
6
, Linux Based Systems Design
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
bwm_graph/graph.h
View file @
b5658720
/*
* graph.c - BWM Graph functions header file
* Copyright (C) 2003-200
5
, Linux Based Systems Design
* Copyright (C) 2003-200
6
, Linux Based Systems Design
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
bwm_monitor/Makefile.am
View file @
b5658720
#
# makefile.am - Makefile for BWM Monitor
# Copyright (C) 2003-200
5
, Linux Based Systems Design
# Copyright (C) 2003-200
6
, Linux Based Systems Design
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
bwm_monitor/Makefile.in
View file @
b5658720
# Makefile.in generated by automake 1.9.
1
from Makefile.am.
# Makefile.in generated by automake 1.9.
6
from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004
, 2005
Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
...
...
@@ -16,7 +16,7 @@
#
# makefile.am - Makefile for BWM Monitor
# Copyright (C) 2003-200
5
, Linux Based Systems Design
# Copyright (C) 2003-200
6
, Linux Based Systems Design
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -32,8 +32,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
SOURCES
=
$(bwm_monitor_SOURCES)
srcdir
=
@srcdir@
top_srcdir
=
@top_srcdir@
VPATH
=
@srcdir@
...
...
@@ -78,11 +76,11 @@ depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe
=
depfiles
COMPILE
=
$(CC)
$(DEFS)
$(DEFAULT_INCLUDES)
$(INCLUDES)
$(AM_CPPFLAGS)
\
$(CPPFLAGS)
$(AM_CFLAGS)
$(CFLAGS)
LTCOMPILE
=
$(LIBTOOL)
--mode
=
compile
--tag
=
CC
$(CC)
$(DEFS)
\
LTCOMPILE
=
$(LIBTOOL)
--tag
=
CC
--mode
=
compile
$(CC)
$(DEFS)
\
$(DEFAULT_INCLUDES)
$(INCLUDES)
$(AM_CPPFLAGS)
$(CPPFLAGS)
\
$(AM_CFLAGS)
$(CFLAGS)
CCLD
=
$(CC)
LINK
=
$(LIBTOOL)
--mode
=
link
--tag
=
CC
$(CCLD)
$(AM_CFLAGS)
$(CFLAGS)
\
LINK
=
$(LIBTOOL)
--
tag
=
CC
--
mode
=
link
$(CCLD)
$(AM_CFLAGS)
$(CFLAGS)
\
$(AM_LDFLAGS)
$(LDFLAGS)
-o
$@
SOURCES
=
$(bwm_monitor_SOURCES)
DIST_SOURCES
=
$(bwm_monitor_SOURCES)
...
...
bwm_monitor/bwm_monitor.c
View file @
b5658720
/*
* bwm_monitor.c - BWM Monitor
* Copyright (C) 2003-200
5
, Linux Based Systems Design
* Copyright (C) 2003-200
6
, Linux Based Systems Design
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -312,7 +312,7 @@ int main(int argc, char *argv[])
// Set our main screen
wbkgdset
(
w_main
,
COLOR_PAIR
(
2
)
|
' '
);
fill_window
(
w_main
);
windowTitle
(
w_main
,
3
,
2
,
0
,
2
,
"BWM Monitor v"
PACKAGE_VERSION
" - Copyright (c) 2003-200
5
Linux Based Systems Design"
);
windowTitle
(
w_main
,
3
,
2
,
0
,
2
,
"BWM Monitor v"
PACKAGE_VERSION
" - Copyright (c) 2003-200
6
Linux Based Systems Design"
);
refresh
();
...
...
bwm_monitor/display.c
View file @
b5658720
/*
* display.c - Curses stuff for BWM Monitor
* Copyright (C) 2003-200
5
, Linux Based Systems Design
* Copyright (C) 2003-200
6
, Linux Based Systems Design
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
bwm_monitor/display.h
View file @
b5658720
/*
* display.h - Curses stuff for BWM Monitor header file
* Copyright (C) 2003-200
5
, Linux Based Systems Design
* Copyright (C) 2003-200
6
, Linux Based Systems Design
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
bwmd/Makefile.am
View file @
b5658720
#
# makefile.am - Makefile for BWM Daemon
# Copyright (C) 2003-200
5
, Linux Based Systems Design
# Copyright (C) 2003-200
6
, Linux Based Systems Design
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
bwmd/Makefile.in
View file @
b5658720
# Makefile.in generated by automake 1.9.
1
from Makefile.am.
# Makefile.in generated by automake 1.9.
6
from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004
, 2005
Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
...
...
@@ -16,7 +16,7 @@
#
# makefile.am - Makefile for BWM Daemon
# Copyright (C) 2003-200
5
, Linux Based Systems Design
# Copyright (C) 2003-200
6
, Linux Based Systems Design
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -32,8 +32,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
SOURCES
=
$(bwmd_SOURCES)
srcdir
=
@srcdir@
top_srcdir
=
@top_srcdir@
VPATH
=
@srcdir@
...
...
@@ -80,11 +78,11 @@ depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe
=
depfiles
COMPILE
=
$(CC)
$(DEFS)
$(DEFAULT_INCLUDES)
$(INCLUDES)
$(AM_CPPFLAGS)
\
$(CPPFLAGS)
$(AM_CFLAGS)
$(CFLAGS)
LTCOMPILE
=
$(LIBTOOL)
--mode
=
compile
--tag
=
CC
$(CC)
$(DEFS)
\
LTCOMPILE
=
$(LIBTOOL)
--tag
=
CC
--mode
=
compile
$(CC)
$(DEFS)
\
$(DEFAULT_INCLUDES)
$(INCLUDES)
$(AM_CPPFLAGS)
$(CPPFLAGS)
\
$(AM_CFLAGS)
$(CFLAGS)
CCLD
=
$(CC)
LINK
=
$(LIBTOOL)
--mode
=
link
--tag
=
CC
$(CCLD)
$(AM_CFLAGS)
$(CFLAGS)
\
LINK
=
$(LIBTOOL)
--
tag
=
CC
--
mode
=
link
$(CCLD)
$(AM_CFLAGS)
$(CFLAGS)
\
$(AM_LDFLAGS)
$(LDFLAGS)
-o
$@
SOURCES
=
$(bwmd_SOURCES)
DIST_SOURCES
=
$(bwmd_SOURCES)
...
...
bwmd/autoclass.c
View file @
b5658720
/*
* autoclass.c - Automatic packet priority classification
* Copyright (C) 2003-200
5
, Linux Based Systems Design
* Copyright (C) 2003-200
6
, Linux Based Systems Design
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -33,7 +33,7 @@ static unsigned char autoClassify_port(struct ip_packet_t *ip_packet, unsigned c
// Priority calculation functions, tcp
static
unsigned
char
tcpPortToPrio
(
u_int16_t
port
)
unsigned
char
tcpPortToPrio
(
u_int16_t
port
)
{
unsigned
char
ret
=
0
;
...
...
@@ -83,7 +83,7 @@ static unsigned char autoClassify_port(struct ip_packet_t *ip_packet, unsigned c
// Priority calculation functions, udp
static
unsigned
char
udpPortToPrio
(
u_int16_t
port
)
unsigned
char
udpPortToPrio
(
u_int16_t
port
)
{
unsigned
char
ret
=
0
;
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment