diff options
author | glebius <glebius@FreeBSD.org> | 2012-08-02 13:20:44 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-08-02 13:20:44 +0000 |
commit | 34fe3f296a23dcd2b2315ab9b7cbe217a7e36c17 (patch) | |
tree | 51861ac00bbe53eb774230ad7cd58bb5b39aa9ff /sys/net/flowtable.c | |
parent | 55897c521e10c657445e8cc5242b180b8557ffb0 (diff) | |
download | FreeBSD-src-34fe3f296a23dcd2b2315ab9b7cbe217a7e36c17.zip FreeBSD-src-34fe3f296a23dcd2b2315ab9b7cbe217a7e36c17.tar.gz |
The llentry_update() is used only by flowtable and the latter
always passes NULL pointer to it. Thus, code can be simplified
and function renamed to llentry_alloc() to match rtalloc().
Diffstat (limited to 'sys/net/flowtable.c')
-rw-r--r-- | sys/net/flowtable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/flowtable.c b/sys/net/flowtable.c index 0e50377..2e209ef 100644 --- a/sys/net/flowtable.c +++ b/sys/net/flowtable.c @@ -1258,7 +1258,7 @@ uncached: else l3addr = (struct sockaddr_storage *)&ro->ro_dst; - llentry_update(&lle, LLTABLE6(ifp), l3addr, ifp); + lle = llentry_alloc(ifp, LLTABLE6(ifp), l3addr); } #endif #ifdef INET @@ -1267,7 +1267,7 @@ uncached: l3addr = (struct sockaddr_storage *)rt->rt_gateway; else l3addr = (struct sockaddr_storage *)&ro->ro_dst; - llentry_update(&lle, LLTABLE(ifp), l3addr, ifp); + lle = llentry_alloc(ifp, LLTABLE(ifp), l3addr); } #endif |