aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/proxy.xml
blob: 766cbb4c0fbfc5a5f6881cab543f3de7137ca849 (plain)
1
2
3
4
5
6
7
8
9
<proxy>
  <enabled config:type="boolean">true</enabled>
  <ftp_proxy></ftp_proxy>
  <http_proxy>$proxy</http_proxy>
  <https_proxy></https_proxy>
  <no_proxy>localhost, 127.0.0.1</no_proxy>
  <proxy_password></proxy_password>
  <proxy_user></proxy_user>
</proxy>
d */ crc = crc32c(crc, &zero, sizeof(__u32)); /* Calculate the rest of the CRC. */ return crc32c(crc, &buffer[cksum_offset + sizeof(__be32)], length - (cksum_offset + sizeof(__be32))); } /* * Convert the intermediate checksum to the final ondisk format. * * The CRC32c calculation uses LE format even on BE machines, but returns the * result in host endian format. Hence we need to byte swap it back to LE format * so that it is consistent on disk. */ static inline __le32 xfs_end_cksum(__uint32_t crc) { return ~cpu_to_le32(crc); } /* * Helper to generate the checksum for a buffer. */ static inline void xfs_update_cksum(char *buffer, size_t length, unsigned long cksum_offset) { __uint32_t crc = xfs_start_cksum(buffer, length, cksum_offset); *(__le32 *)(buffer + cksum_offset) = xfs_end_cksum(crc); } /* * Helper to verify the checksum for a buffer. */ static inline int xfs_verify_cksum(char *buffer, size_t length, unsigned long cksum_offset) { __uint32_t crc = xfs_start_cksum(buffer, length, cksum_offset); return *(__le32 *)(buffer + cksum_offset) == xfs_end_cksum(crc); } #endif /* _XFS_CKSUM_H */