diff options
author | ume <ume@FreeBSD.org> | 2003-09-30 09:06:58 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-09-30 09:06:58 +0000 |
commit | bc921c081b565964e2f24f6dcb6086c55bd2bff4 (patch) | |
tree | 6f9120f889ca9fd4ecdb3b964d8280e8ca84ad4b /sys/netkey/keysock.c | |
parent | db2419a0a15aebcff884563c7109b6303aa43a94 (diff) | |
download | FreeBSD-src-bc921c081b565964e2f24f6dcb6086c55bd2bff4.zip FreeBSD-src-bc921c081b565964e2f24f6dcb6086c55bd2bff4.tar.gz |
Reduce diffs against KAME. No functional change.
Obtained from: KAME
Diffstat (limited to 'sys/netkey/keysock.c')
-rw-r--r-- | sys/netkey/keysock.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/netkey/keysock.c b/sys/netkey/keysock.c index 923cce7..ec71540 100644 --- a/sys/netkey/keysock.c +++ b/sys/netkey/keysock.c @@ -286,15 +286,11 @@ key_sendup_mbuf(so, m, target) pfkeystat.in_total++; pfkeystat.in_bytes += m->m_pkthdr.len; if (m->m_len < sizeof(struct sadb_msg)) { -#if 1 m = m_pullup(m, sizeof(struct sadb_msg)); if (m == NULL) { pfkeystat.in_nomem++; return ENOBUFS; } -#else - /* don't bother pulling it up just for stats */ -#endif } if (m->m_len >= sizeof(struct sadb_msg)) { struct sadb_msg *msg; @@ -302,12 +298,11 @@ key_sendup_mbuf(so, m, target) pfkeystat.in_msgtype[msg->sadb_msg_type]++; } - LIST_FOREACH(rp, &rawcb_list, list) - { + LIST_FOREACH(rp, &rawcb_list, list) { if (rp->rcb_proto.sp_family != PF_KEY) continue; - if (rp->rcb_proto.sp_protocol - && rp->rcb_proto.sp_protocol != PF_KEY_V2) { + if (rp->rcb_proto.sp_protocol && + rp->rcb_proto.sp_protocol != PF_KEY_V2) { continue; } |