Lines Matching refs:algo
155 uint16_t *mymin, uint16_t *mymax, uint16_t **pnext_ephemeral, int algo)
227 [portalgo_af][portalgo_range][algo];
374 algo_bsd(int algo, uint16_t *port, struct inpcb *inp, kauth_cred_t cred)
383 &next_ephemeral, algo);
410 algo_random_start(int algo, uint16_t *port, struct inpcb *inp,
421 &next_ephemeral, algo);
464 algo_random_pick(int algo, uint16_t *port, struct inpcb *inp,
475 &next_ephemeral, algo);
602 algo_hash(int algo, uint16_t *port, struct inpcb *inp,
614 &next_ephemeral, algo);
651 algo_doublehash(int algo, uint16_t *port, struct inpcb *inp,
665 &next_ephemeral, algo);
704 algo_randinc(int algo, uint16_t *port, struct inpcb *inp,
717 &next_ephemeral, algo);
749 int algo, error;
772 algo = PORTALGO_BSD;
774 algo = default_algo;
777 algo = inp->inp_portalgo;
779 KASSERT(algo >= 0);
780 KASSERT(algo < NALGOS);
808 DPRINTF("%s portalgo = %d\n", __func__, algo);
810 error = (*algos[algo].func)(algo, &lport, inp, cred);
817 &mymax, &pnext_ephemeral, algo);
827 portalgo_algo_name_select(const char *name, int *algo)
836 *algo = ai;
844 portalgo_algo_index_select(struct inpcb *inp, int algo)
847 DPRINTF("%s called with algo %d for pcb %p\n", __func__, algo, inp );
849 if ((algo < 0 || algo >= NALGOS) &&
850 (algo != PORTALGO_DEFAULT))
853 inp->inp_portalgo = algo;
862 sysctl_portalgo_selected(SYSCTLFN_ARGS, int *algo)
870 strlcpy(newalgo, algos[*algo].name, sizeof(newalgo));
881 strncmp(newalgo, algos[*algo].name, sizeof(newalgo)) == 0)
892 error = portalgo_algo_name_select(newalgo, algo);