Lines Matching defs:igp

250  * Load the assembled fragments into igp. Returns 0 for success, nonzero
254 frag_load(struct inetgram *igp)
267 mp = igp->igm_mp;
578 * Construct a transport datagram from a series of IP fragments (igp == NULL)
579 * or from a single IP datagram (igp != NULL). Return the address of the
583 make_trans_datagram(int index, struct inetgram *igp, struct in_addr ipsrc,
592 fragmented = (igp == NULL);
623 iph = (struct ip *)igp->igm_mp->b_rptr;
625 transp = (uint16_t *)(igp->igm_mp->b_rptr + iphlen);
656 bcopy((caddr_t)(igp->igm_mp->b_rptr),
695 struct inetgram *igp, *newgp = NULL, *ipv4_listp = NULL;
709 while ((igp = sockets[index].inq) != NULL) {
710 if (igp->igm_level != NETWORK_LVL) {
713 index, igp->igm_level);
715 del_gram(&sockets[index].inq, igp, TRUE);
718 iphp = (struct ip *)igp->igm_mp->b_rptr;
722 del_gram(&sockets[index].inq, igp, TRUE);
729 del_gram(&sockets[index].inq, igp, TRUE);
733 if (iplen > msgdsize(igp->igm_mp)) {
735 "(%d > %lu)\n", index, iplen, igp->igm_mp->b_size);
736 del_gram(&sockets[index].inq, igp, TRUE);
745 /* igp->igm_mp->b_datap is guaranteed to be 64 bit aligned] */
749 del_gram(&sockets[index].inq, igp, TRUE);
763 del_gram(&sockets[index].inq, igp, TRUE);
770 icmp4(igp, iphp, iphlen, ipsrc);
771 del_gram(&sockets[index].inq, igp, TRUE);
778 index, ntohs(iphp->ip_id), iphp->ip_p, igp, igp->igm_mp,
779 igp->igm_mp->b_size);
787 del_gram(&sockets[index].inq, igp, FALSE);
788 add_grams(&ipv4_listp, igp);
789 igp->igm_mp->b_rptr += iphlen;
790 igp->igm_mp->b_wptr = igp->igm_mp->b_rptr + iplen;
800 del_gram(&sockets[index].inq, igp, TRUE);
819 mp = igp->igm_mp;
821 sockets[index].headerlen[TRANSPORT_LVL](igp)) {
825 del_gram(&sockets[index].inq, igp, TRUE);
839 del_gram(&sockets[index].inq, igp, TRUE);
846 frag_stat = frag_add(curr_off, igp->igm_mp,
860 igp, TRUE);
864 del_gram(&sockets[index].inq, igp, FALSE);
866 bkmem_free((caddr_t)igp,
875 newgp = make_trans_datagram(index, igp,
881 del_gram(&sockets[index].inq, igp,
887 frag_stat = frag_add(curr_off, igp->igm_mp,
897 del_gram(&sockets[index].inq, igp, FALSE);
899 bkmem_free((caddr_t)igp,
911 del_gram(&sockets[index].inq, igp, TRUE);
920 * fragment table, and the inetgram (igp) has been