Searched refs:kif (Results 1 - 13 of 13) sorted by relevance

/freebsd-9.3-release/lib/libutil/
H A Dkinfo_getfile.c20 struct kinfo_file *kif, *kp, *kf; local
51 kif = calloc(cnt, sizeof(*kif));
52 if (kif == NULL) {
58 kp = kif;
72 return (kif); /* Caller must free() return value */
/freebsd-9.3-release/sys/contrib/pf/net/
H A Dpf_if.c222 struct pfi_kif *kif; local
228 if ((kif = RB_FIND(pfi_ifhead, &V_pfi_ifs, (struct pfi_kif *)&s)) != NULL)
230 if ((kif = RB_FIND(pfi_ifhead, &pfi_ifs, (struct pfi_kif *)&s)) != NULL)
232 return (kif);
236 if ((kif = malloc(sizeof(*kif), PFI_MTYPE, M_NOWAIT | M_ZERO)) == NULL)
238 if ((kif = malloc(sizeof(*kif), PFI_MTYPE, M_DONTWAIT|M_ZERO)) == NULL)
242 strlcpy(kif->pfik_name, kif_name, sizeof(kif
267 pfi_kif_ref(struct pfi_kif *kif, enum pfi_kif_refs what) argument
282 pfi_kif_unref(struct pfi_kif *kif, enum pfi_kif_refs what) argument
345 struct pfi_kif *kif; local
377 struct pfi_kif *kif; local
402 struct pfi_kif *kif; local
425 struct pfi_kif *kif; local
446 struct pfi_kif *kif; local
579 pfi_kif_update(struct pfi_kif *kif) argument
598 struct pfi_kif *kif; local
624 pfi_table_update(struct pfr_ktable *kt, struct pfi_kif *kif, int net, int flags) argument
836 struct pfi_kif *kif = (struct pfi_kif *)v; local
[all...]
H A Dpf.c877 /* key exists. check for same kif, if none, add to key */
879 if (si->s->kif == s->kif &&
898 s->kif->pfik_name);
941 if (s->kif == V_pfi_all)
943 if (s->kif == pfi_all)
1075 pf_state_insert(struct pfi_kif *kif, struct pf_state_key *skw, argument
1082 s->kif = kif;
1140 pfi_kif_ref(kif, PFI_KIF_REF_STAT
1168 pf_compare_state_keys(struct pf_state_key *a, struct pf_state_key *b, struct pfi_kif *kif, u_int dir) argument
1199 pf_find_state(struct pfi_kif *kif, struct pf_state_key_cmp *key, u_int dir, struct mbuf *m, struct pf_mtag *pftag) argument
3334 pf_test_rule(struct pf_rule **rm, struct pf_state **sm, int direction, struct pfi_kif *kif, struct mbuf *m, int off, void *h, struct pf_pdesc *pd, struct pf_rule **am, struct pf_ruleset **rsm, struct ifqueue *ifq, struct inpcb *inp) argument
3825 pf_create_state(struct pf_rule *r, struct pf_rule *nr, struct pf_rule *a, struct pf_pdesc *pd, struct pf_src_node *nsn, struct pf_state_key *skw, struct pf_state_key *sks, struct pf_state_key *nk, struct pf_state_key *sk, struct mbuf *m, int off, u_int16_t sport, u_int16_t dport, int *rewrite, struct pfi_kif *kif, struct pf_state **sm, int tag, u_int16_t bproto_sum, u_int16_t bip_sum, int hdrlen) argument
4093 pf_test_fragment(struct pf_rule **rm, int direction, struct pfi_kif *kif, struct mbuf *m, void *h, struct pf_pdesc *pd, struct pf_rule **am, struct pf_ruleset **rsm) argument
4188 pf_tcp_track_full(struct pf_state_peer *src, struct pf_state_peer *dst, struct pf_state **state, struct pfi_kif *kif, struct mbuf *m, int off, struct pf_pdesc *pd, u_short *reason, int *copyback) argument
4609 pf_test_state_tcp(struct pf_state **state, int direction, struct pfi_kif *kif, struct mbuf *m, int off, void *h, struct pf_pdesc *pd, u_short *reason) argument
4806 pf_test_state_udp(struct pf_state **state, int direction, struct pfi_kif *kif, struct mbuf *m, int off, void *h, struct pf_pdesc *pd) argument
4880 pf_test_state_icmp(struct pf_state **state, int direction, struct pfi_kif *kif, struct mbuf *m, int off, void *h, struct pf_pdesc *pd, u_short *reason) argument
5579 pf_test_state_other(struct pf_state **state, int direction, struct pfi_kif *kif, struct mbuf *m, struct pf_pdesc *pd) argument
5722 pf_routable(struct pf_addr *addr, sa_family_t af, struct pfi_kif *kif, int rtableid) argument
6661 struct pfi_kif *kif; local
7150 struct pfi_kif *kif; local
[all...]
H A Dif_pflog.c326 pflog_packet(struct pfi_kif *kif, struct mbuf *m, sa_family_t af, u_int8_t dir, argument
334 if (kif == NULL || m == NULL || rm == NULL || pd == NULL)
345 memcpy(hdr.ifname, kif->pfik_name, sizeof(hdr.ifname));
H A Dpf_lb.c231 int direction, struct pfi_kif *kif, struct pf_addr *saddr, u_int16_t sport,
255 if (pfi_kif_match(r->kif, kif) == r->ifnot)
264 src->neg, kif, M_GETFIB(m)))
621 struct pfi_kif *kif, struct pf_src_node **sn,
631 r = pf_match_translation(pd, m, off, direction, kif, saddr,
634 r = pf_match_translation(pd, m, off, direction, kif,
637 r = pf_match_translation(pd, m, off, direction, kif, saddr,
640 r = pf_match_translation(pd, m, off, direction, kif,
230 pf_match_translation(struct pf_pdesc *pd, struct mbuf *m, int off, int direction, struct pfi_kif *kif, struct pf_addr *saddr, u_int16_t sport, struct pf_addr *daddr, u_int16_t dport, int rs_num) argument
H A Dpf_norm.c1137 pf_normalize_ip(struct mbuf **m0, int dir, struct pfi_kif *kif, u_short *reason, argument
1156 if (pfi_kif_match(r->kif, kif) == r->ifnot)
1166 r->src.neg, kif, M_GETFIB(m)))
1372 PFLOG_PACKET(kif, h, m, AF_INET, dir, *reason, r, NULL, NULL, pd);
1378 PFLOG_PACKET(kif, h, m, AF_INET, dir, *reason, r, NULL, NULL, pd);
1390 PFLOG_PACKET(kif, h, m, AF_INET, dir, *reason, r, NULL, NULL, pd);
1398 pf_normalize_ip6(struct mbuf **m0, int dir, struct pfi_kif *kif, argument
1419 if (pfi_kif_match(r->kif, kif)
1574 pf_normalize_tcp(int dir, struct pfi_kif *kif, struct mbuf *m, int ipoff, int off, void *h, struct pf_pdesc *pd) argument
[all...]
H A Dpf_ioctl.c600 pfi_kif_unref(empty_pool_pa->kif, PFI_KIF_REF_RULE);
650 pfi_kif_unref(rule->kif, PFI_KIF_REF_RULE);
1710 rule->kif = NULL;
1745 rule->kif = pfi_kif_get(rule->ifname);
1746 if (rule->kif == NULL) {
1755 pfi_kif_ref(rule->kif, PFI_KIF_REF_RULE);
2024 newrule->kif = pfi_kif_get(newrule->ifname);
2025 if (newrule->kif == NULL) {
2034 pfi_kif_ref(newrule->kif, PFI_KIF_REF_RULE);
2036 newrule->kif
[all...]
H A Dpfvar.h453 struct pfi_kif *kif; member in struct:pf_pooladdr
622 struct pfi_kif *kif; member in struct:pf_rule
741 struct pfi_kif *kif; member in struct:pf_src_node
851 struct pfi_kif *kif; member in struct:pf_state
H A Dif_pfsync.c637 strlcpy(sp->ifname, st->kif->pfik_name, sizeof(sp->ifname));
687 struct pfi_kif *kif; local
703 if ((kif = pfi_kif_get(sp->ifname)) == NULL) {
823 if ((error = pf_state_insert(kif, skw, sks, st)) != 0) {
/freebsd-9.3-release/sys/kern/
H A Dkern_descrip.c128 static int fill_vnode_info(struct vnode *vp, struct kinfo_file *kif);
129 static int fill_socket_info(struct socket *so, struct kinfo_file *kif);
130 static int fill_pts_info(struct tty *tp, struct kinfo_file *kif);
131 static int fill_pipe_info(struct pipe *pi, struct kinfo_file *kif);
133 struct kinfo_file *kif);
134 static int fill_sem_info(struct file *fp, struct kinfo_file *kif);
135 static int fill_shm_info(struct file *fp, struct kinfo_file *kif);
2995 struct kinfo_ofile *kif, struct filedesc *fdp, struct sysctl_req *req)
3001 bzero(kif, sizeof(*kif));
2994 export_vnode_for_osysctl(struct vnode *vp, int type, struct kinfo_ofile *kif, struct filedesc *fdp, struct sysctl_req *req) argument
3043 struct kinfo_ofile *kif; local
3276 struct kinfo_file kif; member in struct:export_fd_buf
3305 struct kinfo_file *kif; local
3630 fill_vnode_info(struct vnode *vp, struct kinfo_file *kif) argument
3673 fill_socket_info(struct socket *so, struct kinfo_file *kif) argument
3727 fill_pts_info(struct tty *tp, struct kinfo_file *kif) argument
3738 fill_pipe_info(struct pipe *pi, struct kinfo_file *kif) argument
3750 fill_procdesc_info(struct procdesc *pdp, struct kinfo_file *kif) argument
3760 fill_sem_info(struct file *fp, struct kinfo_file *kif) argument
3779 fill_shm_info(struct file *fp, struct kinfo_file *kif) argument
[all...]
/freebsd-9.3-release/tools/regression/file/closefrom/
H A Dclosefrom.c116 struct kinfo_file *kif; local
119 kif = kinfo_getfile(getpid(), &cnt);
120 if (kif == NULL)
124 if (kif[i].kf_fd > highest)
125 highest = kif[i].kf_fd;
126 free(kif);
/freebsd-9.3-release/lib/libprocstat/
H A Dlibprocstat.c748 struct kinfo_file *kif, *kp, *kf; local
771 kif = calloc(cnt, sizeof(*kif));
772 if (kif == NULL) {
778 kp = kif;
792 return (kif); /* Caller must free() return value */
799 struct kinfo_file *kif, *files; local
837 kif = &files[i];
839 type = kinfo_type2fst(kif->kf_type);
840 fd = kif
944 struct kinfo_file *kif; local
1010 struct kinfo_file *kif; local
1093 struct kinfo_file *kif; local
1176 struct kinfo_file *kif; local
1332 struct kinfo_file *kif; local
1525 struct kinfo_file *kif; local
[all...]
/freebsd-9.3-release/contrib/pf/pfctl/
H A Dpfctl_optimize.c187 PF_RULE_FIELD(kif, DC),

Completed in 133 milliseconds