diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2016-05-23 21:38:36 +0200 |
---|---|---|
committer | Luca Deri <lucaderi@users.noreply.github.com> | 2016-05-23 21:38:36 +0200 |
commit | a2843084d683b119c25ab866426f8d5712c03a8a (patch) | |
tree | 0a14827e514ea3682067fc92b25a47a929853207 | |
parent | ef2cb860a34b8abae5f5070832c1c63924744393 (diff) | |
parent | 3d23ee0e23cbdd7dd3d3f94705916446b989cbc2 (diff) |
Merge pull request #200 from alagoutte/typo
Fix some typo
-rw-r--r-- | src/lib/protocols/quic.c | 10 | ||||
-rw-r--r-- | src/lib/protocols/rx.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/protocols/quic.c b/src/lib/protocols/quic.c index c26b8990c..ac443951b 100644 --- a/src/lib/protocols/quic.c +++ b/src/lib/protocols/quic.c @@ -65,7 +65,7 @@ static int quic_len(u_int8_t l) { return(8); break; } - + return(0); /* NOTREACHED */ } @@ -90,13 +90,13 @@ void ndpi_search_quic(struct ndpi_detection_module_struct *ndpi_struct, int i; if((version_len > 0) && (packet->payload[1+cid_len] != 'Q')) - goto no_quic; + goto no_quic; NDPI_LOG(NDPI_PROTOCOL_QUIC, ndpi_struct, NDPI_LOG_DEBUG, "found QUIC.\n"); ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_QUIC, NDPI_PROTOCOL_UNKNOWN); if(!strncmp((char*)&packet->payload[quic_hlen+17], "CHLO" /* Client Hello */, 4)) { - /* Check if SNI (Server Name Indetification) is present */ + /* Check if SNI (Server Name Identification) is present */ for(i=quic_hlen+12; i<udp_len-3; i++) { if((packet->payload[i] == 'S') && (packet->payload[i+1] == 'N') @@ -106,10 +106,10 @@ void ndpi_search_quic(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t prev_offset = *((u_int32_t*)&packet->payload[i-4]); int len = offset-prev_offset; int sni_offset = i+prev_offset+1; - + while((packet->payload[sni_offset] == '-') && (sni_offset < udp_len)) sni_offset++; - + if((sni_offset+len) < udp_len) { int max_len = sizeof(flow->host_server_name)-1, j = 0; diff --git a/src/lib/protocols/rx.c b/src/lib/protocols/rx.c index b7ebd5a4b..8ae98aafd 100644 --- a/src/lib/protocols/rx.c +++ b/src/lib/protocols/rx.c @@ -150,8 +150,8 @@ void ndpi_check_rx(struct ndpi_detection_module_struct *ndpi_struct, found = 1; else { NDPI_LOG(NDPI_PROTOCOL_RX, ndpi_struct, NDPI_LOG_DEBUG, "excluding RX\n"); - NDPI_ADD_PROTOCOL_TO_BITMASK(flow->excluded_protocol_bitmask, NDPI_PROTOCOL_RX); - return; + NDPI_ADD_PROTOCOL_TO_BITMASK(flow->excluded_protocol_bitmask, NDPI_PROTOCOL_RX); + return; } } else { |