]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Get rid of unused function.
authorGuy Harris <[email protected]>
Sun, 16 Feb 2014 09:20:48 +0000 (01:20 -0800)
committerGuy Harris <[email protected]>
Sun, 16 Feb 2014 09:20:48 +0000 (01:20 -0800)
print-dccp.c

index fcc2cc1cd0399a2709b2cef9d41fe31886586dda..c4370499df022584ee0fcf4ed86e466d78a6c41c 100644 (file)
@@ -242,24 +242,6 @@ trunc:
        return;
 }
 
-static inline unsigned int dccp_packet_hdr_len(const u_int8_t type)
-{
-       if (type == DCCP_PKT_DATA)
-               return 0;
-       if (type == DCCP_PKT_DATAACK    ||
-           type == DCCP_PKT_ACK        ||
-           type == DCCP_PKT_SYNC       ||
-           type == DCCP_PKT_SYNCACK    ||
-           type == DCCP_PKT_CLOSE      ||
-           type == DCCP_PKT_CLOSEREQ)
-               return sizeof(struct dccp_hdr_ack_bits);
-       if (type == DCCP_PKT_REQUEST)
-               return sizeof(struct dccp_hdr_request);
-       if (type == DCCP_PKT_RESPONSE)
-               return sizeof(struct dccp_hdr_response);
-       return sizeof(struct dccp_hdr_reset);
-}
-
 static int dccp_print_option(const u_char *option);
 
 /**