0001-Adjust-for-musl-headers.patch 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. From 9a1841402ce3ef21a10a7314a07a615f8196d406 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Fri, 21 Jan 2022 22:19:37 -0800
  4. Subject: [PATCH] Adjust for musl headers
  5. Upstream-Status: Inappropriate [musl specific]
  6. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  7. ---
  8. src/libsystemd-network/sd-dhcp6-client.c | 2 +-
  9. src/network/netdev/bareudp.c | 2 +-
  10. src/network/netdev/batadv.c | 2 +-
  11. src/network/netdev/bond.c | 2 +-
  12. src/network/netdev/bridge.c | 2 +-
  13. src/network/netdev/dummy.c | 2 +-
  14. src/network/netdev/geneve.c | 2 +-
  15. src/network/netdev/ifb.c | 2 +-
  16. src/network/netdev/ipoib.c | 2 +-
  17. src/network/netdev/ipvlan.c | 2 +-
  18. src/network/netdev/macsec.c | 2 +-
  19. src/network/netdev/macvlan.c | 2 +-
  20. src/network/netdev/netdev.c | 2 +-
  21. src/network/netdev/netdevsim.c | 2 +-
  22. src/network/netdev/nlmon.c | 2 +-
  23. src/network/netdev/tunnel.c | 2 +-
  24. src/network/netdev/vcan.c | 2 +-
  25. src/network/netdev/veth.c | 2 +-
  26. src/network/netdev/vlan.c | 2 +-
  27. src/network/netdev/vrf.c | 2 +-
  28. src/network/netdev/vxcan.c | 2 +-
  29. src/network/netdev/vxlan.c | 2 +-
  30. src/network/netdev/wireguard.c | 2 +-
  31. src/network/netdev/xfrm.c | 2 +-
  32. src/network/networkd-bridge-mdb.c | 4 ++--
  33. src/network/networkd-dhcp-common.c | 3 ++-
  34. src/network/networkd-dhcp-prefix-delegation.c | 4 ++--
  35. src/network/networkd-dhcp-server.c | 2 +-
  36. src/network/networkd-dhcp4.c | 2 +-
  37. src/network/networkd-ipv6ll.c | 2 +-
  38. src/network/networkd-link.c | 2 +-
  39. src/network/networkd-ndisc.c | 2 +-
  40. src/network/networkd-route.c | 8 ++++----
  41. src/network/networkd-setlink.c | 2 +-
  42. src/shared/linux/ethtool.h | 3 ++-
  43. src/shared/netif-util.c | 2 +-
  44. src/udev/udev-builtin-net_id.c | 2 +-
  45. 37 files changed, 44 insertions(+), 42 deletions(-)
  46. --- a/src/libsystemd-network/sd-dhcp6-client.c
  47. +++ b/src/libsystemd-network/sd-dhcp6-client.c
  48. @@ -5,7 +5,7 @@
  49. #include <errno.h>
  50. #include <sys/ioctl.h>
  51. -#include <linux/if_arp.h>
  52. +//#include <linux/if_arp.h>
  53. #include <linux/if_infiniband.h>
  54. #include "sd-dhcp6-client.h"
  55. --- a/src/network/netdev/bareudp.c
  56. +++ b/src/network/netdev/bareudp.c
  57. @@ -2,7 +2,7 @@
  58. * Copyright © 2020 VMware, Inc. */
  59. #include <netinet/in.h>
  60. -#include <linux/if_arp.h>
  61. +//#include <linux/if_arp.h>
  62. #include "bareudp.h"
  63. #include "netlink-util.h"
  64. --- a/src/network/netdev/batadv.c
  65. +++ b/src/network/netdev/batadv.c
  66. @@ -3,7 +3,7 @@
  67. #include <inttypes.h>
  68. #include <netinet/in.h>
  69. #include <linux/genetlink.h>
  70. -#include <linux/if_arp.h>
  71. +//#include <linux/if_arp.h>
  72. #include "batadv.h"
  73. #include "fileio.h"
  74. --- a/src/network/netdev/bond.c
  75. +++ b/src/network/netdev/bond.c
  76. @@ -1,7 +1,7 @@
  77. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  78. #include <netinet/in.h>
  79. -#include <linux/if_arp.h>
  80. +//#include <linux/if_arp.h>
  81. #include "alloc-util.h"
  82. #include "bond.h"
  83. --- a/src/network/netdev/bridge.c
  84. +++ b/src/network/netdev/bridge.c
  85. @@ -2,7 +2,7 @@
  86. #include <net/if.h>
  87. #include <netinet/in.h>
  88. -#include <linux/if_arp.h>
  89. +//#include <linux/if_arp.h>
  90. #include <linux/if_bridge.h>
  91. #include "bridge.h"
  92. --- a/src/network/netdev/dummy.c
  93. +++ b/src/network/netdev/dummy.c
  94. @@ -1,6 +1,6 @@
  95. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  96. -#include <linux/if_arp.h>
  97. +//#include <linux/if_arp.h>
  98. #include "dummy.h"
  99. --- a/src/network/netdev/geneve.c
  100. +++ b/src/network/netdev/geneve.c
  101. @@ -2,7 +2,7 @@
  102. #include <net/if.h>
  103. #include <netinet/in.h>
  104. -#include <linux/if_arp.h>
  105. +//#include <linux/if_arp.h>
  106. #include "alloc-util.h"
  107. #include "conf-parser.h"
  108. --- a/src/network/netdev/ifb.c
  109. +++ b/src/network/netdev/ifb.c
  110. @@ -1,7 +1,7 @@
  111. /* SPDX-License-Identifier: LGPL-2.1-or-later
  112. * Copyright © 2019 VMware, Inc. */
  113. -#include <linux/if_arp.h>
  114. +//#include <linux/if_arp.h>
  115. #include "ifb.h"
  116. --- a/src/network/netdev/ipoib.c
  117. +++ b/src/network/netdev/ipoib.c
  118. @@ -1,6 +1,6 @@
  119. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  120. -#include <linux/if_arp.h>
  121. +//#include <linux/if_arp.h>
  122. #include <linux/if_link.h>
  123. #include "ipoib.h"
  124. --- a/src/network/netdev/ipvlan.c
  125. +++ b/src/network/netdev/ipvlan.c
  126. @@ -2,7 +2,7 @@
  127. #include <net/if.h>
  128. #include <netinet/in.h>
  129. -#include <linux/if_arp.h>
  130. +//#include <linux/if_arp.h>
  131. #include "conf-parser.h"
  132. #include "ipvlan.h"
  133. --- a/src/network/netdev/macsec.c
  134. +++ b/src/network/netdev/macsec.c
  135. @@ -1,7 +1,7 @@
  136. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  137. #include <netinet/in.h>
  138. -#include <linux/if_arp.h>
  139. +//#include <linux/if_arp.h>
  140. #include <linux/if_ether.h>
  141. #include <linux/if_macsec.h>
  142. #include <linux/genetlink.h>
  143. --- a/src/network/netdev/macvlan.c
  144. +++ b/src/network/netdev/macvlan.c
  145. @@ -2,7 +2,7 @@
  146. #include <net/if.h>
  147. #include <netinet/in.h>
  148. -#include <linux/if_arp.h>
  149. +//#include <linux/if_arp.h>
  150. #include "conf-parser.h"
  151. #include "macvlan.h"
  152. --- a/src/network/netdev/netdev.c
  153. +++ b/src/network/netdev/netdev.c
  154. @@ -2,7 +2,7 @@
  155. #include <net/if.h>
  156. #include <netinet/in.h>
  157. -#include <linux/if_arp.h>
  158. +//#include <linux/if_arp.h>
  159. #include <unistd.h>
  160. #include "alloc-util.h"
  161. --- a/src/network/netdev/netdevsim.c
  162. +++ b/src/network/netdev/netdevsim.c
  163. @@ -1,6 +1,6 @@
  164. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  165. -#include <linux/if_arp.h>
  166. +//#include <linux/if_arp.h>
  167. #include "netdevsim.h"
  168. --- a/src/network/netdev/nlmon.c
  169. +++ b/src/network/netdev/nlmon.c
  170. @@ -1,6 +1,6 @@
  171. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  172. -#include <linux/if_arp.h>
  173. +//#include <linux/if_arp.h>
  174. #include "nlmon.h"
  175. --- a/src/network/netdev/tunnel.c
  176. +++ b/src/network/netdev/tunnel.c
  177. @@ -2,7 +2,7 @@
  178. #include <netinet/in.h>
  179. #include <linux/fou.h>
  180. -#include <linux/if_arp.h>
  181. +//#include <linux/if_arp.h>
  182. #include <linux/if_tunnel.h>
  183. #include <linux/ip.h>
  184. #include <linux/ip6_tunnel.h>
  185. --- a/src/network/netdev/vcan.c
  186. +++ b/src/network/netdev/vcan.c
  187. @@ -1,6 +1,6 @@
  188. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  189. -#include <linux/if_arp.h>
  190. +//#include <linux/if_arp.h>
  191. #include "vcan.h"
  192. --- a/src/network/netdev/veth.c
  193. +++ b/src/network/netdev/veth.c
  194. @@ -3,7 +3,7 @@
  195. #include <errno.h>
  196. #include <net/if.h>
  197. #include <netinet/in.h>
  198. -#include <linux/if_arp.h>
  199. +//#include <linux/if_arp.h>
  200. #include <linux/veth.h>
  201. #include "netlink-util.h"
  202. --- a/src/network/netdev/vlan.c
  203. +++ b/src/network/netdev/vlan.c
  204. @@ -2,7 +2,7 @@
  205. #include <errno.h>
  206. #include <net/if.h>
  207. -#include <linux/if_arp.h>
  208. +//#include <linux/if_arp.h>
  209. #include <linux/if_vlan.h>
  210. #include "parse-util.h"
  211. --- a/src/network/netdev/vrf.c
  212. +++ b/src/network/netdev/vrf.c
  213. @@ -2,7 +2,7 @@
  214. #include <net/if.h>
  215. #include <netinet/in.h>
  216. -#include <linux/if_arp.h>
  217. +//#include <linux/if_arp.h>
  218. #include "vrf.h"
  219. --- a/src/network/netdev/vxcan.c
  220. +++ b/src/network/netdev/vxcan.c
  221. @@ -1,7 +1,7 @@
  222. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  223. #include <linux/can/vxcan.h>
  224. -#include <linux/if_arp.h>
  225. +//#include <linux/if_arp.h>
  226. #include "vxcan.h"
  227. --- a/src/network/netdev/vxlan.c
  228. +++ b/src/network/netdev/vxlan.c
  229. @@ -2,7 +2,7 @@
  230. #include <net/if.h>
  231. #include <netinet/in.h>
  232. -#include <linux/if_arp.h>
  233. +//#include <linux/if_arp.h>
  234. #include "conf-parser.h"
  235. #include "alloc-util.h"
  236. --- a/src/network/netdev/wireguard.c
  237. +++ b/src/network/netdev/wireguard.c
  238. @@ -6,7 +6,7 @@
  239. #include <sys/ioctl.h>
  240. #include <net/if.h>
  241. #include <netinet/in.h>
  242. -#include <linux/if_arp.h>
  243. +//#include <linux/if_arp.h>
  244. #include <linux/ipv6_route.h>
  245. #include "sd-resolve.h"
  246. --- a/src/network/netdev/xfrm.c
  247. +++ b/src/network/netdev/xfrm.c
  248. @@ -1,6 +1,6 @@
  249. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  250. -#include <linux/if_arp.h>
  251. +//#include <linux/if_arp.h>
  252. #include "missing_network.h"
  253. #include "xfrm.h"
  254. --- a/src/network/networkd-bridge-mdb.c
  255. +++ b/src/network/networkd-bridge-mdb.c
  256. @@ -1,7 +1,5 @@
  257. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  258. -#include <net/if.h>
  259. -#include <linux/if_bridge.h>
  260. #include "netlink-util.h"
  261. #include "networkd-bridge-mdb.h"
  262. @@ -11,6 +9,8 @@
  263. #include "networkd-queue.h"
  264. #include "string-util.h"
  265. #include "vlan-util.h"
  266. +#include <net/if.h>
  267. +#include <linux/if_bridge.h>
  268. #define STATIC_BRIDGE_MDB_ENTRIES_PER_NETWORK_MAX 1024U
  269. --- a/src/network/networkd-dhcp-common.c
  270. +++ b/src/network/networkd-dhcp-common.c
  271. @@ -1,7 +1,8 @@
  272. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  273. #include <netinet/in.h>
  274. -#include <linux/if_arp.h>
  275. +//#include <linux/if_arp.h>
  276. +#include <net/if.h>
  277. #include "bus-error.h"
  278. #include "bus-locator.h"
  279. --- a/src/network/networkd-dhcp-prefix-delegation.c
  280. +++ b/src/network/networkd-dhcp-prefix-delegation.c
  281. @@ -1,7 +1,5 @@
  282. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  283. -#include <linux/ipv6_route.h>
  284. -
  285. #include "sd-dhcp6-client.h"
  286. #include "hashmap.h"
  287. @@ -21,6 +19,8 @@
  288. #include "strv.h"
  289. #include "tunnel.h"
  290. +#include <linux/ipv6_route.h>
  291. +
  292. bool link_dhcp_pd_is_enabled(Link *link) {
  293. assert(link);
  294. --- a/src/network/networkd-dhcp-server.c
  295. +++ b/src/network/networkd-dhcp-server.c
  296. @@ -1,7 +1,7 @@
  297. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  298. #include <netinet/in.h>
  299. -#include <linux/if_arp.h>
  300. +//#include <linux/if_arp.h>
  301. #include <linux/if.h>
  302. #include "sd-dhcp-server.h"
  303. --- a/src/network/networkd-dhcp4.c
  304. +++ b/src/network/networkd-dhcp4.c
  305. @@ -3,7 +3,7 @@
  306. #include <netinet/in.h>
  307. #include <netinet/ip.h>
  308. #include <linux/if.h>
  309. -#include <linux/if_arp.h>
  310. +//#include <linux/if_arp.h>
  311. #include "alloc-util.h"
  312. #include "dhcp-client-internal.h"
  313. --- a/src/network/networkd-ipv6ll.c
  314. +++ b/src/network/networkd-ipv6ll.c
  315. @@ -1,7 +1,7 @@
  316. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  317. #include <linux/if.h>
  318. -#include <linux/if_arp.h>
  319. +//#include <linux/if_arp.h>
  320. #include "in-addr-util.h"
  321. #include "networkd-address.h"
  322. --- a/src/network/networkd-link.c
  323. +++ b/src/network/networkd-link.c
  324. @@ -3,7 +3,7 @@
  325. #include <net/if.h>
  326. #include <netinet/in.h>
  327. #include <linux/if.h>
  328. -#include <linux/if_arp.h>
  329. +//#include <linux/if_arp.h>
  330. #include <linux/if_link.h>
  331. #include <linux/netdevice.h>
  332. #include <sys/socket.h>
  333. --- a/src/network/networkd-ndisc.c
  334. +++ b/src/network/networkd-ndisc.c
  335. @@ -6,7 +6,7 @@
  336. #include <arpa/inet.h>
  337. #include <netinet/icmp6.h>
  338. #include <linux/if.h>
  339. -#include <linux/if_arp.h>
  340. +//#include <linux/if_arp.h>
  341. #include "sd-ndisc.h"
  342. --- a/src/network/networkd-route.c
  343. +++ b/src/network/networkd-route.c
  344. @@ -1,9 +1,5 @@
  345. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  346. -#include <linux/icmpv6.h>
  347. -#include <linux/ipv6_route.h>
  348. -#include <linux/nexthop.h>
  349. -
  350. #include "alloc-util.h"
  351. #include "event-util.h"
  352. #include "netlink-util.h"
  353. @@ -21,6 +17,10 @@
  354. #include "vrf.h"
  355. #include "wireguard.h"
  356. +#include <linux/icmpv6.h>
  357. +#include <linux/ipv6_route.h>
  358. +#include <linux/nexthop.h>
  359. +
  360. int route_new(Route **ret) {
  361. _cleanup_(route_freep) Route *route = NULL;
  362. --- a/src/network/networkd-setlink.c
  363. +++ b/src/network/networkd-setlink.c
  364. @@ -2,7 +2,7 @@
  365. #include <netinet/in.h>
  366. #include <linux/if.h>
  367. -#include <linux/if_arp.h>
  368. +//#include <linux/if_arp.h>
  369. #include <linux/if_bridge.h>
  370. #include "missing_network.h"
  371. --- a/src/shared/linux/ethtool.h
  372. +++ b/src/shared/linux/ethtool.h
  373. @@ -16,7 +16,8 @@
  374. #include <linux/const.h>
  375. #include <linux/types.h>
  376. -#include <linux/if_ether.h>
  377. +#include <netinet/if_ether.h>
  378. +//#include <linux/if_ether.h>
  379. #ifndef __KERNEL__
  380. #include <limits.h> /* for INT_MAX */
  381. --- a/src/shared/netif-util.c
  382. +++ b/src/shared/netif-util.c
  383. @@ -1,7 +1,7 @@
  384. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  385. #include <linux/if.h>
  386. -#include <linux/if_arp.h>
  387. +//#include <linux/if_arp.h>
  388. #include "arphrd-util.h"
  389. #include "device-util.h"
  390. --- a/src/udev/udev-builtin-net_id.c
  391. +++ b/src/udev/udev-builtin-net_id.c
  392. @@ -18,7 +18,7 @@
  393. #include <stdarg.h>
  394. #include <unistd.h>
  395. #include <linux/if.h>
  396. -#include <linux/if_arp.h>
  397. +//#include <linux/if_arp.h>
  398. #include <linux/netdevice.h>
  399. #include <linux/pci_regs.h>