]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix typos in some comments
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 24 May 2020 12:55:40 +0000 (14:55 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 24 May 2020 12:59:33 +0000 (14:59 +0200)
[skip ci]

pcap-int.h
pcap/pcap.h
rpcap-protocol.h

index d67decefc398e2e730f4a579c9839aac468c57c1..789ad5724c677a98ae906df59374f3e2ccaeb009 100644 (file)
@@ -393,7 +393,7 @@ struct pcap_timeval {
 struct pcap_sf_pkthdr {
     struct pcap_timeval ts;    /* time stamp */
     bpf_u_int32 caplen;                /* length of portion present */
-    bpf_u_int32 len;           /* length this packet (off wire) */
+    bpf_u_int32 len;           /* length of this packet (off wire) */
 };
 
 /*
@@ -409,7 +409,7 @@ struct pcap_sf_pkthdr {
 struct pcap_sf_patched_pkthdr {
     struct pcap_timeval ts;    /* time stamp */
     bpf_u_int32 caplen;                /* length of portion present */
-    bpf_u_int32 len;           /* length this packet (off wire) */
+    bpf_u_int32 len;           /* length of this packet (off wire) */
     int                index;
     unsigned short protocol;
     unsigned char pkt_type;
index c38a303c5c0ee0416cae1433bdf8b0d1da708d62..ee2221fa542a25d077a4510841cd9b83e9840430 100644 (file)
@@ -245,7 +245,7 @@ typedef enum {
 struct pcap_pkthdr {
        struct timeval ts;      /* time stamp */
        bpf_u_int32 caplen;     /* length of portion present */
-       bpf_u_int32 len;        /* length this packet (off wire) */
+       bpf_u_int32 len;        /* length of this packet (off wire) */
 };
 
 /*
index 6d3259106095fc87b2474e4af031f7fcf0677b2c..cab89bbcf02fe027895a5a90a1bb63171f43150e 100644 (file)
@@ -294,7 +294,7 @@ struct rpcap_pkthdr
        uint32 timestamp_sec;   /* 'struct timeval' compatible, it represents the 'tv_sec' field */
        uint32 timestamp_usec;  /* 'struct timeval' compatible, it represents the 'tv_usec' field */
        uint32 caplen;          /* Length of portion present in the capture */
-       uint32 len;             /* Real length this packet (off wire) */
+       uint32 len;             /* Real length of this packet (off wire) */
        uint32 npkt;            /* Ordinal number of the packet (i.e. the first one captured has '1', the second one '2', etc) */
 };