summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_socket.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2006-10-17 11:03:55 +0000
committerglebius <glebius@FreeBSD.org>2006-10-17 11:03:55 +0000
commit3dd1e0f2c57ee8c6254a40d936b864482e01f428 (patch)
tree5535f498aa8468c09d8889edf538fe496dab6c17 /sys/netgraph/ng_socket.h
parent39416e7f98e62991e6c0f61203c06dfff3813460 (diff)
downloadFreeBSD-src-3dd1e0f2c57ee8c6254a40d936b864482e01f428.zip
FreeBSD-src-3dd1e0f2c57ee8c6254a40d936b864482e01f428.tar.gz
Make the sg_len and sg_family members of the sockaddr_ng the same type
as the corresponding values in sockaddr are.
Diffstat (limited to 'sys/netgraph/ng_socket.h')
-rw-r--r--sys/netgraph/ng_socket.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/netgraph/ng_socket.h b/sys/netgraph/ng_socket.h
index 204f11d..b7e8310 100644
--- a/sys/netgraph/ng_socket.h
+++ b/sys/netgraph/ng_socket.h
@@ -58,13 +58,11 @@ enum {
NGM_SOCK_CMD_LINGER /* Keep socket even if 0 hooks */
};
-
-
/* Netgraph version of struct sockaddr */
struct sockaddr_ng {
- u_char sg_len; /* total length */
- u_char sg_family; /* address family */
- char sg_data[14]; /* actually longer; address value */
+ unsigned char sg_len; /* total length */
+ sa_family_t sg_family; /* address family */
+ char sg_data[14]; /* actually longer; address value */
};
#endif /* _NETGRAPH_NG_SOCKET_H_ */
OpenPOWER on IntegriCloud