We have a software project where we use a Windows XP SP3 PC to route all IP traffic from a remote PC connected via a radio interface. We are accomplishing this using the winpcap library to send the raw packet after constructing the new MAC header. This only works after enabling Internet Connection Sharing(ICS), otherwise the Windows TCP stack actively rst's any TCP return traffic. Does anyone know of a way to enable ICS from the command line, or through the registry? The only part of ICS we care about it that it stops the TCP stack from rst'ing incoming TCP meant for another machine. The software works as is, we are just hoping to find a way to avoid any manual configuration. Basically we need the installer to enable ICS, instead of having a user do it manually.
PS I realize windows in not the best OS for this, the OS choice is outside of my control.
Thanks for any help