best way to reveive both ipv4 and ipv6 connections

2019-10-01 Thread Mihir Luthra
Hi everyone, I was working on making rwhod ipv6 clean. I have done some work so far but then I realised I can't receive ipv4 connections on AF_INET6 sockets. On googling I found its insecure and freebsd disables it by default. [1] I needed some advice on what would be the best way to receive

Re: rpc.statd already ipv6 clean?

2019-09-27 Thread Mihir Luthra
> > > clnt_create() checks /etc/netconfig and tries all of the transport > protocols with the specified class which are listed there, and then > chooses the first usable one. So if IPv6 is available, "udp6" will > be used because it is before "udp". > > statd.c handles the bind addresses on

Re: rpc.statd already ipv6 clean?

2019-09-27 Thread Mihir Luthra
Hi Rick, > Although I'll admit it isn't something I am particularily fond of, FreeBSD > likes > utilities to build/work with only one of ipv4/ipv6. > To do this, "#ifdef INET" and "#ifdef INET6" is applied to the code and the > Makefile is tweaked to define one or both of these. > (You can look

Re: rpc.statd already ipv6 clean?

2019-09-26 Thread Mihir Luthra
> > > I think you should learn TI-RPC API first. The nettype specifies a > class of transport protocol, not address family. > > Thanks, I did some more research on TI-RPC today. In `statd.c` what I see is in `create_service()`/`complete_service()`, transport info is being fetched through

Re: rpc.statd already ipv6 clean?

2019-09-25 Thread Mihir Luthra
> > > I think the project page has wrong information regarding rpc.statd. > Although it is not clean from the viewpoint of transport independent, > it works with IPv6. > > I see, in file.c/procs.c , clnt_create() calls are hardcoded to "udp". Code in `statd.c` is handled correctly for

rpc.statd already ipv6 clean?

2019-09-24 Thread Mihir Luthra
Hi everyone, Just as mentioned in [1], rpc.statd is not ipv6 clean. Although I have been through the code, and didn't found any issues until now. The code conditionally checks for ipv6/ipv4 everywhere and uses ipv6 compatible functions. As per one old commit [2], seems rpc.statd was already

testing rpc.statd

2019-09-20 Thread Mihir Luthra
Hi, I was trying to make changes to usr.sbin/rpc.statd to make it ipv6 clean. I am looking for some good ways to test my changes, would be great if I could receive some help. Till now what I planned is setting a NFS client on another system and NFS server on FreeBSD machine and test its changes

Re: IPv6 userland cleanup

2019-09-10 Thread Mihir Luthra
Hi, I made a small change to usr.sbin/arp/arp.c by replacing gethostbyname to getaddrinfo. This is the first time I used phabricator and also my very first commit so my changes are really minor. [1] Could someone possibly review it? [1] https://reviews.freebsd.org/D21585 Kind Regards, Mihir

Re: IPv6 userland cleanup

2019-09-09 Thread Mihir Luthra
Hi everyone, I have started working on the project ipv6 userland cleanup [1]. I introduced myself here almost 2 months [2] ago but couln't really start with project before due to time constraints. Now I started with replacing some gethostby* calls with getaddrinfo(3). I have some code with me

IPv6 userland cleanup

2019-06-28 Thread Mihir Luthra
Hi everyone, My name in Mihir. I am an engineering student, currently in my 5th semester. I wrote this mail in continuation to thread [1]. Sorry I had no idea before that there were multiple mailing lists. Unaware of that, I just wrote to the one that I found first after googling. I would follow