Lines Matching refs:sfd
598 int sfd; in fetch_algorithms() local
610 sfd = get_pf_pol_socket(); in fetch_algorithms()
611 if (sfd < 0) { in fetch_algorithms()
620 cnt = write(sfd, &msg, sizeof (msg)); in fetch_algorithms()
629 cnt = read(sfd, reply_buf, sizeof (reply_buf)); in fetch_algorithms()
641 (void) close(sfd); in fetch_algorithms()
708 (void) close(sfd); in fetch_algorithms()
2615 int sfd; in pfp_delete_rule() local
2618 sfd = get_pf_pol_socket(); in pfp_delete_rule()
2619 if (sfd < 0) { in pfp_delete_rule()
2652 cnt = write(sfd, msg, len); in pfp_delete_rule()
2657 (void) close(sfd); in pfp_delete_rule()
2661 (void) close(sfd); in pfp_delete_rule()
2668 cnt = read(sfd, msg, len); in pfp_delete_rule()
2672 (void) close(sfd); in pfp_delete_rule()
2676 (void) close(sfd); in pfp_delete_rule()
2682 (void) close(sfd); in pfp_delete_rule()
2698 int sfd; in ipsec_conf_flush() local
2707 sfd = get_pf_pol_socket(); in ipsec_conf_flush()
2708 if (sfd < 0) { in ipsec_conf_flush()
2723 cnt = write(sfd, msg, len); in ipsec_conf_flush()
2734 cnt = read(sfd, msg, len); in ipsec_conf_flush()
2744 (void) close(sfd); in ipsec_conf_flush()
2781 int sfd; in ipsec_conf_admin() local
2787 sfd = get_pf_pol_socket(); in ipsec_conf_admin()
2788 if (sfd < 0) { in ipsec_conf_admin()
2804 cnt = write(sfd, msg, sizeof (buffer)); in ipsec_conf_admin()
2813 cnt = read(sfd, msg, sizeof (buffer)); in ipsec_conf_admin()
2821 (void) close(sfd); in ipsec_conf_admin()