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 #225: FILE: net/quic/packet.c:194: + /* PLPMTUD is enabled: adjust to smaller PMTU, subtract headers and AEAD tag. Also WARNING: line length of 81 exceeds 80 columns #232: FILE: net/quic/packet.c:201: + quic_timer_reset(sk, QUIC_TIMER_PMTU, c->plpmtud_probe_interval); WARNING: line length of 92 exceeds 80 columns #259: FILE: net/quic/packet.c:228: + /* Socket is in use by userspace context. Defer MTU processing to later via WARNING: line length of 84 exceeds 80 columns #262: FILE: net/quic/packet.c:231: + if (!test_and_set_bit(QUIC_MTU_REDUCED_DEFERRED, &sk->sk_tsq_flags)) WARNING: line length of 83 exceeds 80 columns #285: FILE: net/quic/packet.c:254: + if (skb_queue_len_lockless(&qn->backlog_list) >= QUIC_PACKET_BACKLOG_MAX) { WARNING: line length of 92 exceeds 80 columns #326: FILE: net/quic/packet.c:295: + * Parses the TLS ClientHello handshake message to find the ALPN (Application Layer Protocol WARNING: line length of 93 exceeds 80 columns #327: FILE: net/quic/packet.c:296: + * Negotiation) TLS extension. It validates the TLS ClientHello structure, including version, WARNING: line length of 88 exceeds 80 columns #328: FILE: net/quic/packet.c:297: + * random, session ID, cipher suites, compression methods, and extensions. Once the ALPN WARNING: line length of 82 exceeds 80 columns #331: FILE: net/quic/packet.c:300: + * Return: 0 on success or no ALPN found, a negative error code on failed parsing. WARNING: line length of 85 exceeds 80 columns #344: FILE: net/quic/packet.c:313: + if (len > (u32)length) /* Limit len to handshake message length if larger. */ WARNING: line length of 92 exceeds 80 columns #365: FILE: net/quic/packet.c:334: + if (!quic_get_int(&p, &len, &length, 2)) /* Read TLS extensions length (2 bytes). */ WARNING: line length of 89 exceeds 80 columns #369: FILE: net/quic/packet.c:338: + while (len > 4) { /* Iterate over extensions to find ALPN (type TLS_EXT_alpn). */ WARNING: line length of 90 exceeds 80 columns #385: FILE: net/quic/packet.c:354: + if (!found) { /* no ALPN extension found: set alpn->len = 0 and alpn->data = p. */ WARNING: line length of 82 exceeds 80 columns #393: FILE: net/quic/packet.c:362: + quic_data(alpn, p, length); /* Store ALPN protocols list in alpn->data. */ WARNING: line length of 92 exceeds 80 columns #397: FILE: net/quic/packet.c:366: + /* Malformed ALPN entry: set alpn->len = 0 and alpn->data = NULL. */ WARNING: line length of 93 exceeds 80 columns #410: FILE: net/quic/packet.c:379: + * This function processes a QUIC Initial packet to extract the ALPN from the TLS ClientHello WARNING: line length of 88 exceeds 80 columns #411: FILE: net/quic/packet.c:380: + * message inside the QUIC CRYPTO frame. It verifies packet type, version compatibility, WARNING: line length of 90 exceeds 80 columns #412: FILE: net/quic/packet.c:381: + * decrypts the packet payload, and locates the CRYPTO frame to parse the TLS ClientHello. WARNING: line length of 82 exceeds 80 columns #415: FILE: net/quic/packet.c:384: + * Return: 0 on success or no ALPN found, a negative error code on failed parsing. WARNING: line length of 81 exceeds 80 columns #431: FILE: net/quic/packet.c:400: + if (quic_packet_get_version_and_connid(&dcid, &scid, &version, &p, &len)) WARNING: line length of 88 exceeds 80 columns #443: FILE: net/quic/packet.c:412: + if (!cb->backlog) { /* skb_get() needed as caller will free skb on this path. */ WARNING: line length of 82 exceeds 80 columns #490: FILE: net/quic/packet.c:459: +/* Extract the Destination Connection ID (DCID) from a QUIC Long header packet. */ WARNING: line length of 87 exceeds 80 columns #545: FILE: net/quic/packet.c:514: + * (Currently, only source CIDs of size QUIC_CONN_ID_DEF_LEN are used). WARNING: line length of 88 exceeds 80 columns #551: FILE: net/quic/packet.c:520: + return quic_conn_id_sk(conn_id); /* Return associated socket. */ WARNING: line length of 94 exceeds 80 columns #758: 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 #772: 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 #773: 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 #774: 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 #777: 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 #778: 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 #780: 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 #782: 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 #804: 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 #809: 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 #810: 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 #823: 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 #824: 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 #825: 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 #828: 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 #830: 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 #848: 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 #850: 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 #851: 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 #854: 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 #858: FILE: net/quic/socket.c:115: + if (!quic_is_any_addr(a)) /* Prefer specific address match. */ WARNING: line length of 82 exceeds 80 columns #866: 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 #871: 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 #883: 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 #884: 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 #937: 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 #939: 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, 865 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 a8e15d906e42 ("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, 865 lines checked