Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys style and fix typo



details:   https://anonhg.NetBSD.org/src/rev/9c1213e07dc8
branches:  trunk
changeset: 830167:9c1213e07dc8
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue Feb 27 14:14:19 2018 +0000

description:
style and fix typo

diffstat:

 sys/sys/mbuf.h |  36 ++++++++++++++++++------------------
 1 files changed, 18 insertions(+), 18 deletions(-)

diffs (112 lines):

diff -r 02bd6e3a12b8 -r 9c1213e07dc8 sys/sys/mbuf.h
--- a/sys/sys/mbuf.h    Tue Feb 27 13:36:21 2018 +0000
+++ b/sys/sys/mbuf.h    Tue Feb 27 14:14:19 2018 +0000
@@ -1,6 +1,6 @@
-/*     $NetBSD: mbuf.h,v 1.175 2018/01/22 07:11:45 maxv Exp $  */
+/*     $NetBSD: mbuf.h,v 1.176 2018/02/27 14:14:19 maxv Exp $  */
 
-/*-
+/*
  * Copyright (c) 1996, 1997, 1999, 2001, 2007 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
@@ -130,7 +130,7 @@
 struct mowner_counter {
        u_long mc_counter[MOWNER_COUNTER_NCOUNTERS];
 };
-#endif /* defined(_KERNEL) */
+#endif
 
 /* userland-exported version of struct mowner */
 struct mowner_user {
@@ -146,7 +146,7 @@
  */
 #define        mtod(m, t)      ((t)((m)->m_data))
 
-/* header at beginning of each mbuf: */
+/* header at beginning of each mbuf */
 struct m_hdr {
        struct  mbuf *mh_next;          /* next buffer in chain */
        struct  mbuf *mh_nextpkt;       /* next chain in queue/record */
@@ -177,7 +177,7 @@
  * Size ILP32: 40
  *       LP64: 56
  */
-struct pkthdr {
+struct pkthdr {
        union {
                void            *ctx;           /* for M_GETCTX/M_SETCTX */
                if_index_t      index;          /* rcv interface index */
@@ -201,7 +201,7 @@
 };
 
 /*
- * Note: These bits are carefully arrange so that the compiler can have
+ * Note: These bits are carefully arranged so that the compiler can have
  * a prayer of generating a jump table.
  */
 #define        M_CSUM_TCPv4            0x00000001      /* TCP header/payload */
@@ -238,7 +238,7 @@
  * M_CSUM_DATA_IPv6_HL: length of ip6_hdr + ext header.
  * ie. offset of UDP/TCP header in the packet.
  *
- * M_CSUM_DATA_IPv6_OFFSET: offset of the checksum field in UDP/TCP header. 
+ * M_CSUM_DATA_IPv6_OFFSET: offset of the checksum field in UDP/TCP header.
  */
 
 #define        M_CSUM_DATA_IPv6_HL(x)          ((x) >> 16)
@@ -353,7 +353,7 @@
                                         * IP header */
 #define        M_DECRYPTED     0x00000020      /* confidentiality */
 #define        M_LOOP          0x00000040      /* for Mbuf statistics */
-#define        M_AUTHIPDGM     0x00000080      /* data origin authentication */
+#define        M_AUTHIPDGM     0x00000080      /* data origin authentication */
 #define        M_BCAST         0x00000100      /* send/received as link-level
                                         * broadcast */
 #define        M_MCAST         0x00000200      /* send/received as link-level
@@ -816,13 +816,13 @@
 
 #ifdef _KERNEL
 extern struct mbstat mbstat;
-extern int     nmbclusters;            /* limit on the # of clusters */
-extern int     mblowat;                /* mbuf low water mark */
-extern int     mcllowat;               /* mbuf cluster low water mark */
-extern int     max_linkhdr;            /* largest link-level header */
-extern int     max_protohdr;           /* largest protocol header */
-extern int     max_hdr;                /* largest link+protocol header */
-extern int     max_datalen;            /* MHLEN - max_hdr */
+extern int nmbclusters;                /* limit on the # of clusters */
+extern int mblowat;            /* mbuf low water mark */
+extern int mcllowat;           /* mbuf cluster low water mark */
+extern int max_linkhdr;                /* largest link-level header */
+extern int max_protohdr;               /* largest protocol header */
+extern int max_hdr;            /* largest link+protocol header */
+extern int max_datalen;                /* MHLEN - max_hdr */
 extern const int msize;                        /* mbuf base size */
 extern const int mclbytes;             /* mbuf cluster size */
 extern pool_cache_t mb_cache;
@@ -840,7 +840,7 @@
 struct mbuf *m_copym(struct mbuf *, int, int, int);
 struct mbuf *m_copypacket(struct mbuf *, int);
 struct mbuf *m_devget(char *, int, int, struct ifnet *,
-                           void (*copy)(const void *, void *, size_t));
+    void (*copy)(const void *, void *, size_t));
 struct mbuf *m_dup(struct mbuf *, int, int, int);
 struct mbuf *m_get(int, int);
 struct mbuf *m_getclr(int, int);
@@ -854,13 +854,13 @@
 void   m_adj(struct mbuf *, int);
 struct mbuf *m_defrag(struct mbuf *, int);
 int    m_apply(struct mbuf *, int, int,
-               int (*)(void *, void *, unsigned int), void *);
+    int (*)(void *, void *, unsigned int), void *);
 void   m_cat(struct mbuf *,struct mbuf *);
 void   m_clget(struct mbuf *, int);
 int    m_mballoc(int, int);
 void   m_copyback(struct mbuf *, int, int, const void *);
 struct mbuf *m_copyback_cow(struct mbuf *, int, int, const void *, int);
-int    m_makewritable(struct mbuf **, int, int, int);
+int    m_makewritable(struct mbuf **, int, int, int);
 struct mbuf *m_getcl(int, int, int);
 void   m_copydata(struct mbuf *, int, int, void *);
 struct mbuf *m_free(struct mbuf *);



Home | Main Index | Thread Index | Old Index