diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2001-06-26 19:09:44 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2001-06-26 19:09:44 +0000 |
commit | 0180436f1c8b218d99b5b03b06f6bd8a6b4cb548 (patch) | |
tree | 9541f7abcc4fdd68de0de9d8cb926091cc105509 /sys | |
parent | 23a1a5c274674aac0d4529cc5063898088def592 (diff) |
get rid of another printf
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/pf.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 *); |