Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Fix indent.



details:   https://anonhg.NetBSD.org/src/rev/5b5bde7f8c67
branches:  trunk
changeset: 553544:5b5bde7f8c67
user:      enami <enami%NetBSD.org@localhost>
date:      Sat Oct 18 13:05:45 2003 +0000

description:
Fix indent.

diffstat:

 sys/netinet/udp_usrreq.c |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (42 lines):

diff -r cd58236d1f47 -r 5b5bde7f8c67 sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c  Sat Oct 18 12:47:28 2003 +0000
+++ b/sys/netinet/udp_usrreq.c  Sat Oct 18 13:05:45 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: udp_usrreq.c,v 1.111 2003/09/25 00:59:32 mycroft Exp $ */
+/*     $NetBSD: udp_usrreq.c,v 1.112 2003/10/18 13:05:45 enami Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.111 2003/09/25 00:59:32 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.112 2003/10/18 13:05:45 enami Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -270,8 +270,8 @@
         */
        if (uh->uh_sum) {
                switch (m->m_pkthdr.csum_flags &
-                       ((m->m_pkthdr.rcvif->if_csum_flags_rx & M_CSUM_UDPv4) |
-                        M_CSUM_TCP_UDP_BAD | M_CSUM_DATA)) {
+                   ((m->m_pkthdr.rcvif->if_csum_flags_rx & M_CSUM_UDPv4) |
+                   M_CSUM_TCP_UDP_BAD | M_CSUM_DATA)) {
                case M_CSUM_UDPv4|M_CSUM_TCP_UDP_BAD:
                        UDP_CSUM_COUNTER_INCR(&udp_hwcsum_bad);
                        goto badcsum;
@@ -280,8 +280,10 @@
                        u_int32_t hw_csum = m->m_pkthdr.csum_data;
                        UDP_CSUM_COUNTER_INCR(&udp_hwcsum_data);
                        if (m->m_pkthdr.csum_flags & M_CSUM_NO_PSEUDOHDR)
-                         hw_csum = in_cksum_phdr(ip->ip_src.s_addr, ip->ip_dst.s_addr,
-                               htonl(hw_csum + ntohs(ip->ip_len) + IPPROTO_UDP));
+                               hw_csum = in_cksum_phdr(ip->ip_src.s_addr,
+                                   ip->ip_dst.s_addr,
+                                   htonl(hw_csum + ntohs(ip->ip_len) +
+                                   IPPROTO_UDP));
                        if ((hw_csum ^ 0xffff) != 0)
                                goto badcsum;
                        break;



Home | Main Index | Thread Index | Old Index