Improve the should-never-hit printf to ease debugging in case we'd ever hit
it again when doing the delayed IPv6 checksum calculations. MFC after: 3 days
This commit is contained in:
parent
51cb024f1f
commit
68c99a6023
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238934
@ -195,8 +195,9 @@ in6_delayed_cksum(struct mbuf *m, uint32_t plen, u_short offset)
|
||||
offset += m->m_pkthdr.csum_data; /* checksum offset */
|
||||
|
||||
if (offset + sizeof(u_short) > m->m_len) {
|
||||
printf("%s: delayed m_pullup, m->len: %d off: %d\n",
|
||||
__func__, m->m_len, offset);
|
||||
printf("%s: delayed m_pullup, m->len: %d plen %u off %u "
|
||||
"csum_flags=0x%04x\n", __func__, m->m_len, plen, offset,
|
||||
m->m_pkthdr.csum_flags);
|
||||
/*
|
||||
* XXX this should not happen, but if it does, the correct
|
||||
* behavior may be to insert the checksum in the appropriate
|
||||
|
Loading…
Reference in New Issue
Block a user