in reply to Re: Net::RawIP - invalid checksum ?
in thread Net::RawIP - invalid checksum ?

Cool. Thanks for the info, i'll look into those. Yeah, what im working on is forwarding/creating syslog messages for a project. I have working code in C and wanted to port it over to perl as well. I started looking at using perl Socket but was sidetracked to Net::RawIP when i read it calculated the checksums for ya. Thou, it's looking like that this is not the case?
- Will

Replies are listed 'Best First'.
Re^3: Net::RawIP - invalid checksum ?
by VinsWorldcom (Prior) on Dec 07, 2013 at 11:42 UTC

    If you're looking to send Syslog, you don't need to craft custom UDP packets. You can use IO::Socket to create TCP and UDP packets without worrying about checksum calculation - it's done for you by the OS IP/socket stack.

    For Syslog specifically, just use Net::Syslog. You don't even need to worry about sockets with that - it's done behind the scenes.

    If you need to listen to / receive Syslog messages, have a look at Net::Syslogd.