linux_common.h (d151344dbff98b00c52437f953183853064c4783) linux_common.h (d5368bf3dff2b4627e2d69cce5c5dd98428fdaba)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright (c) 2019 Dmitry Chagin
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 21 unchanged lines hidden (view full) ---

30#ifndef _LINUX_COMMON_H_
31#define _LINUX_COMMON_H_
32
33struct ifnet *ifname_linux_to_bsd(struct thread *td,
34 const char *lxname, char *bsdname);
35void linux_ifflags(struct ifnet *ifp, short *flags);
36int linux_ifhwaddr(struct ifnet *ifp, struct l_sockaddr *lsa);
37
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright (c) 2019 Dmitry Chagin
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 21 unchanged lines hidden (view full) ---

30#ifndef _LINUX_COMMON_H_
31#define _LINUX_COMMON_H_
32
33struct ifnet *ifname_linux_to_bsd(struct thread *td,
34 const char *lxname, char *bsdname);
35void linux_ifflags(struct ifnet *ifp, short *flags);
36int linux_ifhwaddr(struct ifnet *ifp, struct l_sockaddr *lsa);
37
38int linux_to_bsd_domain(int domain);
39int bsd_to_linux_domain(int domain);
40int bsd_to_linux_sockaddr(const struct sockaddr *sa,
41 struct l_sockaddr **lsa, socklen_t len);
42int linux_to_bsd_sockaddr(const struct l_sockaddr *lsa,
43 struct sockaddr **sap, socklen_t *len);
44
38#endif /* _LINUX_COMMON_H_ */
45#endif /* _LINUX_COMMON_H_ */