flowtable.c (238092) | flowtable.c (238989) |
---|---|
1/************************************************************************** 2 3Copyright (c) 2008-2010, BitGravity Inc. 4All rights reserved. 5 6Redistribution and use in source and binary forms, with or without 7modification, are permitted provided that the following conditions are met: 8 --- 20 unchanged lines hidden (view full) --- 29 30#include "opt_route.h" 31#include "opt_mpath.h" 32#include "opt_ddb.h" 33#include "opt_inet.h" 34#include "opt_inet6.h" 35 36#include <sys/cdefs.h> | 1/************************************************************************** 2 3Copyright (c) 2008-2010, BitGravity Inc. 4All rights reserved. 5 6Redistribution and use in source and binary forms, with or without 7modification, are permitted provided that the following conditions are met: 8 --- 20 unchanged lines hidden (view full) --- 29 30#include "opt_route.h" 31#include "opt_mpath.h" 32#include "opt_ddb.h" 33#include "opt_inet.h" 34#include "opt_inet6.h" 35 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: head/sys/net/flowtable.c 238092 2012-07-04 07:37:53Z glebius $"); | 37__FBSDID("$FreeBSD: head/sys/net/flowtable.c 238989 2012-08-02 13:20:44Z glebius $"); |
38 39#include <sys/param.h> 40#include <sys/types.h> 41#include <sys/bitstring.h> 42#include <sys/condvar.h> 43#include <sys/callout.h> 44#include <sys/kernel.h> 45#include <sys/kthread.h> --- 1207 unchanged lines hidden (view full) --- 1253 return (NULL); 1254 } 1255 1256 if (rt->rt_flags & RTF_GATEWAY) 1257 l3addr = (struct sockaddr_storage *)rt->rt_gateway; 1258 1259 else 1260 l3addr = (struct sockaddr_storage *)&ro->ro_dst; | 38 39#include <sys/param.h> 40#include <sys/types.h> 41#include <sys/bitstring.h> 42#include <sys/condvar.h> 43#include <sys/callout.h> 44#include <sys/kernel.h> 45#include <sys/kthread.h> --- 1207 unchanged lines hidden (view full) --- 1253 return (NULL); 1254 } 1255 1256 if (rt->rt_flags & RTF_GATEWAY) 1257 l3addr = (struct sockaddr_storage *)rt->rt_gateway; 1258 1259 else 1260 l3addr = (struct sockaddr_storage *)&ro->ro_dst; |
1261 llentry_update(&lle, LLTABLE6(ifp), l3addr, ifp); | 1261 lle = llentry_alloc(ifp, LLTABLE6(ifp), l3addr); |
1262 } 1263#endif 1264#ifdef INET 1265 if (ssa->ss_family == AF_INET) { 1266 if (rt->rt_flags & RTF_GATEWAY) 1267 l3addr = (struct sockaddr_storage *)rt->rt_gateway; 1268 else 1269 l3addr = (struct sockaddr_storage *)&ro->ro_dst; | 1262 } 1263#endif 1264#ifdef INET 1265 if (ssa->ss_family == AF_INET) { 1266 if (rt->rt_flags & RTF_GATEWAY) 1267 l3addr = (struct sockaddr_storage *)rt->rt_gateway; 1268 else 1269 l3addr = (struct sockaddr_storage *)&ro->ro_dst; |
1270 llentry_update(&lle, LLTABLE(ifp), l3addr, ifp); | 1270 lle = llentry_alloc(ifp, LLTABLE(ifp), l3addr); |
1271 } 1272 1273#endif 1274 ro->ro_lle = lle; 1275 1276 if (lle == NULL) { 1277 RTFREE(rt); 1278 ro->ro_rt = NULL; --- 550 unchanged lines hidden --- | 1271 } 1272 1273#endif 1274 ro->ro_lle = lle; 1275 1276 if (lle == NULL) { 1277 RTFREE(rt); 1278 ro->ro_rt = NULL; --- 550 unchanged lines hidden --- |