aboutsummaryrefslogtreecommitdiff
path: root/pcap-tc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-10-01 21:22:46 -0700
committerGuy Harris <guy@alum.mit.edu>2017-10-01 21:22:46 -0700
commitcab6413ac7e88b58adf1b4ba06972fa2499d00bc (patch)
tree62b29a54f43b0c02fce0f167882452cea58ee490 /pcap-tc.c
parentf1de55bf448a0599d77ffae3f94e5e631cd09041 (diff)
Improve a comment.
Make it clearer why we have a set_datalink_op that just says "OK".
Diffstat (limited to 'pcap-tc.c')
-rw-r--r--pcap-tc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pcap-tc.c b/pcap-tc.c
index 742915b2..5aabbd50 100644
--- a/pcap-tc.c
+++ b/pcap-tc.c
@@ -791,7 +791,11 @@ TcCreate(const char *device, char *ebuf, int *is_ours)
static int TcSetDatalink(pcap_t *p, int dlt)
{
/*
- * always return 0, as the check is done by pcap_set_datalink
+ * We don't have to do anything; pcap_set_datalink() checks
+ * whether the value is in the list of DLT_ values we
+ * supplied, so we don't have to, and, if it is valid, sets
+ * p->linktype to the new value; we don't have to do anything
+ * in hardware, we just use what's in p->linktype.
*/
return 0;
}