Lines Matching defs:vif

66  * TODO: Use bitstring.h for vif set.
182 VNET_DEFINE_STATIC(struct vif *, viftable);
340 static void phyint_send(struct ip *, struct vif *, struct mbuf *);
343 static int pim_register_send(struct ip *, struct vif *,
345 static int pim_register_send_rp(struct ip *, struct vif *,
347 static int pim_register_send_upcall(struct ip *, struct vif *,
350 static void send_packet(struct vif *, struct mbuf *);
584 * returns the input and output packet and byte counts on the vif provided
624 * 1. Walk the vif list, matching vifs against this ifnet.
626 * inner matches with this vif's index.
628 * 4. Free vif state. This should disable ALLMULTI on the interface.
835 * Add a vif to the vif table
840 struct vif *vifp = V_viftable + vifcp->vifc_vifi;
896 CTR2(KTR_IPMF, "%s: add register vif for ifp %p", __func__, ifp);
921 /* initialize per vif pkt counters */
933 CTR4(KTR_IPMF, "%s: add vif %d laddr 0x%08x thresh %x", __func__,
941 * Delete a vif from the vif table
946 struct vif *vifp;
966 CTR2(KTR_IPMF, "%s: delete vif %d", __func__, (int)vifi);
1340 if (vifi >= V_numvifs) /* vif not found, drop packet */
1498 * If xmt_vif is not -1, send on only the requested vif.
1511 * Don't forward if it didn't arrive from the parent vif for its origin.
1583 * For each vif, decide if a copy of the packet should be forwarded.
1585 * - the ttl exceeds the vif's threshold
1615 * Check if a vif number is legal/ok. This is used by in_mcast.c.
1618 X_legal_vif_num(int vif)
1623 if (vif < 0)
1627 if (vif < V_numvifs)
1635 * Return the local address used by this vif
1655 phyint_send(struct ip *ip, struct vif *vifp, struct mbuf *m)
1677 send_packet(struct vif *vifp, struct mbuf *m)
1697 CTR3(KTR_IPMF, "%s: vif %td err %d", __func__,
2322 pim_register_send(struct ip *ip, struct vif *vifp, struct mbuf *m,
2414 pim_register_send_upcall(struct ip *ip, struct vif *vifp,
2466 pim_register_send_rp(struct ip *ip, struct vif *vifp, struct mbuf *mb_copy,
2479 return EADDRNOTAVAIL; /* The iif vif is invalid */
2651 CTR2(KTR_IPMF, "%s: register vif not set: %d", __func__,
2745 "%s: forward decap'd REGISTER: src %lx dst %lx vif %d",
2823 sysctl_viflist, "S,vif[MAXVIFS]",
2824 "IPv4 Multicast Interfaces (struct vif[MAXVIFS], netinet/ip_mroute.h)");