Question about fixing udp6_input...

George Neville-Neil gnn at neville-neil.com
Fri Apr 20 06:16:36 UTC 2012


Howdy,

At the moment the prototype for udp6_input() is the following:

int
udp6_input(struct mbuf **mp, int *offp, int proto)

and udp_input() looks like this:

void
udp_input(struct mbuf *m, int off)

As far as I can tell we immediately change **mp to *m and *offp to off
in udp6_input() and we also never use proto in the rest of the function.

Is there any reason to not make udp6_input() look exactly like udp_input() ?

Best,
George



More information about the freebsd-net mailing list