Lines Matching full:sg
181 struct sockaddr_ng *const sg = (struct sockaddr_ng *) sgbuf; in NgDeliverMsg() local
207 sg->sg_family = AF_NETGRAPH; in NgDeliverMsg()
209 strlcpy(sg->sg_data, path, NG_PATHSIZ); in NgDeliverMsg()
210 sg->sg_len = strlen(sg->sg_data) + 1 + NGSA_OVERHEAD; in NgDeliverMsg()
216 _NgDebugSockaddr(sg); in NgDeliverMsg()
217 _NgDebugMsg(msg, sg->sg_data); in NgDeliverMsg()
222 0, (struct sockaddr *) sg, sg->sg_len) < 0) { in NgDeliverMsg()
225 NGLOG("sendto(%s)", sg->sg_data); in NgDeliverMsg()
264 struct sockaddr_ng *const sg = (struct sockaddr_ng *) sgbuf; in NgRecvMsg() local
269 len = recvfrom(cs, rep, replen, 0, (struct sockaddr *) sg, &sglen); in NgRecvMsg()
277 strlcpy(path, sg->sg_data, NG_PATHSIZ); in NgRecvMsg()
283 _NgDebugSockaddr(sg); in NgRecvMsg()
284 _NgDebugMsg(rep, sg->sg_data); in NgRecvMsg()