Although it can seem funny to see your dog kicking his leg, it actually activates nerves that go to the spinal cord and may be irritating to him.
Some people think rubbing this spot on a dog's belly is what he wants, but in most cases, dogs would prefer to lie next to you and get petted on the chest instead.