diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2001-06-27 02:13:44 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2001-06-27 02:13:44 +0000 |
commit | 73779576bab03205ef2b8765e1340bb49912d178 (patch) | |
tree | e3c83642ac44cf36f9a916e3561a47798d355da5 /sys/net/pf.c | |
parent | 0946c42c4cb06503aef318b5f5e0723006637636 (diff) |
remove print_ip, its unused
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r-- | sys/net/pf.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 7b9dc9166ef..87a13ec1fec 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.69 2001/06/27 02:10:17 provos Exp $ */ +/* $OpenBSD: pf.c,v 1.70 2001/06/27 02:13:43 provos Exp $ */ /* * Copyright (c) 2001, Daniel Hartmeier @@ -125,7 +125,6 @@ struct pf_state *find_state(struct pf_tree_node *, struct pf_tree_key *); void insert_state(struct pf_state *); void purge_expired_states(void); -void print_ip(struct ifnet *, struct ip *); void print_host(u_int32_t, u_int16_t); void print_state(int, struct pf_state *); void print_flags(u_int8_t); @@ -484,26 +483,6 @@ purge_expired_states(void) } void -print_ip(struct ifnet *ifp, struct ip *h) -{ - u_int32_t a; - printf(" %s:", ifp->if_xname); - a = ntohl(h->ip_src.s_addr); - printf(" %u.%u.%u.%u", (a>>24)&255, (a>>16)&255, (a>>8)&255, a&255); - a = ntohl(h->ip_dst.s_addr); - printf(" -> %u.%u.%u.%u", (a>>24)&255, (a>>16)&255, (a>>8)&255, a&255); - printf(" hl=%u len=%u id=%u", h->ip_hl << 2, h->ip_len - (h->ip_hl << 2), - h->ip_id); - if (h->ip_off & IP_RF) - printf(" RF"); - if (h->ip_off & IP_DF) - printf(" DF"); - if (h->ip_off & IP_MF) - printf(" MF"); - printf(" off=%u proto=%u\n", (h->ip_off & IP_OFFMASK) << 3, h->ip_p); -} - -void print_host(u_int32_t a, u_int16_t p) { a = ntohl(a); |