import socket


def create_rawsock(iface):
    """Creates a new raw socket object.

    The socket sends/receives data at the link layer (TCP/IP model)/data-link 
    layer (OSI model).
    
    Args:
        iface: A string specifying the name of the network interface to which 
               the raw socket should be bound. For example "eth0".

    Returns:
        A socket object.
    """
    sock = socket.socket(socket.AF_PACKET, 
                         socket.SOCK_RAW, 
                         socket.htons(socket.SOCK_RAW))
    sock.bind((iface, socket.SOCK_RAW))
    return sock