2 * Network Configuration Module
4 * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 #ifndef __NETCONFIG_NETWORK_DUMP_H__
21 #define __NETCONFIG_NETWORK_DUMP_H__
28 #define DUMP_SERVICE_BUS_NAME "org.tizen.system.dumpservice"
29 #define DUMP_SERVICE_OBJECT_PATH "/Org/Tizen/System/DumpService"
30 #define DUMP_SERVICE_INTERFACE "org.tizen.system.dumpservice"
32 #define DUMP_SIGNAL "Dump"
33 #define DUMP_START_SIGNAL "Start"
34 #define DUMP_FINISH_SIGNAL "Finish"
36 #define NETWORK_LOG_PATH "/opt/usr/data/network"
37 #define KILLALL_EXEC_PATH "/usr/bin/killall"
38 #define TCPDUMP_EXEC_PATH "/usr/sbin/tcpdump"
40 gboolean handle_start_tcpdump(Tcpdump *object, GDBusMethodInvocation *context);
41 gboolean handle_stop_tcpdump(Tcpdump *object, GDBusMethodInvocation *context);
42 gboolean handle_get_tcpdump_state(Tcpdump *object, GDBusMethodInvocation *context);
43 int netconfig_dump_log(const char *path);
44 void check_dump_state_and_start(void);