Define a sotoinpcb_hdr() macro (a'la sotoinpcb()).

This commit is contained in:
thorpej 2004-03-02 02:11:14 +00:00
parent 68020cebc0
commit 979f197a86

View File

@ -1,4 +1,4 @@
/* $NetBSD: in_pcb_hdr.h,v 1.2 2003/10/28 17:18:37 provos Exp $ */
/* $NetBSD: in_pcb_hdr.h,v 1.3 2004/03/02 02:11:14 thorpej Exp $ */
/*
* Copyright (C) 2003 WIDE Project.
@ -84,6 +84,8 @@ struct inpcb_hdr {
#endif
};
#define sotoinpcb_hdr(so) ((struct inpcb_hdr *)(so)->so_pcb)
LIST_HEAD(inpcbhead, inpcb_hdr);
struct inpcbtable {