The child gets the man’s last name...

The child (and usually the woman) gets the man’s last name, which can be past down to future generations. The woman should get to name the baby’s first name.