WARNING: line length of 85 exceeds 80 columns #54: FILE: net/quic/packet.c:22: +/* Supported QUIC versions and their compatible versions. Used for Compatible Version WARNING: line length of 84 exceeds 80 columns #59: FILE: net/quic/packet.c:27: + { QUIC_VERSION_V1, QUIC_VERSION_V2, QUIC_VERSION_V1, 0 }, WARNING: line length of 84 exceeds 80 columns #60: FILE: net/quic/packet.c:28: + { QUIC_VERSION_V2, QUIC_VERSION_V2, QUIC_VERSION_V1, 0 }, WARNING: line length of 93 exceeds 80 columns #94: FILE: net/quic/packet.c:62: +/* Parse QUIC version and connection IDs (DCID and SCID) from a Long header packet buffer. */ WARNING: line length of 99 exceeds 80 columns #95: FILE: net/quic/packet.c:63: +static int quic_packet_get_version_and_connid(struct quic_conn_id *dcid, struct quic_conn_id *scid, WARNING: line length of 82 exceeds 80 columns #149: FILE: net/quic/packet.c:117: + /* If PLPMTUD is not enabled, update MSS using the route and ICMP info. */ WARNING: line length of 91 exceeds 80 columns #160: FILE: net/quic/packet.c:128: + /* PLPMTUD is enabled: adjust to smaller PMTU, subtract headers and AEAD tag. Also WARNING: line length of 90 exceeds 80 columns #178: FILE: net/quic/packet.c:146: + /* ICMP embeds the original outgoing QUIC packet, so saddr/daddr are reversed when WARNING: line length of 92 exceeds 80 columns #195: FILE: net/quic/packet.c:163: + /* Socket is in use by userspace context. Defer MTU processing to later via WARNING: line length of 84 exceeds 80 columns #198: FILE: net/quic/packet.c:166: + if (!test_and_set_bit(QUIC_MTU_REDUCED_DEFERRED, &sk->sk_tsq_flags)) WARNING: line length of 92 exceeds 80 columns #268: FILE: net/quic/packet.c:236: + * Parses the TLS ClientHello handshake message to find the ALPN (Application Layer Protocol WARNING: line length of 93 exceeds 80 columns #269: FILE: net/quic/packet.c:237: + * Negotiation) TLS extension. It validates the TLS ClientHello structure, including version, WARNING: line length of 88 exceeds 80 columns #270: FILE: net/quic/packet.c:238: + * random, session ID, cipher suites, compression methods, and extensions. Once the ALPN WARNING: line length of 82 exceeds 80 columns #273: FILE: net/quic/packet.c:241: + * Return: 0 on success or no ALPN found, a negative error code on failed parsing. WARNING: line length of 85 exceeds 80 columns #287: FILE: net/quic/packet.c:255: + if (len > (u32)length) /* Limit len to handshake message length if larger. */ WARNING: line length of 92 exceeds 80 columns #308: FILE: net/quic/packet.c:276: + if (!quic_get_int(&p, &len, &length, 2)) /* Read TLS extensions length (2 bytes). */ WARNING: line length of 89 exceeds 80 columns #312: FILE: net/quic/packet.c:280: + while (len > 4) { /* Iterate over extensions to find ALPN (type TLS_EXT_alpn). */ WARNING: line length of 90 exceeds 80 columns #332: FILE: net/quic/packet.c:300: + if (!found) { /* no ALPN extension found: set alpn->len = 0 and alpn->data = p. */ WARNING: line length of 82 exceeds 80 columns #340: FILE: net/quic/packet.c:308: + quic_data(alpn, p, length); /* Store ALPN protocols list in alpn->data. */ WARNING: line length of 92 exceeds 80 columns #344: FILE: net/quic/packet.c:312: + /* Malformed ALPN entry: set alpn->len = 0 and alpn->data = NULL. */ WARNING: line length of 93 exceeds 80 columns #359: FILE: net/quic/packet.c:327: + * This function processes a QUIC Initial packet to extract the ALPN from the TLS ClientHello WARNING: line length of 88 exceeds 80 columns #360: FILE: net/quic/packet.c:328: + * message inside the QUIC CRYPTO frame. It verifies packet type, version compatibility, WARNING: line length of 90 exceeds 80 columns #361: FILE: net/quic/packet.c:329: + * decrypts the packet payload, and locates the CRYPTO frame to parse the TLS ClientHello. WARNING: line length of 82 exceeds 80 columns #364: FILE: net/quic/packet.c:332: + * Return: 0 on success or no ALPN found, a negative error code on failed parsing. WARNING: line length of 81 exceeds 80 columns #380: FILE: net/quic/packet.c:348: + if (quic_packet_get_version_and_connid(&dcid, &scid, &version, &p, &len)) WARNING: line length of 88 exceeds 80 columns #392: FILE: net/quic/packet.c:360: + if (!cb->backlog) { /* skb_get() needed as caller will free skb on this path. */ WARNING: line length of 82 exceeds 80 columns #429: FILE: net/quic/packet.c:397: +/* Extract the Destination Connection ID (DCID) from a QUIC Long header packet. */ WARNING: line length of 87 exceeds 80 columns #479: FILE: net/quic/packet.c:447: + * (Currently, only source CIDs of size QUIC_CONN_ID_DEF_LEN are used). WARNING: line length of 88 exceeds 80 columns #485: FILE: net/quic/packet.c:453: + return quic_conn_id_sk(conn_id); /* Return associated socket. */ WARNING: line length of 94 exceeds 80 columns #724: FILE: net/quic/protocol.h:56: + struct work_struct work; /* Work scheduled to drain and process backlog_list */ WARNING: line length of 93 exceeds 80 columns #738: FILE: net/quic/socket.c:29: + * This function searches the established (non-listening) QUIC socket table for a socket that WARNING: line length of 92 exceeds 80 columns #739: FILE: net/quic/socket.c:30: + * matches the source and dest addresses and, optionally, the dest connection ID (DCID). The WARNING: line length of 92 exceeds 80 columns #740: FILE: net/quic/socket.c:31: + * value returned by quic_path_orig_dcid() might be the original dest connection ID from the WARNING: line length of 93 exceeds 80 columns #743: FILE: net/quic/socket.c:34: + * The DCID is provided from a handshake packet when searching by source connection ID fails, WARNING: line length of 85 exceeds 80 columns #744: FILE: net/quic/socket.c:35: + * such as when the peer has not yet received server's response and updated the DCID. WARNING: line length of 84 exceeds 80 columns #746: FILE: net/quic/socket.c:37: + * Return: A pointer to the matching connected socket, or NULL if no match is found. WARNING: line length of 92 exceeds 80 columns #748: FILE: net/quic/socket.c:39: +struct sock *quic_sock_lookup(struct sk_buff *skb, union quic_addr *sa, union quic_addr *da, WARNING: line length of 85 exceeds 80 columns #770: FILE: net/quic/socket.c:61: + (!dcid || !quic_conn_id_cmp(quic_path_orig_dcid(paths), dcid))) { WARNING: line length of 95 exceeds 80 columns #775: FILE: net/quic/socket.c:66: + /* If the nulls value we got at the end of the iteration is different from the expected WARNING: line length of 81 exceeds 80 columns #776: FILE: net/quic/socket.c:67: + * one, we must restart the lookup as the list was modified concurrently. WARNING: line length of 92 exceeds 80 columns #789: FILE: net/quic/socket.c:80: + * This function searches the QUIC socket table for a listening socket that matches the dest WARNING: line length of 92 exceeds 80 columns #790: FILE: net/quic/socket.c:81: + * address and port, and the ALPN(s) if presented in the ClientHello. If multiple listening WARNING: line length of 90 exceeds 80 columns #791: FILE: net/quic/socket.c:82: + * sockets are bound to the same address, port, and ALPN(s) (e.g., via SO_REUSEPORT), this WARNING: line length of 84 exceeds 80 columns #794: FILE: net/quic/socket.c:85: + * Return: A pointer to the matching listening socket, or NULL if no match is found. WARNING: line length of 99 exceeds 80 columns #796: FILE: net/quic/socket.c:87: +struct sock *quic_listen_sock_lookup(struct sk_buff *skb, union quic_addr *sa, union quic_addr *da, WARNING: line length of 86 exceeds 80 columns #814: FILE: net/quic/socket.c:105: + if (!alpns->len) { /* No ALPN entries present or failed to parse the ALPNs. */ WARNING: line length of 95 exceeds 80 columns #816: FILE: net/quic/socket.c:107: + /* If alpns->data != NULL, TLS parsing succeeded but no ALPN was found. WARNING: line length of 82 exceeds 80 columns #817: FILE: net/quic/socket.c:108: + * In this case, only match sockets that have no ALPN set. WARNING: line length of 83 exceeds 80 columns #820: FILE: net/quic/socket.c:111: + if (net == sock_net(tmp) && quic_cmp_sk_addr(tmp, a, sa) && WARNING: line length of 94 exceeds 80 columns #824: FILE: net/quic/socket.c:115: + if (!quic_is_any_addr(a)) /* Prefer specific address match. */ WARNING: line length of 82 exceeds 80 columns #832: FILE: net/quic/socket.c:123: + for (p = alpns->data, len = alpns->len; len; len -= length, p += length) { WARNING: line length of 83 exceeds 80 columns #837: FILE: net/quic/socket.c:128: + if (net == sock_net(tmp) && quic_cmp_sk_addr(tmp, a, sa) && WARNING: line length of 95 exceeds 80 columns #849: FILE: net/quic/socket.c:140: + /* If the nulls value we got at the end of the iteration is different from the expected WARNING: line length of 81 exceeds 80 columns #850: FILE: net/quic/socket.c:141: + * one, we must restart the lookup as the list was modified concurrently. WARNING: line length of 99 exceeds 80 columns #903: FILE: net/quic/socket.h:204: +struct sock *quic_listen_sock_lookup(struct sk_buff *skb, union quic_addr *sa, union quic_addr *da, WARNING: line length of 92 exceeds 80 columns #905: FILE: net/quic/socket.h:206: +struct sock *quic_sock_lookup(struct sk_buff *skb, union quic_addr *sa, union quic_addr *da, total: 0 errors, 56 warnings, 0 checks, 824 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit 38ecd21cebf8 ("quic: add packet parser base") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE FILE_PATH_CHANGES GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 56 warnings, 0 checks, 824 lines checked