From 0180436f1c8b218d99b5b03b06f6bd8a6b4cb548 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Tue, 26 Jun 2001 19:09:44 +0000 Subject: get rid of another printf --- sys/net/pf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/net/pf.c') diff --git a/sys/net/pf.c b/sys/net/pf.c index 9b3dba83ce2..d87e1b49a38 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.56 2001/06/26 19:01:55 provos Exp $ */ +/* $OpenBSD: pf.c,v 1.57 2001/06/26 19:09:43 provos Exp $ */ /* * Copyright (c) 2001, Daniel Hartmeier @@ -2080,8 +2080,9 @@ pf_test(int direction, struct ifnet *ifp, struct mbuf *m) } if (m->m_pkthdr.len < sizeof(*h)) { - printf("pf: ip header too short\n"); action = PF_DROP; + reason = PFRES_SHORT; + log = 1; goto done; } h = mtod(m, struct ip *); -- cgit v1.2.3