mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Rename m_claim_next_hop() to m_claim_next(), as suggested by Max Laier.
This commit is contained in:
parent
7fbb130049
commit
2f3f1e6773
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128829
@ -318,7 +318,7 @@ ip_input(struct mbuf *m)
|
||||
|
||||
M_ASSERTPKTHDR(m);
|
||||
|
||||
args.next_hop = m_claim_next_hop(m, PACKET_TAG_IPFORWARD);
|
||||
args.next_hop = m_claim_next(m, PACKET_TAG_IPFORWARD);
|
||||
args.rule = ip_dn_claim_rule(m);
|
||||
|
||||
if (m->m_flags & M_FASTFWD_OURS) {
|
||||
|
@ -157,7 +157,7 @@ ip_output(struct mbuf *m, struct mbuf *opt, struct route *ro,
|
||||
|
||||
M_ASSERTPKTHDR(m);
|
||||
|
||||
args.next_hop = m_claim_next_hop(m, PACKET_TAG_IPFORWARD);
|
||||
args.next_hop = m_claim_next(m, PACKET_TAG_IPFORWARD);
|
||||
dummytag = m_tag_find(m, PACKET_TAG_DUMMYNET, NULL);
|
||||
if (dummytag != NULL) {
|
||||
struct dn_pkt_tag *dt = (struct dn_pkt_tag *)(dummytag+1);
|
||||
|
@ -445,7 +445,7 @@ tcp_input(m, off0)
|
||||
#endif
|
||||
|
||||
/* Grab info from PACKET_TAG_IPFORWARD tag prepended to the chain. */
|
||||
next_hop = m_claim_next_hop(m, PACKET_TAG_IPFORWARD);
|
||||
next_hop = m_claim_next(m, PACKET_TAG_IPFORWARD);
|
||||
#ifdef INET6
|
||||
isipv6 = (mtod(m, struct ip *)->ip_v == 6) ? 1 : 0;
|
||||
#endif
|
||||
|
@ -445,7 +445,7 @@ tcp_input(m, off0)
|
||||
#endif
|
||||
|
||||
/* Grab info from PACKET_TAG_IPFORWARD tag prepended to the chain. */
|
||||
next_hop = m_claim_next_hop(m, PACKET_TAG_IPFORWARD);
|
||||
next_hop = m_claim_next(m, PACKET_TAG_IPFORWARD);
|
||||
#ifdef INET6
|
||||
isipv6 = (mtod(m, struct ip *)->ip_v == 6) ? 1 : 0;
|
||||
#endif
|
||||
|
@ -653,7 +653,7 @@ m_tag_find(struct mbuf *m, int type, struct m_tag *start)
|
||||
* If a tag is present devalidate it also.
|
||||
*/
|
||||
static __inline struct sockaddr_in *
|
||||
m_claim_next_hop(struct mbuf *m, int type)
|
||||
m_claim_next(struct mbuf *m, int type)
|
||||
{
|
||||
struct m_tag *mtag = m_tag_find(m, type, NULL);
|
||||
if (mtag) {
|
||||
|
Loading…
Reference in New Issue
Block a user