patch-1.3.15 linux/net/ipv4/packet.c
Next file: linux/net/ipv4/raw.c
Previous file: linux/net/ipv4/ip_fw.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Aug 1 10:02:49 1995
- Orig file:
v1.3.14/linux/net/ipv4/packet.c
- Orig date:
Fri Jul 7 08:54:57 1995
diff -u --recursive --new-file v1.3.14/linux/net/ipv4/packet.c linux/net/ipv4/packet.c
@@ -141,7 +141,7 @@
* protocol layers and you must therefore supply it with a complete frame
*/
-static int packet_sendto(struct sock *sk, unsigned char *from, int len,
+static int packet_sendto(struct sock *sk, const unsigned char *from, int len,
int noblock, unsigned flags, struct sockaddr_in *usin,
int addr_len)
{
@@ -224,7 +224,7 @@
* always fail but we include it for completeness and future expansion.
*/
-static int packet_write(struct sock *sk, unsigned char *buff,
+static int packet_write(struct sock *sk, const unsigned char *buff,
int len, int noblock, unsigned flags)
{
return(packet_sendto(sk, buff, len, noblock, flags, NULL, 0));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this