mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
Make the sg_len and sg_family members of the sockaddr_ng the same type
as the corresponding values in sockaddr are.
This commit is contained in:
parent
bb964e745b
commit
81ba27c8d9
1 changed files with 3 additions and 5 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue