1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2022 Felix Fietkau <nbd@nbd.name>
8 #include <libubox/uloop.h>
18 PEX_EV_ENDPOINT_CHANGE
,
23 void network_pex_init(struct network
*net
);
24 int network_pex_open(struct network
*net
);
25 void network_pex_close(struct network
*net
);
27 void network_pex_event(struct network
*net
, struct network_peer
*peer
,
30 static inline bool network_pex_active(struct network_pex
*pex
)
32 return pex
->fd
.fd
>= 0;