6. A frog is at point $A$ of a regular hexagon $A B C D E F$, each time it jumps to an adjacent vertex, and stops when it reaches point $D$ or after 5 jumps. How many different ways of jumping are there?
(A) 26
(B) 28
(C) 30
(D) 32
6. A