if_llatbl.h (196535) | if_llatbl.h (201282) |
---|---|
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 196535 2009-08-25 09:52:38Z rwatson $"); | 28__FBSDID("$FreeBSD: head/sys/net/if_llatbl.h 201282 2009-12-30 21:35:34Z qingli $"); |
29 30#ifndef _NET_IF_LLATBL_H_ 31#define _NET_IF_LLATBL_H_ 32 33#include <sys/_rwlock.h> 34#include <netinet/in.h> 35 36struct ifnet; --- 117 unchanged lines hidden (view full) --- 154 155 struct llentry * (*llt_new)(const struct sockaddr *, u_int); 156 void (*llt_free)(struct lltable *, struct llentry *); 157 void (*llt_prefix_free)(struct lltable *, 158 const struct sockaddr *prefix, 159 const struct sockaddr *mask); 160 struct llentry * (*llt_lookup)(struct lltable *, u_int flags, 161 const struct sockaddr *l3addr); | 29 30#ifndef _NET_IF_LLATBL_H_ 31#define _NET_IF_LLATBL_H_ 32 33#include <sys/_rwlock.h> 34#include <netinet/in.h> 35 36struct ifnet; --- 117 unchanged lines hidden (view full) --- 154 155 struct llentry * (*llt_new)(const struct sockaddr *, u_int); 156 void (*llt_free)(struct lltable *, struct llentry *); 157 void (*llt_prefix_free)(struct lltable *, 158 const struct sockaddr *prefix, 159 const struct sockaddr *mask); 160 struct llentry * (*llt_lookup)(struct lltable *, u_int flags, 161 const struct sockaddr *l3addr); |
162 int (*llt_rtcheck)(struct ifnet *, | 162 int (*llt_rtcheck)(struct ifnet *, u_int flags, |
163 const struct sockaddr *); 164 int (*llt_dump)(struct lltable *, 165 struct sysctl_req *); 166}; 167MALLOC_DECLARE(M_LLTABLE); 168 169/* 170 * flags to be passed to arplookup. --- 36 unchanged lines hidden --- | 163 const struct sockaddr *); 164 int (*llt_dump)(struct lltable *, 165 struct sysctl_req *); 166}; 167MALLOC_DECLARE(M_LLTABLE); 168 169/* 170 * flags to be passed to arplookup. --- 36 unchanged lines hidden --- |