Style(9).
This commit is contained in:
parent
9c238a0ec4
commit
69dda689d1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182735
@ -2,8 +2,8 @@
|
||||
mips/malta/gt.c standard
|
||||
mips/malta/gt_pci.c standard
|
||||
mips/malta/obio.c optional uart
|
||||
mips/malta/uart_cpu_maltausart.c optional uart
|
||||
mips/malta/uart_bus_maltausart.c optional uart
|
||||
dev/uart/uart_dev_ns8250.c optional uart
|
||||
mips/malta/uart_cpu_maltausart.c optional uart
|
||||
mips/malta/uart_bus_maltausart.c optional uart
|
||||
dev/uart/uart_dev_ns8250.c optional uart
|
||||
mips/malta/malta_machdep.c standard
|
||||
mips/malta/yamon.c standard
|
||||
|
@ -104,9 +104,9 @@ in_cksumdata(const void *buf, int len)
|
||||
union q_util q_util;
|
||||
|
||||
if ((3 & (long) lw) == 0 && len == 20) {
|
||||
sum = (u_int64_t) lw[0] + lw[1] + lw[2] + lw[3] + lw[4];
|
||||
REDUCE32;
|
||||
return sum;
|
||||
sum = (u_int64_t) lw[0] + lw[1] + lw[2] + lw[3] + lw[4];
|
||||
REDUCE32;
|
||||
return sum;
|
||||
}
|
||||
|
||||
if ((offset = 3 & (long) lw) != 0) {
|
||||
@ -190,7 +190,7 @@ in_pseudo(u_int32_t a, u_int32_t b, u_int32_t c)
|
||||
u_int64_t sum;
|
||||
union q_util q_util;
|
||||
union l_util l_util;
|
||||
|
||||
|
||||
sum = (u_int64_t) a + b + c;
|
||||
REDUCE16;
|
||||
return (sum);
|
||||
@ -206,16 +206,16 @@ in_cksum_skip(struct mbuf *m, int len, int skip)
|
||||
union q_util q_util;
|
||||
union l_util l_util;
|
||||
|
||||
len -= skip;
|
||||
for (; skip && m; m = m->m_next) {
|
||||
if (m->m_len > skip) {
|
||||
mlen = m->m_len - skip;
|
||||
len -= skip;
|
||||
for (; skip && m; m = m->m_next) {
|
||||
if (m->m_len > skip) {
|
||||
mlen = m->m_len - skip;
|
||||
addr = mtod(m, caddr_t) + skip;
|
||||
goto skip_start;
|
||||
} else {
|
||||
skip -= m->m_len;
|
||||
}
|
||||
}
|
||||
goto skip_start;
|
||||
} else {
|
||||
skip -= m->m_len;
|
||||
}
|
||||
}
|
||||
|
||||
for (; m && len; m = m->m_next) {
|
||||
if (m->m_len == 0)
|
||||
@ -227,9 +227,9 @@ in_cksum_skip(struct mbuf *m, int len, int skip)
|
||||
mlen = len;
|
||||
|
||||
if ((clen ^ (int) addr) & 1)
|
||||
sum += in_cksumdata(addr, mlen) << 8;
|
||||
sum += in_cksumdata(addr, mlen) << 8;
|
||||
else
|
||||
sum += in_cksumdata(addr, mlen);
|
||||
sum += in_cksumdata(addr, mlen);
|
||||
|
||||
clen += mlen;
|
||||
len -= mlen;
|
||||
@ -240,9 +240,9 @@ in_cksum_skip(struct mbuf *m, int len, int skip)
|
||||
|
||||
u_int in_cksum_hdr(const struct ip *ip)
|
||||
{
|
||||
u_int64_t sum = in_cksumdata(ip, sizeof(struct ip));
|
||||
union q_util q_util;
|
||||
union l_util l_util;
|
||||
REDUCE16;
|
||||
return (~sum & 0xffff);
|
||||
u_int64_t sum = in_cksumdata(ip, sizeof(struct ip));
|
||||
union q_util q_util;
|
||||
union l_util l_util;
|
||||
REDUCE16;
|
||||
return (~sum & 0xffff);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user