Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_ratelimit.c
Show First 20 Lines • Show All 1,059 Lines • ▼ Show 20 Lines | #endif | ||||
err = m_snd_tag_alloc(ifp, ¶ms, &tag); | err = m_snd_tag_alloc(ifp, ¶ms, &tag); | ||||
if (err) { | if (err) { | ||||
/* Failed to setup a tag? */ | /* Failed to setup a tag? */ | ||||
if (error) | if (error) | ||||
*error = err; | *error = err; | ||||
return (NULL); | return (NULL); | ||||
} | } | ||||
ntag = tag; | ntag = tag; | ||||
while(ntag->ifp->if_next_snd_tag != NULL) { | while (ntag->sw->next_snd_tag != NULL) { | ||||
ntag = ntag->ifp->if_next_snd_tag(ntag); | ntag = ntag->sw->next_snd_tag(ntag); | ||||
} | } | ||||
tifp = ntag->ifp; | tifp = ntag->ifp; | ||||
m_snd_tag_rele(tag); | m_snd_tag_rele(tag); | ||||
return (tifp); | return (tifp); | ||||
} | } | ||||
static void | static void | ||||
rl_increment_using(const struct tcp_hwrate_limit_table *rte) | rl_increment_using(const struct tcp_hwrate_limit_table *rte) | ||||
▲ Show 20 Lines • Show All 657 Lines • Show Last 20 Lines |