File white list sharing method and system of confidentiality check system based on UDP (User Datagram Protocol) multicast
Sharing and updating the file whitelist in the confidentiality inspection system through UDP multicast technology solves the problem of duplicate file inspection, realizes an efficient file inspection process, reduces network traffic and improves efficiency.
Patent Information
- Application Number
- CN202410527796.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-09-06
AI Technical Summary
When the existing confidentiality inspection system handles a large number of terminals, there is a problem of repeated file inspection, resulting in low efficiency.
The file whitelist sharing method based on UDP multicast is used to send and receive whitelist data through the UDP multicast network, perform deduplication processing and incremental updates, and skip files in the whitelist for inspection to improve inspection efficiency.
It reduces the amount of network communication data, improves the timeliness of data sharing and file checking efficiency, and reduces duplication of work.
Smart Images

Figure CN118611902A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet information security, and in particular to a file whitelist sharing method and system of a confidentiality check system based on UDP multicast. Background Art
[0002] With the rapid development of computer technology, enterprises and organizations have an increasing demand for computer terminal confidentiality inspection systems. The file inspection module in the computer terminal confidentiality inspection system is mainly used to check whether confidential files are illegally stored in computer terminals.
[0003] UDP multicast is a one-to-many transmission method. After joining a multicast group, the sender sends a copy of data to the group. The routers or switches in the network automatically send the data to all terminals listening to the group. UDP multicast can reduce the amount of network communication data and improve the real-time nature of data sharing.
[0004] When the existing confidentiality inspection system handles confidentiality inspection tasks for a large number of terminals, it will check all the files in each computer terminal. However, there are a large number of duplicate files in the computers of the same unit, which undoubtedly does a lot of repetitive work and cannot be inspected efficiently. Summary of the invention
[0005] In view of the above existing problems, the present invention is proposed.
[0006] Therefore, the present invention provides a file whitelist sharing method of a confidentiality inspection system based on UDP multicast, which can improve the efficiency of file inspection in the existing computer terminal confidentiality inspection system.
[0007] To solve the above technical problems, the present invention provides the following technical solutions, a file whitelist sharing method of a confidentiality inspection system based on UDP multicast, comprising: starting a computer terminal confidentiality inspection system client and joining the UDP multicast network, sending a whitelist request message to the UDP multicast network; broadcasting update whitelist messages from other clients and adding the received whitelist data to the local whitelist after deduplication processing; responding to whitelist request messages from other clients and broadcasting the whitelist data held by itself to the UDP multicast network; broadcasting the incremental whitelist data generated when the client itself performs file inspection to the UDP multicast network.
[0008] As a preferred solution of the file whitelist sharing method of the confidentiality inspection system based on UDP multicast described in the present invention, wherein: joining the UDP multicast network includes running a UDP socket program on the client, creating a UDP socket, and setting socket options, allowing joining the multicast group and setting the multicast timeout, entering a preset UDP multicast address and port in the program and calling a function, adding the IP address of the local interface to the multicast group, processing received messages in the program, performing corresponding operations according to the message type, entering an instruction to exit the multicast group in the program and calling a function, and removing the IP address of the local interface from the multicast group.
[0009] As a preferred solution of the file whitelist sharing method of the confidentiality inspection system based on UDP multicast described in the present invention, wherein: the sending of the request whitelist message to the UDP multicast network includes requesting the file whitelist data held by other clients to initialize the local whitelist, receiving and processing the UDP multicast network message, the multicast network message is divided into a request whitelist message and a whitelist data message, the request type of the request whitelist message includes a full request and an incremental request, the full request indicates requesting all clients to send all the whitelist data they hold, and the incremental request indicates requesting all clients to send the most recently updated whitelist data they hold;
[0010] Use the local whitelist to perform file checking tasks, generate an incremental whitelist, and send the incremental whitelist data to the UDP multicast network, which will broadcast to all clients. In response to the whitelist request message, send the local whitelist data to the UDP multicast network, which will broadcast to all clients.
[0011] As a preferred solution of the file whitelist sharing method of the confidentiality inspection system based on UDP multicast described in the present invention, wherein: the responding and receiving whitelist data includes using iptables and ipset to create and manage a working whitelist, including defining a domestic IP set and a custom IP set, and access rights to the system UDP port, using the ipsetcreate command to create a domestic IP set, and setting the hash type;
[0012] The domestic IP set is updated regularly through a script, and deduplication is performed on the uploaded local IP set to ensure that there are no duplicate IP addresses. When a whitelist update message broadcast by other clients is received, a PHP script is used to extract the IP address data from the database and load it into the callcenter IP set. The deduplication-processed IP address is added to the local whitelist.
[0013] As a preferred solution of the file whitelist sharing method of the UDP multicast-based confidentiality inspection system described in the present invention, the deduplication processing includes comparing the received whitelist data with the data in the local whitelist. When the file name and the hash value are the same, it is considered to be duplicate data and deleted; when the file name is the same but the hash value is different, it is considered to be updated data and replaced; when the file name and the hash value are different, it is considered to be new data and added.
[0014] As a preferred solution of the file whitelist sharing method of the confidentiality inspection system based on UDP multicast described in the present invention, the whitelist data held by the broadcast itself includes: the system joins a specific multicast group, uses socket programming and setsockopt calls to specify the IP address and port of the multicast group, receives and sends multicast messages, listens to the multicast address on a specific port, receives whitelist request messages from other clients, and when a whitelist request is received, the system retrieves the whitelist data from the database and then sends it back to the requesting client. The system uses the sendto function to send data packets to the multicast address and port, and broadcasts the whitelist data held by itself to the UDP multicast network.
[0015] As a preferred solution of the file whitelist sharing method of the confidentiality inspection system based on UDP multicast described in the present invention, wherein: the incremental whitelist data is broadcast to the UDP multicast network, including: when the client performs file inspection, an incremental whitelist will be generated for new non-confidential files that are not in the local whitelist, and the incremental whitelist will be broadcast to the UDP multicast network while updating the local whitelist, so that the client can update the whitelist. When the client starts, a UDP socket is created, and the socket options are set, and the preset multicast address and port are added to form a UDP multicast network. The address mapping of UDP multicast is expressed as:
[0016]
[0017] Among them, MAC is the multicast MAC address, IP is the multicast IP address, is a bitwise XOR operation, and & is a bitwise AND operation.
[0018] Another object of the present invention is to provide a file whitelist sharing system for a confidentiality inspection system based on UDP multicast, which can share the whitelist by sending UDP multicast packets, reducing network transmission volume. At the same time, the client skips the files in the whitelist when performing file checks, thereby improving the file inspection efficiency of the computer terminal confidentiality inspection system.
[0019] As a preferred solution of the file whitelist sharing system of the confidentiality inspection system based on UDP multicast described in the present invention, it includes: a UDP multicast sending module, a file inspection module, and a UDP multicast receiving module;
[0020] The UDP multicast sending module is used for the client to request a whitelist from other clients and initialize the whitelist when the client runs for the first time, and is also used to broadcast the incremental whitelist data generated by the file checking module to other clients;
[0021] The file checking module is used to use the whitelist to check and generate an incremental whitelist according to the check result;
[0022] The UDP multicast receiving module is used to receive whitelist data broadcasted by other clients from the UDP multicast network and update the local whitelist.
[0023] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and is characterized in that when the processor executes the computer program, steps of a file whitelist sharing method of a confidentiality check system based on UDP multicast are implemented.
[0024] A computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the computer program implements the steps of a file whitelist sharing method of a confidentiality check system based on UDP multicast.
[0025] The beneficial effects of the present invention are as follows: the UDP multicast technology is used to reduce the amount of network communication data generated by the shared file whitelist between the various clients of the computer terminal confidentiality inspection system, and the timeliness of data sharing is improved. Using the shared file whitelist solution, the client skips the files in the whitelist, and the file inspection efficiency of the computer terminal confidentiality inspection system is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0027] Figure 1 A schematic flow chart of a file whitelist sharing method of a confidentiality check system based on UDP multicast provided in one embodiment of the present invention.
[0028] Figure 2 A schematic diagram of the workflow of a file whitelist sharing system of a confidentiality check system based on UDP multicast provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0030] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0031] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0032] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
[0033] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0034] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0035] Example 1
[0036] Reference Figure 1, which is the first embodiment of the present invention, provides a file whitelist sharing method of a confidentiality check system based on UDP multicast, comprising:
[0037] S1: Start the computer terminal confidentiality check system client and join the UDP multicast network, and send a whitelist request message to the UDP multicast network.
[0038] Furthermore, starting the system and joining the UDP multicast network includes running a UDP socket program on the client, creating a UDP socket, and setting socket options to allow joining a multicast group and setting a multicast timeout, entering a preset UDP multicast address and port in the program and calling a function, adding the IP address of the local interface to the multicast group, processing received messages in the program, performing corresponding operations based on the message type, entering an instruction to exit the multicast group in the program and calling a function, and removing the IP address of the local interface from the multicast group.
[0039] It should be noted that the sending of the request whitelist message to the UDP multicast network includes requesting the file whitelist data held by other clients to initialize the local whitelist, receiving and processing UDP multicast network messages, and the multicast network messages are divided into two categories: request whitelist messages and whitelist data messages. The request types of the request whitelist message include full request and incremental request. The full request indicates that all clients are requested to send all the whitelist data they hold, and the incremental request indicates that all clients are requested to send the most recently updated whitelist data they hold.
[0040] Use the local whitelist to perform file checking tasks, generate an incremental whitelist, and send the incremental whitelist data to the UDP multicast network, which will broadcast to all clients. In response to the whitelist request message, send the local whitelist data to the UDP multicast network, which will broadcast to all clients.
[0041] S2: respond to the whitelist update message broadcast by the client and add the received whitelist data to the local whitelist after deduplication.
[0042] Furthermore, the responding and receiving whitelist data includes creating and managing a working whitelist using iptables and ipset, including defining a domestic IP set and a custom IP set, and their access rights to a system UDP port, creating a domestic IP set using an ipset create command, and setting a hash type;
[0043] The domestic IP set is updated regularly through a script, and deduplication is performed on the uploaded local IP set to ensure that there are no duplicate IP addresses. When a whitelist update message broadcast by other clients is received, a PHP script is used to extract the IP address data from the database and load it into the callcenter IP set. The deduplication-processed IP address is added to the local whitelist.
[0044] It should be noted that the de-duplication processing includes comparing the received whitelist data with the data in the local whitelist. When the file name and hash value are the same, it is considered to be duplicate data and deleted; when the file name is the same but the hash value is different, it is considered to be updated data and replaced; when the file name and hash value are different, it is considered to be new data and added.
[0045] S3: Respond to the client's request for a whitelist message and broadcast its own whitelist data to the UDP multicast network.
[0046] Furthermore, the whitelist data held by the broadcast itself includes: the system joins a specific multicast group, uses socket programming and setsockopt calls to specify the IP address and port of the multicast group, receives and sends multicast messages, listens to the multicast address on a specific port, receives whitelist request messages from other clients, and when a whitelist request is received, the system retrieves the whitelist data from the database and then sends it back to the requesting client. The system uses the sendto function to send data packets to the multicast address and port, and broadcasts the whitelist data held by itself to the UDP multicast network.
[0047] S4: Broadcast the incremental whitelist data generated by the client when performing file checking to the UDP multicast network.
[0048] Furthermore, when the client performs file checking, it traverses the local file system, calculates the hash value of each file, and compares it with the data in the local whitelist;
[0049] If a file is found not in the local whitelist and is not a confidential file, its file name and hash value are stored in a buffer as incremental whitelist data;
[0050] If the incremental whitelist data in the buffer reaches a certain amount or the file check is completed, the data in the buffer is concatenated into a string, with the file name and hash value separated by a newline character and a space;
[0051] Using a UDP socket, send an update whitelist message to the UDP multicast network, the message contains the client's identification information and the update type;
[0052] Use UDP socket to send the concatenated incremental whitelist data string to the UDP multicast network;
[0053] Clear the buffer and wait for the next file check or to receive multicast messages from other clients.
[0054] It should be noted that the address mapping of UDP multicast is expressed as:
[0055]
[0056] Among them, MAC is the multicast MAC address, IP is the multicast IP address, is a bitwise XOR operation, and & is a bitwise AND operation.
[0057] Example 2
[0058] The second embodiment of the present invention provides a file whitelist sharing method of a confidentiality check system based on UDP multicast. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through experiments.
[0059] CRC32 is used as the calculation method for the file HASH value. Usually a CRC32 occupies 4 bytes, and one million whitelist data only occupies about 3.8MB of memory, which occupies less storage space than other HASH values.
[0060] Secondly, define the variable std::set <uint32>white_list is used to store the local whitelist; the function calc_crc32() is defined to obtain the CRC32 value of the file content; the white_list.insert(crc32_value) function is used to initialize or update the whitelist. The white_list.find(crc32_value) function is used to determine whether the file HASH exists in the local whitelist.
[0061] Again, the function udp_add_broadcast() is defined to join the UDP multicast, and the function udp_del_broadcast() is defined to leave the UDP multicast; the sendto() function in the socket communication library is used to send the UDP multicast packet; the recvfrom() function in the socket communication library is used to receive the UDP multicast packet.
[0062] As a preferred embodiment of the present invention, the specific implementation steps are as follows:
[0063] Step 1: After the local client is started, use udp_add_broadcast() to join the UDP multicast.
[0064] Step 2: The local client calls sendto(MSG_TYPE_GET_LIST) to send a whitelist request message to the UDP multicast; other clients call recvfrom() to receive the MSG_TYPE_GET_LIST multicast message, and then send the data in their white_list to the UDP multicast via sendto(MSG_TYPE_LIST_DATA).
[0065] Step 3: The local client calls the recvfrom() function to receive the multicast message. It determines through the message header that if it is a MSG_TYPE_LIST_DATA multicast message, it calls the white_list.insert() function to update the local whitelist. If it is a MSG_TYPE_GET_DATA message, it sends the local white_list data to the UDP multicast through sendto(MSG_TYPE_LIST_DATA).
[0066] Step 4: When the local client performs a file check, it first calls the calc_crc32() function to obtain the hash value of the file to be checked; then it calls the white_list.find() function to determine whether the file HASH exists in the local whitelist. If so, the check is skipped; for the hash values of files that are determined to be non-confidential after the file check, a set of incremental whitelists is formed; for the incremental whitelist, on the one hand, the white_list.insert() function is called to update it to the local whitelist, and on the other hand, sendto(MSG_TYPE_LIST_DATA) is called to send the incremental whitelist to the UDP multicast.
[0067] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
[0068] Example 3
[0069] The third embodiment of the present invention is different from the first two embodiments in that:
[0070] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0071] The logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, apparatus or device and execute the instructions), or in conjunction with such instruction execution system, apparatus or device. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, apparatus or device, or in conjunction with such instruction execution system, apparatus or device.
[0072] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0073] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0074] Example 4
[0075] Reference Figure 2 , which is the fourth embodiment of the present invention, provides a file whitelist sharing system of a confidentiality check system based on UDP multicast, characterized in that it includes a UDP multicast sending module (100), a file checking module (101), and a UDP multicast receiving module (102);
[0076] The UDP multicast sending module (100) is used for the client to request a whitelist from other clients and initialize the whitelist when the client runs for the first time, and is also used to broadcast the incremental whitelist data generated by the file checking module (101) to other clients;
[0077] The file checking module (101) is used to use the whitelist to perform checking and generate an incremental whitelist according to the checking result;
[0078] The UDP multicast receiving module (102) is used to receive whitelist data broadcasted by other clients from the UDP multicast network and update the local whitelist.
[0079] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A file whitelist sharing method for a confidentiality check system based on UDP multicast, characterized in that: include, Start the computer terminal confidentiality check system client and join the UDP multicast network, and send a whitelist request message to the UDP multicast network; Respond to the whitelist update message broadcast by the client and add the received whitelist data to the local whitelist after deduplication; Respond to the client's request for whitelist message and broadcast its own whitelist data to the UDP multicast network; Broadcast the incremental whitelist data generated by the client when checking files to the UDP multicast network.
2. The file whitelist sharing method of the confidentiality check system based on UDP multicast as claimed in claim 1, characterized in that: The joining of the UDP multicast network includes running a UDP socket program on the client, creating a UDP socket, and setting socket options to allow joining a multicast group and setting a multicast timeout, entering a preset UDP multicast address and port in the program and calling a function, adding the IP address of the local interface to the multicast group, processing received messages in the program, performing corresponding operations according to the message type, entering an instruction to exit the multicast group in the program and calling a function, and removing the IP address of the local interface from the multicast group.
3. The file whitelist sharing method of the confidentiality check system based on UDP multicast as claimed in claim 2, characterized in that: The sending of the request whitelist message to the UDP multicast network includes requesting file whitelist data held by other clients to initialize the local whitelist, receiving and processing UDP multicast network messages, the multicast network messages are divided into request whitelist messages and whitelist data messages, the request types of the request whitelist message include full request and incremental request, the full request means requesting all clients to send all whitelist data they hold, and the incremental request means requesting all clients to send the most recently updated whitelist data they hold; Use the local whitelist to perform file checking tasks, generate an incremental whitelist, and send the incremental whitelist data to the UDP multicast network, which will broadcast to all clients. In response to the whitelist request message, send the local whitelist data to the UDP multicast network, which will broadcast to all clients.
4. The file whitelist sharing method of the confidentiality check system based on UDP multicast as claimed in claim 3, characterized in that: The responding and receiving whitelist data includes that the local whitelist is a HASH collection of files, multicast data is received using socket recv, and the received data is parsed into a file HASH information array, compared with the local whitelist, the existing ones are discarded, and the new ones are added to the local whitelist to complete the update of the local whitelist.
5. The file whitelist sharing method of the confidentiality check system based on UDP multicast as claimed in claim 4, characterized in that: The deduplication processing includes comparing the received whitelist data with the data in the local whitelist. When the file name and hash value are the same, it is considered to be duplicate data and deleted; when the file name is the same but the hash value is different, it is considered to be updated data and replaced; when the file name and hash value are different, it is considered to be new data and added.
6. The file whitelist sharing method of the confidentiality check system based on UDP multicast as claimed in claim 5, characterized in that: The whitelist data held by the broadcast itself includes: the system joins a specific multicast group, uses socket programming and setsockopt calls to specify the IP address and port of the multicast group, receives and sends multicast messages, listens to the multicast address on a specific port, receives whitelist request messages from other clients, and when a whitelist request is received, the system retrieves the whitelist data from the database and then sends it back to the requesting client. The system uses the sendto function to send data packets to the multicast address and port, and broadcasts the whitelist data held by itself to the UDP multicast network.
7. The file whitelist sharing method of the confidentiality check system based on UDP multicast as claimed in claim 6, characterized in that: The incremental whitelist data is broadcasted to the UDP multicast network, including: when the client performs file checking, an incremental whitelist is generated for a new non-confidential file that is not in the local whitelist; while the incremental whitelist is updated to the local whitelist, it is broadcasted to the UDP multicast network for the client to update the whitelist; when the client starts, a UDP socket is created, and the socket options are set, and a preset multicast address and port are added to form a UDP multicast network; the address mapping of UDP multicast is expressed as: Among them, MAC is the multicast MAC address, IP is the multicast IP address, is a bitwise XOR operation, and & is a bitwise AND operation.
8. A system using the file whitelist sharing method of the UDP multicast-based confidentiality check system according to any one of claims 1 to 7, characterized in that: It comprises a UDP multicast sending module (100), a file checking module (101), and a UDP multicast receiving module (102); The UDP multicast sending module (100) is used for the client to request a whitelist from other clients and initialize the whitelist when the client runs for the first time, and is also used to broadcast the incremental whitelist data generated by the file checking module (101) to other clients; The file checking module (101) is used to use the whitelist to perform checking and generate an incremental whitelist according to the checking result; The UDP multicast receiving module (102) is used to receive whitelist data broadcasted by other clients from the UDP multicast network and update the local whitelist.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
