summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_var.h
diff options
context:
space:
mode:
authordarrenr <darrenr@FreeBSD.org>2004-05-02 06:36:30 +0000
committerdarrenr <darrenr@FreeBSD.org>2004-05-02 06:36:30 +0000
commit8f62dbebe1b55307f420e4b9164fb86ec654824f (patch)
treea0e03ab4812c05ff712bfcffaddb0fcd9e1622f8 /sys/netinet/ip_var.h
parent4eddf7cee686c3991128069a01ffe77d4b9a21a6 (diff)
downloadFreeBSD-src-8f62dbebe1b55307f420e4b9164fb86ec654824f.zip
FreeBSD-src-8f62dbebe1b55307f420e4b9164fb86ec654824f.tar.gz
Rename ip_claim_next_hop() to m_claim_next_hop(), give it an extra arg
(the type of tag to claim) and push it out of ip_var.h into mbuf.h alongside all of the other macros that work ok mbuf's and tag's.
Diffstat (limited to 'sys/netinet/ip_var.h')
-rw-r--r--sys/netinet/ip_var.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h
index a73827f..be83cde 100644
--- a/sys/netinet/ip_var.h
+++ b/sys/netinet/ip_var.h
@@ -194,22 +194,6 @@ extern int (*ip_rsvp_vif)(struct socket *, struct sockopt *);
extern void (*ip_rsvp_force_done)(struct socket *);
extern void (*rsvp_input_p)(struct mbuf *m, int off);
-/*
- * Obtain next_hop information asociated with the mbuf; if any.
- * If a tag is present devalidate it also.
- */
-static __inline struct sockaddr_in *
-ip_claim_next_hop(struct mbuf *m)
-{
- struct m_tag *mtag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL);
- if (mtag) {
- struct sockaddr_in *sin = *(struct sockaddr_in **)(mtag+1);
- mtag->m_tag_id = PACKET_TAG_NONE;
- return sin;
- } else
- return NULL;
-}
-
#ifdef PFIL_HOOKS
extern struct pfil_head inet_pfil_hook;
#endif
OpenPOWER on IntegriCloud