Home | History | Annotate | Download | only in netinet

Lines Matching refs:vif

167 struct vif	viftable[MAXVIFS];
180 /* vif attachment using sys/netinet/ip_encap.c */
218 static void phyint_send(struct ip *, struct vif *, struct mbuf *);
219 static void encap_send(struct ip *, struct vif *, struct mbuf *);
220 static void tbf_control(struct vif *, struct mbuf *, struct ip *, u_int32_t);
221 static void tbf_queue(struct vif *, struct mbuf *);
222 static void tbf_process_q(struct vif *);
224 static int tbf_dq_sel(struct vif *, struct ip *);
225 static void tbf_send_packet(struct vif *, struct mbuf *);
226 static void tbf_update_tokens(struct vif *);
227 static int priority(struct vif *, struct ip *);
247 static int pim_register_send(struct ip *, struct vif *,
249 static int pim_register_send_rp(struct ip *, struct vif *,
251 static int pim_register_send_upcall(struct ip *, struct vif *,
563 * returns the input and output packet and byte counts on the vif provided
634 struct vif *vifp;
691 struct vif *vifp;
756 * Add a vif to the vif table
761 struct vif *vifp;
807 /* attach this vif to decapsulator dispatch table */
835 log(LOG_DEBUG, "Adding a register vif, ifp: %p\n",
875 /* Initialize per vif pkt counters. */
902 reset_vif(struct vif *vifp)
910 /* detach this vif from decapsulator dispatch table */
939 * Delete a vif from the vif table
944 struct vif *vifp;
1417 if (vifi >= numvifs) /* vif not found, drop packet */
1572 * Macro to send packet on vif.
1589 struct vif *vifp;
1594 * Don't forward if it didn't arrive from the parent vif for its origin.
1686 * For each vif, decide if a copy of the packet should be forwarded.
1688 * - the ttl exceeds the vif's threshold
1721 phyint_send(struct ip *ip, struct vif *vifp, struct mbuf *m)
1744 encap_send(struct ip *ip, struct vif *vifp, struct mbuf *m)
1814 struct vif *vifp = eparg;
1833 * Check if the packet should be received on the vif denoted by arg.
1834 * (The encap selection code will call this once per vif since each is
1840 struct vif *vifp;
1850 * and the outer header matches a tunnel-mode vif. Order
1856 /* Obtain the outer IP header and the vif pointer. */
1858 vifp = (struct vif *)arg;
1861 * The outer source must match the vif's remote peer address.
1869 /* The outer destination must match the vif's local address. */
1873 /* The vif must be of tunnel type. */
1886 * match the vif, and that the inner destination is multicast
1898 tbf_control(struct vif *vifp, struct mbuf *m, struct ip *ip, u_int32_t len)
1912 * out immediately. Otherwise, try to insert it on this vif's queue.
1942 tbf_queue(struct vif *vifp, struct mbuf *m)
1958 tbf_process_q(struct vif *vifp)
1993 struct vif *vifp = arg;
2010 tbf_dq_sel(struct vif *vifp, struct ip *ip)
2037 tbf_send_packet(struct vif *vifp, struct mbuf *m)
2057 log(LOG_DEBUG, "phyint_send on vif %ld err %d\n",
2068 tbf_update_tokens(struct vif *vifp)
2097 priority(struct vif *vifp, struct ip *ip)
2725 pim_register_send(struct ip *ip, struct vif *vifp, struct mbuf *m,
2812 pim_register_send_upcall(struct ip *ip, struct vif *vifp,
2867 pim_register_send_rp(struct ip *ip, struct vif *vifp,
2878 return EADDRNOTAVAIL; /* The iif vif is invalid */
3052 "pim_input: register vif not set: %d\n", reg_vif_num);
3167 "src %lx, dst %lx, vif %d\n",