diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-10-02 15:10:29 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-10-02 15:10:29 -0700 |
commit | 14a09752363be415b299cc113895d297ef65a342 (patch) | |
tree | bd2ee4c1062cd05d29174be64c7bf1d4aa8a2abf /pcap-tc.c | |
parent | 2c9a55d60ffbe3eed1d9c122b1f60875b0793430 (diff) |
Explain why we need a TcSetDatalink() routine.
Diffstat (limited to 'pcap-tc.c')
-rw-r--r-- | pcap-tc.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -791,11 +791,15 @@ TcCreate(const char *device, char *ebuf, int *is_ours) static int TcSetDatalink(pcap_t *p, int dlt) { /* - * We don't have to do anything; pcap_set_datalink() checks + * We don't have to do any work here; 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. + * + * We do have to have a routine, however, so that pcap_set_datalink() + * doesn't think we don't support setting the link-layer header + * type at all. */ return 0; } |