• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/netlabel/

Lines Matching defs:entry

51  * netlbl_af4list_search - Search for a matching IPv4 address entry
56 * Searches the IPv4 address list given by @head. If a matching address entry
74 * netlbl_af4list_search_exact - Search for an exact IPv4 address entry
101 * netlbl_af6list_search - Search for a matching IPv6 address entry
106 * Searches the IPv6 address list given by @head. If a matching address entry
125 * netlbl_af6list_search_exact - Search for an exact IPv6 address entry
153 * netlbl_af4list_add - Add a new IPv4 address entry to a list
154 * @entry: address entry
158 * Add a new address entry to the list pointed to by @head. On success zero is
163 int netlbl_af4list_add(struct netlbl_af4list *entry, struct list_head *head)
167 iter = netlbl_af4list_search(entry->addr, head);
169 iter->addr == entry->addr && iter->mask == entry->mask)
174 * address mask such that the entry with the widest mask (smallest
178 ntohl(entry->mask) > ntohl(iter->mask)) {
179 __list_add_rcu(&entry->list,
184 list_add_tail_rcu(&entry->list, head);
190 * netlbl_af6list_add - Add a new IPv6 address entry to a list
191 * @entry: address entry
195 * Add a new address entry to the list pointed to by @head. On success zero is
200 int netlbl_af6list_add(struct netlbl_af6list *entry, struct list_head *head)
204 iter = netlbl_af6list_search(&entry->addr, head);
206 ipv6_addr_equal(&iter->addr, &entry->addr) &&
207 ipv6_addr_equal(&iter->mask, &entry->mask))
212 * address mask such that the entry with the widest mask (smallest
216 ipv6_addr_cmp(&entry->mask, &iter->mask) > 0) {
217 __list_add_rcu(&entry->list,
222 list_add_tail_rcu(&entry->list, head);
228 * netlbl_af4list_remove_entry - Remove an IPv4 address entry
229 * @entry: address entry
232 * Remove the specified IP address entry. The caller is responsible for
236 void netlbl_af4list_remove_entry(struct netlbl_af4list *entry)
238 entry->valid = 0;
239 list_del_rcu(&entry->list);
243 * netlbl_af4list_remove - Remove an IPv4 address entry
249 * Remove an IP address entry from the list pointed to by @head. Returns the
250 * entry on success, NULL on failure. The caller is responsible for calling
257 struct netlbl_af4list *entry;
259 entry = netlbl_af4list_search_exact(addr, mask, head);
260 if (entry == NULL)
262 netlbl_af4list_remove_entry(entry);
263 return entry;
268 * netlbl_af6list_remove_entry - Remove an IPv6 address entry
269 * @entry: address entry
272 * Remove the specified IP address entry. The caller is responsible for
276 void netlbl_af6list_remove_entry(struct netlbl_af6list *entry)
278 entry->valid = 0;
279 list_del_rcu(&entry->list);
283 * netlbl_af6list_remove - Remove an IPv6 address entry
289 * Remove an IP address entry from the list pointed to by @head. Returns the
290 * entry on success, NULL on failure. The caller is responsible for calling
298 struct netlbl_af6list *entry;
300 entry = netlbl_af6list_search_exact(addr, mask, head);
301 if (entry == NULL)
303 netlbl_af6list_remove_entry(entry);
304 return entry;