WARNING: line length of 85 exceeds 80 columns #53: 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 #58: FILE: net/quic/packet.c:27: + { QUIC_VERSION_V1, QUIC_VERSION_V2, QUIC_VERSION_V1, 0 }, WARNING: line length of 84 exceeds 80 columns #59: 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:63: +/* 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:64: +static int quic_packet_get_version_and_connid(struct quic_conn_id *dcid, struct quic_conn_id *scid, WARNING: line length of 91 exceeds 80 columns #125: FILE: net/quic/packet.c:94: + * Frees existing initial crypto keys and installs new initial keys compatible with the new WARNING: line length of 94 exceeds 80 columns #128: FILE: net/quic/packet.c:97: +static int quic_packet_version_change(struct sock *sk, struct quic_conn_id *dcid, u32 version) WARNING: line length of 86 exceeds 80 columns #132: FILE: net/quic/packet.c:101: + if (quic_crypto_initial_keys_install(crypto, dcid, version, quic_is_serv(sk))) WARNING: line length of 91 exceeds 80 columns #141: FILE: net/quic/packet.c:110: + * Considers the local preferred version, currently chosen version, and versions offered by WARNING: line length of 92 exceeds 80 columns #142: FILE: net/quic/packet.c:111: + * the peer. Selects the best compatible version based on client/server role and updates the WARNING: line length of 95 exceeds 80 columns #169: FILE: net/quic/packet.c:138: + if (quic_is_serv(sk)) { /* Server prefers preferred version if offered, else chosen. */ WARNING: line length of 82 exceeds 80 columns #215: FILE: net/quic/packet.c:184: + /* If PLPMTUD is not enabled, update MSS using the route and ICMP info. */ WARNING: line length of 91 exceeds 80 columns #226: FILE: net/quic/packet.c:195: + /* PLPMTUD is enabled: adjust to smaller PMTU, subtract headers and AEAD tag. Also WARNING: line length of 81 exceeds 80 columns #233: FILE: net/quic/packet.c:202: + quic_timer_reset(sk, QUIC_TIMER_PMTU, c->plpmtud_probe_interval); WARNING: line length of 92 exceeds 80 columns #260: FILE: net/quic/packet.c:229: + /* Socket is in use by userspace context. Defer MTU processing to later via WARNING: line length of 84 exceeds 80 columns #263: FILE: net/quic/packet.c:232: + if (!test_and_set_bit(QUIC_MTU_REDUCED_DEFERRED, &sk->sk_tsq_flags)) WARNING: line length of 83 exceeds 80 columns #286: FILE: net/quic/packet.c:255: + if (skb_queue_len_lockless(&qn->backlog_list) >= QUIC_PACKET_BACKLOG_MAX) { WARNING: line length of 92 exceeds 80 columns #327: FILE: net/quic/packet.c:296: + * Parses the TLS ClientHello handshake message to find the ALPN (Application Layer Protocol WARNING: line length of 93 exceeds 80 columns #328: FILE: net/quic/packet.c:297: + * Negotiation) TLS extension. It validates the TLS ClientHello structure, including version, WARNING: line length of 88 exceeds 80 columns #329: FILE: net/quic/packet.c:298: + * random, session ID, cipher suites, compression methods, and extensions. Once the ALPN WARNING: line length of 82 exceeds 80 columns #332: FILE: net/quic/packet.c:301: + * Return: 0 on success or no ALPN found, a negative error code on failed parsing. WARNING: line length of 85 exceeds 80 columns #345: FILE: net/quic/packet.c:314: + if (len > (u32)length) /* Limit len to handshake message length if larger. */ WARNING: line length of 92 exceeds 80 columns #366: FILE: net/quic/packet.c:335: + if (!quic_get_int(&p, &len, &length, 2)) /* Read TLS extensions length (2 bytes). */ WARNING: line length of 89 exceeds 80 columns #370: FILE: net/quic/packet.c:339: + while (len > 4) { /* Iterate over extensions to find ALPN (type TLS_EXT_alpn). */ WARNING: line length of 90 exceeds 80 columns #386: FILE: net/quic/packet.c:355: + if (!found) { /* no ALPN extension found: set alpn->len = 0 and alpn->data = p. */ WARNING: line length of 82 exceeds 80 columns #394: FILE: net/quic/packet.c:363: + quic_data(alpn, p, length); /* Store ALPN protocols list in alpn->data. */ WARNING: line length of 92 exceeds 80 columns #398: FILE: net/quic/packet.c:367: + /* Malformed ALPN entry: set alpn->len = 0 and alpn->data = NULL. */ WARNING: line length of 93 exceeds 80 columns #411: FILE: net/quic/packet.c:380: + * This function processes a QUIC Initial packet to extract the ALPN from the TLS ClientHello WARNING: line length of 88 exceeds 80 columns #412: FILE: net/quic/packet.c:381: + * message inside the QUIC CRYPTO frame. It verifies packet type, version compatibility, WARNING: line length of 90 exceeds 80 columns #413: FILE: net/quic/packet.c:382: + * decrypts the packet payload, and locates the CRYPTO frame to parse the TLS ClientHello. WARNING: line length of 82 exceeds 80 columns #416: FILE: net/quic/packet.c:385: + * Return: 0 on success or no ALPN found, a negative error code on failed parsing. WARNING: line length of 81 exceeds 80 columns #432: FILE: net/quic/packet.c:401: + if (quic_packet_get_version_and_connid(&dcid, &scid, &version, &p, &len)) WARNING: line length of 88 exceeds 80 columns #444: FILE: net/quic/packet.c:413: + if (!cb->backlog) { /* skb_get() needed as caller will free skb on this path. */ WARNING: line length of 82 exceeds 80 columns #491: FILE: net/quic/packet.c:460: +/* Extract the Destination Connection ID (DCID) from a QUIC Long header packet. */ WARNING: line length of 87 exceeds 80 columns #546: FILE: net/quic/packet.c:515: + * (Currently, only source CIDs of size QUIC_CONN_ID_DEF_LEN are used). WARNING: line length of 88 exceeds 80 columns #552: FILE: net/quic/packet.c:521: + return quic_conn_id_sk(conn_id); /* Return associated socket. */ WARNING: line length of 94 exceeds 80 columns #757: 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 #771: 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 #772: 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 #773: 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 #776: 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 #777: 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 #779: 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 #781: 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 #803: 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 #808: 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 #809: 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 #822: 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 #823: 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 #824: 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 #827: 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 #829: 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 #847: 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 #849: 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 #850: 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 #853: 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 #857: FILE: net/quic/socket.c:115: + if (!quic_is_any_addr(a)) /* Prefer specific address match. */ WARNING: line length of 82 exceeds 80 columns #865: 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 #870: 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 #882: 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 #883: 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 #936: FILE: net/quic/socket.h:211: +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 #938: FILE: net/quic/socket.h:213: +struct sock *quic_sock_lookup(struct sk_buff *skb, union quic_addr *sa, union quic_addr *da, total: 0 errors, 63 warnings, 0 checks, 864 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 84229422a0c5 ("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, 63 warnings, 0 checks, 864 lines checked