Home
last modified time | relevance | path

Searched refs:ogp (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/stand/lib/inet/
H A Dudp.c170 udp_output(int index, struct inetgram *ogp) in udp_output() argument
176 printf("udp_output(%d): 0x%x, %d\n", index, ogp->igm_mp, in udp_output()
177 ogp->igm_mp->b_wptr - ogp->igm_mp->b_rptr); in udp_output()
180 mp = ogp->igm_mp; in udp_output()
184 udphp->uh_dport = ogp->igm_saddr.sin_port; in udp_output()
188 udphp->uh_sport = ogp->igm_saddr.sin_port; in udp_output()
194 &ogp->igm_saddr.sin_addr, sockets[index].proto); in udp_output()
197 ogp->igm_level = NETWORK_LVL; in udp_output()
H A Dipv4.c971 ipv4_output(int index, struct inetgram *ogp) in ipv4_output() argument
978 ogp->igm_mp->b_wptr - ogp->igm_mp->b_rptr); in ipv4_output()
982 if ((ogp->igm_mp->b_wptr - ogp->igm_mp->b_rptr) > mac_get_mtu()) { in ipv4_output()
988 if (ogp->igm_level != NETWORK_LVL) { in ipv4_output()
991 ogp->igm_level); in ipv4_output()
998 ogp->igm_oflags |= MSG_DONTROUTE; in ipv4_output()
1004 iphp->ip_len = htons(ogp->igm_mp->b_wptr - ogp->igm_mp->b_rptr + in ipv4_output()
1014 iphp->ip_dst = ogp->igm_saddr.sin_addr; in ipv4_output()
1029 ogp->igm_oflags |= MSG_DONTROUTE; in ipv4_output()
1033 if ((ogp->igm_oflags & MSG_DONTROUTE) == 0 && in ipv4_output()
[all …]
H A Dethernet.c491 ether_output(int index, struct inetgram *ogp) in ether_output() argument
504 ogp->igm_mp->b_wptr - ogp->igm_mp->b_rptr); in ether_output()
509 if (ogp->igm_level != MEDIA_LVL) { in ether_output()
517 mp = ogp->igm_mp; in ether_output()
553 if (ogp->igm_router.s_addr != htonl(INADDR_ANY)) in ether_output()
554 tmpip.s_addr = ogp->igm_router.s_addr; in ether_output()
579 index, ogp->igm_level, mp->b_rptr, size); in ether_output()
H A Dibd.c483 ibd_output(int index, struct inetgram *ogp) in ibd_output() argument
496 if (ogp->igm_level != MEDIA_LVL) { in ibd_output()
504 mp = ogp->igm_mp; in ibd_output()
531 if (ogp->igm_router.s_addr != htonl(INADDR_ANY)) in ibd_output()
532 tmpip.s_addr = ogp->igm_router.s_addr; in ibd_output()
557 index, ogp->igm_level, mp->b_rptr, size); in ibd_output()
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dlcl_ng.c235 struct ng_old_struct *gp, *ogp; in freelists() local
252 ogp = gp; in freelists()
254 if (ogp->ng_str[NG_HOST]) in freelists()
255 free(ogp->ng_str[NG_HOST]); in freelists()
256 if (ogp->ng_str[NG_USER]) in freelists()
257 free(ogp->ng_str[NG_USER]); in freelists()
258 if (ogp->ng_str[NG_DOM]) in freelists()
259 free(ogp->ng_str[NG_DOM]); in freelists()
260 free((char *)ogp); in freelists()