* Dump arp state for a specific address family. */
| 108 | * Dump arp state for a specific address family. |
| 109 | */ |
| 110 | int |
| 111 | lltable_sysctl_dumparp(int af, struct sysctl_req *wr) |
| 112 | { |
| 113 | struct lltable *llt; |
| 114 | int error = 0; |
| 115 | |
| 116 | LLTABLE_LIST_RLOCK(); |
| 117 | SLIST_FOREACH(llt, &V_lltables, llt_link) { |
| 118 | if (llt->llt_af == af) { |
| 119 | error = lltable_dump_af(llt, wr); |
| 120 | if (error != 0) |
| 121 | goto done; |
| 122 | } |
| 123 | } |
| 124 | done: |
| 125 | LLTABLE_LIST_RUNLOCK(); |
| 126 | return (error); |
| 127 | } |
| 128 | |
| 129 | /* |
| 130 | * Common function helpers for chained hash table. |
no test coverage detected