Deleted Added
full compact
if_llatbl.h (238990) if_llatbl.h (245924)
1/*
2 * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
3 * Copyright (c) 2004-2008 Qing Li. All rights reserved.
4 * Copyright (c) 2008 Kip Macy. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 11 unchanged lines hidden (view full) ---

20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
3 * Copyright (c) 2004-2008 Qing Li. All rights reserved.
4 * Copyright (c) 2008 Kip Macy. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 11 unchanged lines hidden (view full) ---

20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/net/if_llatbl.h 238990 2012-08-02 13:57:49Z glebius $");
28__FBSDID("$FreeBSD: head/sys/net/if_llatbl.h 245924 2013-01-25 23:58:21Z np $");
29
30#ifndef _NET_IF_LLATBL_H_
31#define _NET_IF_LLATBL_H_
32
33#include "opt_ofed.h"
34
35#include <sys/_rwlock.h>
36#include <netinet/in.h>

--- 163 unchanged lines hidden (view full) ---

200 */
201static __inline struct llentry *
202lla_lookup(struct lltable *llt, u_int flags, const struct sockaddr *l3addr)
203{
204 return llt->llt_lookup(llt, flags, l3addr);
205}
206
207int lla_rt_output(struct rt_msghdr *, struct rt_addrinfo *);
29
30#ifndef _NET_IF_LLATBL_H_
31#define _NET_IF_LLATBL_H_
32
33#include "opt_ofed.h"
34
35#include <sys/_rwlock.h>
36#include <netinet/in.h>

--- 163 unchanged lines hidden (view full) ---

200 */
201static __inline struct llentry *
202lla_lookup(struct lltable *llt, u_int flags, const struct sockaddr *l3addr)
203{
204 return llt->llt_lookup(llt, flags, l3addr);
205}
206
207int lla_rt_output(struct rt_msghdr *, struct rt_addrinfo *);
208
209#include <sys/eventhandler.h>
210enum {
211 LLENTRY_RESOLVED,
212 LLENTRY_TIMEDOUT,
213 LLENTRY_DELETED,
214 LLENTRY_EXPIRED,
215};
216typedef void (*lle_event_fn)(void *, struct llentry *, int);
217EVENTHANDLER_DECLARE(lle_event, lle_event_fn);
208#endif /* _NET_IF_LLATBL_H_ */
218#endif /* _NET_IF_LLATBL_H_ */