Lines Matching defs:carp_softc

111 struct carp_softc {
122 TAILQ_ENTRY(carp_softc) sc_list;
171 TAILQ_HEAD(, carp_softc) vhif_vrs;
188 static void carp_hmac_prepare(struct carp_softc *);
189 static void carp_hmac_generate(struct carp_softc *, u_int32_t[2],
191 static int carp_hmac_verify(struct carp_softc *, u_int32_t[2],
193 static void carp_setroute(struct carp_softc *, int);
196 static void carpdetach(struct carp_softc *);
197 static void carp_prepare_ad(struct mbuf *, struct carp_softc *,
201 static void carp_send_arp(struct carp_softc *);
205 static void carp_setrun(struct carp_softc *, sa_family_t);
206 static void carp_set_state(struct carp_softc *, int);
210 static void carp_multicast_cleanup(struct carp_softc *);
211 static int carp_set_ifp(struct carp_softc *, struct ifnet *);
212 static void carp_set_enaddr(struct carp_softc *);
216 static u_int32_t carp_hash(struct carp_softc *, u_char *);
217 static int carp_set_addr(struct carp_softc *, struct sockaddr_in *);
218 static int carp_join_multicast(struct carp_softc *);
220 static void carp_send_na(struct carp_softc *);
221 static int carp_set_addr6(struct carp_softc *, struct sockaddr_in6 *);
222 static int carp_join_multicast6(struct carp_softc *);
226 static int carp_ether_addmulti(struct carp_softc *, struct ifreq *);
227 static int carp_ether_delmulti(struct carp_softc *, struct ifreq *);
228 static void carp_ether_purgemulti(struct carp_softc *);
229 static void carp_update_link_state(struct carp_softc *sc);
259 carp_hmac_prepare(struct carp_softc *sc)
348 carp_hmac_generate(struct carp_softc *sc, u_int32_t counter[2],
367 carp_hmac_verify(struct carp_softc *sc, u_int32_t counter[2],
378 carp_setroute(struct carp_softc *sc, int cmd)
502 struct carp_softc *sc = NULL;
579 struct carp_softc *sc = NULL;
647 struct carp_softc *sc;
844 struct carp_softc *sc;
894 struct carp_softc *sc = ifp->if_softc;
908 carpdetach(struct carp_softc *sc)
955 struct carp_softc *sc, *nextsc;
965 carp_prepare_ad(struct mbuf *m, struct carp_softc *sc,
985 struct carp_softc *vh;
1018 struct carp_softc *sc = v;
1249 carp_send_arp(struct carp_softc *sc)
1278 carp_send_na(struct carp_softc *sc)
1327 carp_hash(struct carp_softc *sc, u_char *src)
1349 struct carp_softc *vh;
1375 struct carp_softc *sc = ia->ia_ifp->if_softc;
1412 struct carp_softc *vh;
1435 struct carp_softc *vh;
1481 struct carp_softc *vh;
1514 struct carp_softc *sc = v;
1542 carp_setrun(struct carp_softc *sc, sa_family_t af)
1601 carp_multicast_cleanup(struct carp_softc *sc)
1635 carp_set_ifp(struct carp_softc *sc, struct ifnet *ifp)
1638 struct carp_softc *vr, *after = NULL;
1738 carp_set_enaddr(struct carp_softc *sc)
1772 struct carp_softc *sc = (struct carp_softc *) v;
1811 carp_set_addr(struct carp_softc *sc, struct sockaddr_in *sin)
1882 carp_join_multicast(struct carp_softc *sc)
1906 carp_set_addr6(struct carp_softc *sc, struct sockaddr_in6 *sin6)
1975 carp_join_multicast6(struct carp_softc *sc)
2028 struct carp_softc *sc = ifp->if_softc, *vr;
2211 struct carp_softc *sc = ((struct carp_softc *)ifp->if_softc);
2223 carp_set_state(struct carp_softc *sc, int state)
2237 carp_update_link_state(struct carp_softc *sc)
2260 struct carp_softc *sc;
2296 carp_ether_addmulti(struct carp_softc *sc, struct ifreq *ifr)
2352 carp_ether_delmulti(struct carp_softc *sc, struct ifreq *ifr)
2406 carp_ether_purgemulti(struct carp_softc *sc)