Solution by jasperE3.
f(xf(x)+f(xy))=xf(x)+yf(x).
P(−1,1)⇒f(0)=0.
P(x,0)⇒f(xf(x))=xf(x).
P(1,xf(x))⇒f(xf(x)+f(1))=xf(x)f(1)+f(1).
P(x,x1)⇒f(xf(x)+f(1))=xf(x)+xf(x).
Comparing, we obtain f(x)(x2−x2f(1)+1)=xf(1) for all x=0, but it’s clearly also true for x=0. Setting x=1, this is f(1)∈{0,1}. If f(1)=0 this simplifies to f(x)(x2+1)=0 and so f(x)=0,while if f(1)=1 this simplifies to f(x)=x, easy to verify that both are solutions.