aboutsummaryrefslogtreecommitdiff
path: root/pcap-int.h
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-04-29 11:35:07 -0700
committerGuy Harris <gharris@sonic.net>2021-04-29 11:35:07 -0700
commitcdcc34ad751d5aa5998d5af7cbfce9f4cb440a97 (patch)
tree4931c3e29e8754fc77bbef646bc80861eea69b7e /pcap-int.h
parentbc8f2a990efc517bd777d04fda36925b61fdeaa4 (diff)
Move NPF_SURFACE_MOBILE_NONPROMISC to pcap-npf.c.
It's an error code seen only for NPF devices, so move it there. While we're at it, make only one GetLastError() call for the case that can get that error.
Diffstat (limited to 'pcap-int.h')
-rw-r--r--pcap-int.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/pcap-int.h b/pcap-int.h
index 60e939f1..dc18d50c 100644
--- a/pcap-int.h
+++ b/pcap-int.h
@@ -350,17 +350,6 @@ struct pcap {
* BPF code generation flags.
*/
#define BPF_SPECIAL_VLAN_HANDLING 0x00000001 /* special VLAN handling for Linux */
-/*
- * Interface Error Codes
- * It is likely that there are other devices which throw spurious errors, at which point
- * this will need refactoring to efficiently check against a list, but for now we can just
- * check this one value.
- */
-#define NPF_SURFACE_MOBILE_NONPROMISC 0xe00000bb
-/* Attempting to set non-promiscuous mode on a noncompliant Microsoft Surface Pro
- * Mobile Broadband Adapter returns an error that can safely be ignored, as it's
- * always in non-promiscuous mode.
- */
/*
* This is a timeval as stored in a savefile.