-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pcapd is now run without the daemonize option, allowing PCAPdroid to retrieve the exit code and avoiding an unnecessary fork. Code-based error reporting is now implemented in pcapd. Errors are now shown in the UI and common ones are localized.
- Loading branch information
1 parent
85c2fda
commit ba7291c
Showing
10 changed files
with
205 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef __PCAPDROID_ERRORS_H__ | ||
#define __PCAPDROID_ERRORS_H__ | ||
|
||
// This file contains a set of error strings which may be returned from the native code. | ||
// These should be translated in CaptureService.reportError | ||
|
||
#define PD_ERR_INVALID_PCAP_FILE "Invalid PCAP file" | ||
#define PD_ERR_INTERFACE_OPEN_ERROR "Could not open the capture interface" | ||
#define PD_ERR_UNSUPPORTED_DATALINK "Unsupported datalink" | ||
#define PD_ERR_PCAP_DOES_NOT_EXIST "The specified PCAP file does not exist" | ||
#define PD_ERR_PCAPD_NOT_SPAWNED "pcapd daemon did not spawn" | ||
#define PD_ERR_PCAP_READ "PCAP read error" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.