diff options
Diffstat (limited to 'sys/netgraph')
26 files changed, 38 insertions, 32 deletions
diff --git a/sys/netgraph/atm/ngatmbase.c b/sys/netgraph/atm/ngatmbase.c index ecb23e6..c5b0ced 100644 --- a/sys/netgraph/atm/ngatmbase.c +++ b/sys/netgraph/atm/ngatmbase.c @@ -61,8 +61,8 @@ DECLARE_MODULE(ngatmbase, ngatm_data, SI_SUB_EXEC, SI_ORDER_ANY); /* * UNI Stack message handling functions */ -MALLOC_DEFINE(M_UNIMSG, "unimsg", "uni message buffers"); -MALLOC_DEFINE(M_UNIMSGHDR, "unimsghdr", "uni message headers"); +static MALLOC_DEFINE(M_UNIMSG, "unimsg", "uni message buffers"); +static MALLOC_DEFINE(M_UNIMSGHDR, "unimsghdr", "uni message headers"); #define EXTRA 128 diff --git a/sys/netgraph/atm/uni/ng_uni.c b/sys/netgraph/atm/uni/ng_uni.c index 2fc9599..980b81a 100644 --- a/sys/netgraph/atm/uni/ng_uni.c +++ b/sys/netgraph/atm/uni/ng_uni.c @@ -60,8 +60,8 @@ __FBSDID("$FreeBSD$"); #include <netgraph/atm/ng_sscfu.h> #include <netgraph/atm/ng_uni.h> -MALLOC_DEFINE(M_NG_UNI, "netgraph_uni_node", "netgraph uni node"); -MALLOC_DEFINE(M_UNI, "netgraph_uni_data", "uni protocol data"); +static MALLOC_DEFINE(M_NG_UNI, "netgraph_uni_node", "netgraph uni node"); +static MALLOC_DEFINE(M_UNI, "netgraph_uni_data", "uni protocol data"); MODULE_DEPEND(ng_uni, ngatmbase, 1, 1, 1); diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c b/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c index d8c32b1..cf4718a 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c @@ -61,7 +61,7 @@ /* MALLOC define */ #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_BTSOCKET_HCI_RAW, "netgraph_btsocks_hci_raw", +static MALLOC_DEFINE(M_NETGRAPH_BTSOCKET_HCI_RAW, "netgraph_btsocks_hci_raw", "Netgraph Bluetooth raw HCI sockets"); #else #define M_NETGRAPH_BTSOCKET_HCI_RAW M_NETGRAPH diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c b/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c index efca5389..3625ba1 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c @@ -63,7 +63,7 @@ /* MALLOC define */ #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_BTSOCKET_L2CAP, "netgraph_btsocks_l2cap", +static MALLOC_DEFINE(M_NETGRAPH_BTSOCKET_L2CAP, "netgraph_btsocks_l2cap", "Netgraph Bluetooth L2CAP sockets"); #else #define M_NETGRAPH_BTSOCKET_L2CAP M_NETGRAPH diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c b/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c index 72339f6..90157de 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c @@ -60,8 +60,8 @@ /* MALLOC define */ #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_BTSOCKET_L2CAP_RAW, "netgraph_btsocks_l2cap_raw", - "Netgraph Bluetooth raw L2CAP sockets"); +static MALLOC_DEFINE(M_NETGRAPH_BTSOCKET_L2CAP_RAW, + "netgraph_btsocks_l2cap_raw", "Netgraph Bluetooth raw L2CAP sockets"); #else #define M_NETGRAPH_BTSOCKET_L2CAP_RAW M_NETGRAPH #endif /* NG_SEPARATE_MALLOC */ diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c b/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c index e90cab2..7970859 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c @@ -66,7 +66,7 @@ /* MALLOC define */ #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_BTSOCKET_RFCOMM, "netgraph_btsocks_rfcomm", +static MALLOC_DEFINE(M_NETGRAPH_BTSOCKET_RFCOMM, "netgraph_btsocks_rfcomm", "Netgraph Bluetooth RFCOMM sockets"); #else #define M_NETGRAPH_BTSOCKET_RFCOMM M_NETGRAPH diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_sco.c b/sys/netgraph/bluetooth/socket/ng_btsocket_sco.c index 85b68dc..0887f52 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket_sco.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket_sco.c @@ -63,7 +63,7 @@ /* MALLOC define */ #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_BTSOCKET_SCO, "netgraph_btsocks_sco", +static MALLOC_DEFINE(M_NETGRAPH_BTSOCKET_SCO, "netgraph_btsocks_sco", "Netgraph Bluetooth SCO sockets"); #else #define M_NETGRAPH_BTSOCKET_SCO M_NETGRAPH diff --git a/sys/netgraph/ng_async.c b/sys/netgraph/ng_async.c index 283ba15..217590b 100644 --- a/sys/netgraph/ng_async.c +++ b/sys/netgraph/ng_async.c @@ -61,7 +61,7 @@ #include <net/ppp_defs.h> #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_ASYNC, "netgraph_async", "netgraph async node "); +static MALLOC_DEFINE(M_NETGRAPH_ASYNC, "netgraph_async", "netgraph async node"); #else #define M_NETGRAPH_ASYNC M_NETGRAPH #endif diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index 6b59d97..2f8e99f 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -232,10 +232,13 @@ void ng_unname(node_p node); /* Our own netgraph malloc type */ MALLOC_DEFINE(M_NETGRAPH, "netgraph", "netgraph structures and ctrl messages"); -MALLOC_DEFINE(M_NETGRAPH_HOOK, "netgraph_hook", "netgraph hook structures"); -MALLOC_DEFINE(M_NETGRAPH_NODE, "netgraph_node", "netgraph node structures"); -MALLOC_DEFINE(M_NETGRAPH_ITEM, "netgraph_item", "netgraph item structures"); MALLOC_DEFINE(M_NETGRAPH_MSG, "netgraph_msg", "netgraph name storage"); +static MALLOC_DEFINE(M_NETGRAPH_HOOK, "netgraph_hook", + "netgraph hook structures"); +static MALLOC_DEFINE(M_NETGRAPH_NODE, "netgraph_node", + "netgraph node structures"); +static MALLOC_DEFINE(M_NETGRAPH_ITEM, "netgraph_item", + "netgraph item structures"); /* Should not be visible outside this file */ diff --git a/sys/netgraph/ng_bpf.c b/sys/netgraph/ng_bpf.c index 50a6bf7..49db81e 100644 --- a/sys/netgraph/ng_bpf.c +++ b/sys/netgraph/ng_bpf.c @@ -74,7 +74,7 @@ #include <netgraph/ng_bpf.h> #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_BPF, "netgraph_bpf", "netgraph bpf node "); +static MALLOC_DEFINE(M_NETGRAPH_BPF, "netgraph_bpf", "netgraph bpf node"); #else #define M_NETGRAPH_BPF M_NETGRAPH #endif diff --git a/sys/netgraph/ng_bridge.c b/sys/netgraph/ng_bridge.c index e9631b8..738441d 100644 --- a/sys/netgraph/ng_bridge.c +++ b/sys/netgraph/ng_bridge.c @@ -84,7 +84,8 @@ #include <netgraph/ng_bridge.h> #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_BRIDGE, "netgraph_bridge", "netgraph bridge node"); +static MALLOC_DEFINE(M_NETGRAPH_BRIDGE, "netgraph_bridge", + "netgraph bridge node"); #else #define M_NETGRAPH_BRIDGE M_NETGRAPH #endif diff --git a/sys/netgraph/ng_deflate.c b/sys/netgraph/ng_deflate.c index f3ce1c0..5fa6363 100644 --- a/sys/netgraph/ng_deflate.c +++ b/sys/netgraph/ng_deflate.c @@ -49,7 +49,8 @@ #include "opt_netgraph.h" -MALLOC_DEFINE(M_NETGRAPH_DEFLATE, "netgraph_deflate", "netgraph deflate node "); +static MALLOC_DEFINE(M_NETGRAPH_DEFLATE, "netgraph_deflate", + "netgraph deflate node"); /* DEFLATE header length */ #define DEFLATE_HDRLEN 2 diff --git a/sys/netgraph/ng_gif_demux.c b/sys/netgraph/ng_gif_demux.c index 857f10f..646e37d 100644 --- a/sys/netgraph/ng_gif_demux.c +++ b/sys/netgraph/ng_gif_demux.c @@ -89,7 +89,7 @@ #include <netgraph/ng_gif_demux.h> #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_GIF_DEMUX, "netgraph_gif_demux", +static MALLOC_DEFINE(M_NETGRAPH_GIF_DEMUX, "netgraph_gif_demux", "netgraph gif demux node"); #else #define M_NETGRAPH_GIF_DEMUX M_NETGRAPH diff --git a/sys/netgraph/ng_hub.c b/sys/netgraph/ng_hub.c index f013aac..2a8c2d2 100644 --- a/sys/netgraph/ng_hub.c +++ b/sys/netgraph/ng_hub.c @@ -37,7 +37,7 @@ #include <netgraph/netgraph.h> #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_HUB, "netgraph_hub", "netgraph hub node"); +static MALLOC_DEFINE(M_NETGRAPH_HUB, "netgraph_hub", "netgraph hub node"); #else #define M_NETGRAPH_HUB M_NETGRAPH #endif diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c index e774098..3ce0261 100644 --- a/sys/netgraph/ng_iface.c +++ b/sys/netgraph/ng_iface.c @@ -87,7 +87,7 @@ #include <netgraph/ng_cisco.h> #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_IFACE, "netgraph_iface", "netgraph iface node "); +static MALLOC_DEFINE(M_NETGRAPH_IFACE, "netgraph_iface", "netgraph iface node"); #else #define M_NETGRAPH_IFACE M_NETGRAPH #endif diff --git a/sys/netgraph/ng_ksocket.c b/sys/netgraph/ng_ksocket.c index 6caade0..20121ba 100644 --- a/sys/netgraph/ng_ksocket.c +++ b/sys/netgraph/ng_ksocket.c @@ -69,7 +69,8 @@ #include <netatalk/at.h> #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_KSOCKET, "netgraph_ksock", "netgraph ksock node "); +static MALLOC_DEFINE(M_NETGRAPH_KSOCKET, "netgraph_ksock", + "netgraph ksock node"); #else #define M_NETGRAPH_KSOCKET M_NETGRAPH #endif diff --git a/sys/netgraph/ng_l2tp.c b/sys/netgraph/ng_l2tp.c index 201fc45..3b91b84 100644 --- a/sys/netgraph/ng_l2tp.c +++ b/sys/netgraph/ng_l2tp.c @@ -62,7 +62,7 @@ #include <netgraph/ng_l2tp.h> #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_L2TP, "netgraph_l2tp", "netgraph l2tp node"); +static MALLOC_DEFINE(M_NETGRAPH_L2TP, "netgraph_l2tp", "netgraph l2tp node"); #else #define M_NETGRAPH_L2TP M_NETGRAPH #endif diff --git a/sys/netgraph/ng_mppc.c b/sys/netgraph/ng_mppc.c index cb65316..6754be7 100644 --- a/sys/netgraph/ng_mppc.c +++ b/sys/netgraph/ng_mppc.c @@ -74,7 +74,7 @@ #endif #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_MPPC, "netgraph_mppc", "netgraph mppc node "); +static MALLOC_DEFINE(M_NETGRAPH_MPPC, "netgraph_mppc", "netgraph mppc node"); #else #define M_NETGRAPH_MPPC M_NETGRAPH #endif diff --git a/sys/netgraph/ng_parse.c b/sys/netgraph/ng_parse.c index fbbefc6..e8cbc9a 100644 --- a/sys/netgraph/ng_parse.c +++ b/sys/netgraph/ng_parse.c @@ -62,7 +62,7 @@ #include <netgraph/ng_parse.h> #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_PARSE, "netgraph_parse", "netgraph parse info"); +static MALLOC_DEFINE(M_NETGRAPH_PARSE, "netgraph_parse", "netgraph parse info"); #else #define M_NETGRAPH_PARSE M_NETGRAPH #endif diff --git a/sys/netgraph/ng_ppp.c b/sys/netgraph/ng_ppp.c index a0a3c38..b26163a 100644 --- a/sys/netgraph/ng_ppp.c +++ b/sys/netgraph/ng_ppp.c @@ -108,7 +108,7 @@ #include <netgraph/ng_vjc.h> #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_PPP, "netgraph_ppp", "netgraph ppp node"); +static MALLOC_DEFINE(M_NETGRAPH_PPP, "netgraph_ppp", "netgraph ppp node"); #else #define M_NETGRAPH_PPP M_NETGRAPH #endif diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c index 4d5e24e..3b953b3 100644 --- a/sys/netgraph/ng_pppoe.c +++ b/sys/netgraph/ng_pppoe.c @@ -58,7 +58,7 @@ #include <netgraph/ng_ether.h> #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_PPPOE, "netgraph_pppoe", "netgraph pppoe node"); +static MALLOC_DEFINE(M_NETGRAPH_PPPOE, "netgraph_pppoe", "netgraph pppoe node"); #else #define M_NETGRAPH_PPPOE M_NETGRAPH #endif diff --git a/sys/netgraph/ng_pred1.c b/sys/netgraph/ng_pred1.c index 5f01e88..52efe63 100644 --- a/sys/netgraph/ng_pred1.c +++ b/sys/netgraph/ng_pred1.c @@ -46,7 +46,7 @@ #include "opt_netgraph.h" -MALLOC_DEFINE(M_NETGRAPH_PRED1, "netgraph_pred1", "netgraph pred1 node "); +static MALLOC_DEFINE(M_NETGRAPH_PRED1, "netgraph_pred1", "netgraph pred1 node"); /* PRED1 header length */ #define PRED1_HDRLEN 2 diff --git a/sys/netgraph/ng_sample.c b/sys/netgraph/ng_sample.c index 3d644db..f0e4d50 100644 --- a/sys/netgraph/ng_sample.c +++ b/sys/netgraph/ng_sample.c @@ -58,7 +58,7 @@ /* If you do complicated mallocs you may want to do this */ /* and use it for your mallocs */ #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_XXX, "netgraph_xxx", "netgraph xxx node "); +static MALLOC_DEFINE(M_NETGRAPH_XXX, "netgraph_xxx", "netgraph xxx node"); #else #define M_NETGRAPH_XXX M_NETGRAPH #endif diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c index 8c819c0..b1c1f6f 100644 --- a/sys/netgraph/ng_socket.c +++ b/sys/netgraph/ng_socket.c @@ -76,8 +76,8 @@ #include <netgraph/ng_socket.h> #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_PATH, "netgraph_path", "netgraph path info "); -MALLOC_DEFINE(M_NETGRAPH_SOCK, "netgraph_sock", "netgraph socket info "); +static MALLOC_DEFINE(M_NETGRAPH_PATH, "netgraph_path", "netgraph path info"); +static MALLOC_DEFINE(M_NETGRAPH_SOCK, "netgraph_sock", "netgraph socket info"); #else #define M_NETGRAPH_PATH M_NETGRAPH #define M_NETGRAPH_SOCK M_NETGRAPH diff --git a/sys/netgraph/ng_sppp.c b/sys/netgraph/ng_sppp.c index ad96146..4ad89ec 100644 --- a/sys/netgraph/ng_sppp.c +++ b/sys/netgraph/ng_sppp.c @@ -44,7 +44,7 @@ __FBSDID("$FreeBSD$"); #include <netgraph/ng_sppp.h> #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_SPPP, "netgraph_sppp", "netgraph sppp node "); +static MALLOC_DEFINE(M_NETGRAPH_SPPP, "netgraph_sppp", "netgraph sppp node"); #else #define M_NETGRAPH_SPPP M_NETGRAPH #endif diff --git a/sys/netgraph/ng_tag.c b/sys/netgraph/ng_tag.c index b183285..150a0f2 100644 --- a/sys/netgraph/ng_tag.c +++ b/sys/netgraph/ng_tag.c @@ -69,7 +69,7 @@ #include <netgraph/ng_tag.h> #ifdef NG_SEPARATE_MALLOC -MALLOC_DEFINE(M_NETGRAPH_TAG, "netgraph_tag", "netgraph tag node "); +static MALLOC_DEFINE(M_NETGRAPH_TAG, "netgraph_tag", "netgraph tag node"); #else #define M_NETGRAPH_TAG M_NETGRAPH #endif |