if_llatbl.h (41fe50f5deab9062cdf5915541105e47679ba571) | if_llatbl.h (c8da95ace9a07ead9855ccd56da3c3f61bb0913b) |
---|---|
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: --- 164 unchanged lines hidden (view full) --- 173 (((((((key >> 8) ^ key) >> 8) ^ key) >> 8) ^ key) & mask) 174 175struct lltable *lltable_init(struct ifnet *, int); 176void lltable_free(struct lltable *); 177void lltable_drain(int); 178int lltable_sysctl_dumparp(int, struct sysctl_req *); 179 180void llentry_free(struct llentry *); | 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: --- 164 unchanged lines hidden (view full) --- 173 (((((((key >> 8) ^ key) >> 8) ^ key) >> 8) ^ key) & mask) 174 175struct lltable *lltable_init(struct ifnet *, int); 176void lltable_free(struct lltable *); 177void lltable_drain(int); 178int lltable_sysctl_dumparp(int, struct sysctl_req *); 179 180void llentry_free(struct llentry *); |
181int llentry_update(struct llentry **, struct lltable *, 182 struct sockaddr *, struct ifnet *); |
|
181 182/* 183 * Generic link layer address lookup function. 184 */ 185static __inline struct llentry * 186lla_lookup(struct lltable *llt, u_int flags, const struct sockaddr *l3addr) 187{ 188 return llt->llt_lookup(llt, flags, l3addr); 189} 190 191int lla_rt_output(struct rt_msghdr *, struct rt_addrinfo *); 192#endif /* _NET_IF_LLATBL_H_ */ | 183 184/* 185 * Generic link layer address lookup function. 186 */ 187static __inline struct llentry * 188lla_lookup(struct lltable *llt, u_int flags, const struct sockaddr *l3addr) 189{ 190 return llt->llt_lookup(llt, flags, l3addr); 191} 192 193int lla_rt_output(struct rt_msghdr *, struct rt_addrinfo *); 194#endif /* _NET_IF_LLATBL_H_ */ |